|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.web.cache.mapping.Field
public class Field
Field Summary | |
---|---|
protected String |
name
|
protected int |
scope
|
Constructor Summary | |
---|---|
Field(String name,
String scope)
create a new cache field, given a string representation of the scope |
Method Summary | |
---|---|
String |
getName()
get the associated name |
int |
getScope()
get the associated scope |
Object |
getValue(ServletContext context,
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected int scope
Constructor Detail |
---|
public Field(String name, String scope) throws IllegalArgumentException
name
- name of this fieldscope
- scope of this field
IllegalArgumentException
Method Detail |
---|
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(ServletContext context, HttpServletRequest request)
context
- ServletContext
underlying web app contextrequest
- HttpServletRequest
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.