| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.appserv.web.cache.mapping.Field
com.sun.appserv.web.cache.mapping.ConstraintField
ConstraintField class represents a single Field and constraints on its values; Field name and its scope are inherited from the Field class.
| Field Summary | 
| Fields inherited from class com.sun.appserv.web.cache.mapping.Field | 
| name, scope | 
| Constructor Summary | |
| ConstraintField(java.lang.String name,
                java.lang.String scope)create a new cache field, given a string representation of the scope | |
| Method Summary | |
|  void | addConstraint(ValueConstraint constraint)add a constraint for this field | 
|  boolean | applyConstraints(ServletContext context,
                 HttpServletRequest request)apply the constraints on the value of the field in the given request. | 
|  boolean | getCacheOnMatch() | 
|  boolean | getCacheOnMatchFailure() | 
|  void | setCacheOnMatch(boolean cacheOnMatch)set whether to cache should the constraints check pass | 
|  void | setCacheOnMatchFailure(boolean cacheOnMatchFailure)set whether to cache should there be a failure forcing the constraint | 
|  void | setValueConstraints(ValueConstraint[] vcs)add an array of constraints for this field | 
| Methods inherited from class com.sun.appserv.web.cache.mapping.Field | 
| getName, getScope, getValue, setName, setScope | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public ConstraintField(java.lang.String name,
                       java.lang.String scope)
                throws java.lang.IllegalArgumentException
name - name of this fieldscope - scope of this field| Method Detail | 
public void setCacheOnMatch(boolean cacheOnMatch)
cacheOnMatch - should the constraint check pass, should we cache?public boolean getCacheOnMatch()
public void setCacheOnMatchFailure(boolean cacheOnMatchFailure)
cacheOnMatchFailure - should there be a constraint check failure,
  enable cache?public boolean getCacheOnMatchFailure()
public void addConstraint(ValueConstraint constraint)
constraint - one constraint associated with this fieldpublic void setValueConstraints(ValueConstraint[] vcs)
public boolean applyConstraints(ServletContext context,
                                HttpServletRequest request)
| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved.