Class Field
- java.lang.Object
-
- com.sun.appserv.web.cache.mapping.Field
-
- Direct Known Subclasses:
ConstraintField
public class Field extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
get the associated nameint
getScope()
get the associated scopeObject
getValue(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request)
get the field value by looking up in the given scopevoid
setName(String name)
set the associated namevoid
setScope(int scope)
set the associated scope
-
-
-
Field Detail
-
name
protected String name
-
scope
protected int scope
-
-
Constructor Detail
-
Field
public Field(String name, String scope) throws IllegalArgumentException
create a new cache field, given a string representation of the scope- Parameters:
name
- name of this fieldscope
- scope of this field- Throws:
IllegalArgumentException
-
-
Method Detail
-
setName
public void setName(String name)
set the associated name- Parameters:
name
- name of this field
-
setScope
public void setScope(int scope)
set the associated scope- Parameters:
scope
- scope of this field
-
getName
public String getName()
get the associated name- Returns:
- the name of this field
-
getScope
public int getScope()
get the associated scope- Returns:
- the scope of this field
-
getValue
public Object getValue(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request)
get the field value by looking up in the given scope- Parameters:
context
-ServletContext
underlying web app contextrequest
-HttpServletRequest
- Returns:
- field value in the scope
-
-