public class Field extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected int |
scope |
Constructor and Description |
---|
Field(String name,
String scope)
create a new cache field, given a string representation of the scope
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
get the associated name
|
int |
getScope()
get the associated scope
|
Object |
getValue(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request)
get the field value by looking up in the given scope
|
void |
setName(String name)
set the associated name
|
void |
setScope(int scope)
set the associated scope
|
protected String name
protected int scope
public Field(String name, String scope) throws IllegalArgumentException
name
- name of this fieldscope
- scope of this fieldIllegalArgumentException
public void setName(String name)
name
- name of this fieldpublic void setScope(int scope)
scope
- scope of this fieldpublic String getName()
public int getScope()
public Object getValue(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request)
context
- ServletContext
underlying web app contextrequest
- HttpServletRequest
Copyright © 2020. All rights reserved.