Java EE 5 SDK

com.sun.appserv.web.cache.mapping
Class Field

java.lang.Object
  extended by com.sun.appserv.web.cache.mapping.Field
Direct Known Subclasses:
ConstraintField

public class Field
extends Object


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

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 field
scope - 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(ServletContext context,
                       HttpServletRequest request)
get the field value by looking up in the given scope

Parameters:
context - ServletContext underlying web app context
request - HttpServletRequest
Returns:
field value in the scope

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.