public class CacheMapping extends Object
| Constructor and Description |
|---|
CacheMapping()
default cache mapping
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraintField(ConstraintField field)
add a constraint key field
|
void |
addKeyField(Field field)
add a key field
|
void |
addMethod(String method)
add an allowable HTTP method
|
boolean |
findMethod(String method)
Return
true if the specified HTTP request method is
allowed for caching |
ConstraintField[] |
getConstraintFields()
get the constraint fields
|
String |
getHelperNameRef()
get helper-name-ref associated with this mapping
|
Field[] |
getKeyFields()
get the key fields
|
Field |
getRefreshField()
get the refresh field
|
String |
getServletName()
get the underlying servlet-name
|
int |
getTimeout()
get the timeout
|
Field |
getTimeoutField()
get the timeout field
|
String |
getURLPattern()
get the underlying url-pattern this mapping applicable
|
void |
setHelperNameRef(String helperNameRef)
set the helper name ref associated with this cache mapping
|
void |
setMethods(String[] methods)
set allowable HTTP methods
|
void |
setRefreshField(Field field)
set the refresh field
|
void |
setServletName(String servletName)
set the servlet-name this mapping applies
|
void |
setTimeout(int timeout)
set the timeout
|
void |
setTimeoutField(Field field)
set the timeout field
|
void |
setURLPattern(String urlPattern)
set the url-pattern this mapping applies
|
public void setHelperNameRef(String helperNameRef)
helperNameRef - helper name ref for this cache mappingpublic void setServletName(String servletName)
servletName - name of the servletpublic void setURLPattern(String urlPattern)
urlPattern - url pattern this mapping appliespublic void setTimeout(int timeout)
timeout - specific timeout of the cacheable entriespublic void setTimeoutField(Field field)
field - default timeout of the cacheable entriespublic void setRefreshField(Field field)
field - Boolean field for controlling when a refresh is neededpublic Field getRefreshField()
public void setMethods(String[] methods)
methods - allowable methodspublic void addMethod(String method)
method - allowable methodpublic void addKeyField(Field field)
field - key Field to addpublic void addConstraintField(ConstraintField field)
field - ConstraintField to addpublic String getHelperNameRef()
public String getServletName()
public String getURLPattern()
public boolean findMethod(String method)
true if the specified HTTP request method is
allowed for cachingmethod - Request method to checkpublic int getTimeout()
public Field getTimeoutField()
public Field[] getKeyFields()
public ConstraintField[] getConstraintFields()
Copyright © 2019. All rights reserved.