|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.base.Adaptee org.norther.tammi.spray.filter.DefaultFilter org.norther.tammi.spray.filter.DefaultKeyFilter org.norther.tammi.spray.filter.DefaultSecureKeyFilter org.norther.tammi.spray.template.DefaultFormFilter
public class DefaultFormFilter
A default implementation of FormFilter.
Field Summary | |
---|---|
protected static String |
ENUMERATION
The enumeration type key. |
protected static String |
ENUMERATIONS
The enumeration array type key. |
static String |
FORM_KEY
The form key. |
Fields inherited from class org.norther.tammi.spray.filter.DefaultKeyFilter |
---|
DEFAULT_KEY |
Fields inherited from class org.norther.tammi.core.base.Adaptee |
---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
Fields inherited from interface org.norther.tammi.spray.template.FormFilter |
---|
FORM_INDEX_FIELD, FORM_NAME_FIELD, FORM_SUBMIT_FIELD |
Constructor Summary | |
---|---|
DefaultFormFilter()
Constructs a new filter. |
|
DefaultFormFilter(String key)
Constructs a new filter with a key. |
Method Summary | |
---|---|
void |
clearCached()
Clears all cached entries without notifying. |
void |
clearControlAttributes()
Clears all control attributes. |
void |
clearFormProperties()
Clears all form properties. |
void |
clearFormTemplates()
Clears all form templates. |
void |
clearInfoTemplates()
Clears all info templates. |
void |
clearInputTemplates()
Clears all input templates. |
void |
clearOutputTemplates()
Clears all output templates. |
void |
clearParameterMap(ServletRequest request,
ServletResponse response,
FilterChain chain)
Clears the parameter map of the specified request. |
void |
clearParameterMap(String prefix,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Clears the prefixed parameter map of the specified request. |
Set<String> |
controlAttributeSet()
Returns a read-only set of control attribute qualifiers. |
Variable |
createVariable(String type)
Creates a new variable instance of the specified type. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
|
void |
expireCached(long timestamp)
Expires all cached entries notifying them about expiration. |
void |
expireFraction(long timestamp,
float fraction)
Expires the specified fraction of cached entries notifying them about expiration. |
Set<String> |
formPropertySet()
Returns a read-only set of form property qualifiers. |
Set<String> |
formQualifierSet()
Returns a read-only set of form template qualifiers. |
ConcurrentMap<String,FormProperties> |
getCache(boolean... create)
Gets and optionally creates the cache. |
String |
getControlAttribute(String qualifier)
Gets the qualified control attribute. |
String |
getCurrentForm(ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the current form of the specified request. |
String |
getDefaultFormTheme()
Gets the theme of the default form. |
String |
getFormIndexField()
Gets the name of the form index field. |
String |
getFormNameField()
Gets the name of the form name field. |
String |
getFormProperty(String qualifier)
Gets the qualified form property. |
String |
getFormTemplate()
Gets the default form template. |
String |
getFormTemplate(String qualifier)
Gets the qualified form template. |
String |
getInfoTemplate()
Gets the default info template. |
String |
getInfoTemplate(String qualifier)
Gets the qualified info template. |
String |
getInputTemplate()
Gets the default input template. |
String |
getInputTemplate(String qualifier)
Gets the qualified input template. |
Map<String,Object> |
getLocalizedMap(String prefix,
Set<String> filter,
Variable variable,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the parameter map of the specified variable. |
String |
getOutputTemplate()
Gets the default output template. |
String |
getOutputTemplate(String qualifier)
Gets the qualified output template. |
Map<String,Map<String,Object>> |
getParameterMap(ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the parameter map of the specified request. |
Map<String,Object> |
getParameterMap(String prefix,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the prefixed parameter map of the specified request. |
long |
getRefreshed()
Gets the last refresh timestamp. |
ObjectName |
getSharedCacheName()
Gets the the shared cache of this client. |
SortedMap<String,Exception> |
getValidationMap(String prefix,
Set<String> filter,
Variable variable,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the validation map of request parameters of the specified variable. |
ObjectName |
getVariableRegistryName()
Gets the the variable registry of this filter. |
Set<String> |
infoQualifierSet()
Returns a read-only set of info template qualifiers. |
Set<String> |
inputQualifierSet()
Returns a read-only set of input template qualifiers. |
boolean |
isCachingDisabled()
Checks whether the caching is disabled. |
boolean |
isLocalizedForms()
Gets the localized forms flag. |
boolean |
isValidated(String prefix,
Variable variable,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Checks whether the specified variable is validated. |
Set<String> |
outputQualifierSet()
Returns a read-only set of output template qualifiers. |
void |
postmanaged()
This method is called when the implementing adaptee has been managed either during post-registration of the corresponding adapter MBean or just after it is explicitly added to the adapter MBean during run-time. |
void |
refresh()
Refreshes the MBean. |
void |
removeCache()
Removes the cache. |
void |
removeControlAttribute(String qualifier)
Removes the qualified control attribute. |
void |
removeFormProperty(String qualifier)
Removes the qualified form property. |
void |
removeFormTemplate(String qualifier)
Removes the qualified form template. |
void |
removeInfoTemplate(String qualifier)
Removes the qualified info template. |
void |
removeInputTemplate(String qualifier)
Removes the qualified input template. |
void |
removeOutputTemplate(String qualifier)
Removes the qualified output template. |
void |
removeVariable(String prefix,
Variable variable,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Removes the specified form variable from a session. |
void |
render(String name,
String type,
Variable variable,
boolean readonly,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Renders a form as a variable. |
void |
render(String name,
String type,
Variable variable,
MBeanAttributeInfo attribute,
boolean readonly,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Renders a control as the specified variable attribute. |
void |
render(String template,
Variable variable,
MBeanAttributeInfo attribute,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Renders a control as the specified variable attribute using a fixed template. |
void |
render(String template,
Variable variable,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Renders a form as a variable using a fixed template. |
String |
resetCurrentForm(ServletRequest request,
ServletResponse response,
FilterChain chain)
Resets the current form of the specified request to the default form. |
String |
resetCurrentForm(String name,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Resets the current form of the specified request to the named form. |
void |
resetParameterMap(ServletRequest request,
ServletResponse response,
FilterChain chain)
Resets the parameter map of the specified request. |
void |
resetParameterMap(String prefix,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Resets the prefixed parameter map of the specified request. |
ConcurrentMap<String,String> |
resolveFormProperties(String name,
String type,
Variable variable,
MBeanAttributeInfo attribute)
Resolves form properties of the specified variable attribute. |
String |
resolveInputTemplate(String name,
String type,
Variable variable,
MBeanAttributeInfo attribute)
Resolves the input template of the specified variable attribute. |
String |
resolveOutputTemplate(String name,
String type,
Variable variable,
MBeanAttributeInfo attribute)
Resolves the output template of the specified variable attribute. |
Variable |
restoreVariable(String prefix,
String type,
boolean create,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Restores a saved form variable from a session or optionally creates a missing one. |
void |
saveVariable(String prefix,
Variable variable,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Saves the specified form variable to a session. |
void |
setCachingDisabled(boolean flag)
Sets the caching disabled flag. |
void |
setControlAttribute(String qualifier,
String attribute)
Sets the qualified control property. |
void |
setDefaultFormTheme(String theme)
Sets the theme of the default form. |
void |
setFormIndexField(String name)
Sets the name of the form index field to post the variable indices of the submitted form. |
void |
setFormNameField(String name)
Sets the name of the form name field to post the unique name of the submitted form. |
void |
setFormProperty(String qualifier,
String property)
Sets the qualified form property. |
void |
setFormTemplate(String template)
Sets the default form template. |
void |
setFormTemplate(String qualifier,
String template)
Sets the qualified form template. |
void |
setInfoTemplate(String template)
Sets the default info template. |
void |
setInfoTemplate(String qualifier,
String template)
Sets the qualified info template. |
void |
setInputTemplate(String template)
Sets the default input template. |
void |
setInputTemplate(String qualifier,
String template)
Sets the qualified input template. |
void |
setLocalizedForms(boolean flag)
Sets the localized forms flag. |
void |
setOutputTemplate(String template)
Sets the default output template. |
void |
setOutputTemplate(String qualifier,
String template)
Sets the qualified output template. |
void |
setSharedCacheName(ObjectName cache)
Sets the shared cache of this client. |
void |
setVariableRegistryName(ObjectName registry)
Sets the variable registry of this filter. |
void |
unmanaged()
This method is called when the implementing adaptee is unmanaged either during pre-deregistration of the corresponding adapter MBean or just before it is explicitly removed from the adapter MBean during run-time. |
VariableValidity |
updateForm(String prefix,
Set<String> filter,
Variable variable,
MBeanAttributeInfo attribute,
int index,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Updates the specified variable attribute element with request parameters. |
VariableValidity |
updateForm(String prefix,
Set<String> filter,
Variable variable,
MBeanAttributeInfo attribute,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Updates the specified variable attribute with request parameters. |
VariableValidity |
updateForm(String prefix,
Set<String> filter,
Variable variable,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Updates the specified variable with request parameters. |
VariableValidity |
validateForm(String prefix,
Set<String> filter,
Variable variable,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Validates the specified variable with request parameters. |
Methods inherited from class org.norther.tammi.spray.filter.DefaultSecureKeyFilter |
---|
addAllowedPermission, addDeniedPermission, allowedPermissions, allowedRoleSet, checkPermission, checkPermission, clearAllowedPermissions, clearDeniedPermissions, deniedPermissions, deniedRoleSet, getPermissibleRoles, isProtected, removeAllowedPermissions, removeDeniedPermissions, setAllowedPermissions, setDeniedPermissions |
Methods inherited from class org.norther.tammi.spray.filter.DefaultKeyFilter |
---|
getKey, getKeyValue, getKeyValues, isLinkedKey, setKey, setLinkedKey |
Methods inherited from class org.norther.tammi.spray.filter.DefaultFilter |
---|
destroy, getFilterConfig, getRequestMap, getSessionMap, init |
Methods inherited from class org.norther.tammi.core.base.Adaptee |
---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unregister |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.norther.tammi.spray.filter.SecureFilter |
---|
checkPermission |
Methods inherited from interface org.norther.tammi.core.security.AccessController |
---|
addAllowedPermission, addDeniedPermission, allowedPermissions, allowedRoleSet, checkPermission, clearAllowedPermissions, clearDeniedPermissions, deniedPermissions, deniedRoleSet, getPermissibleRoles, isProtected, removeAllowedPermissions, removeDeniedPermissions, setAllowedPermissions, setDeniedPermissions |
Methods inherited from interface org.norther.tammi.spray.filter.KeyFilter |
---|
getKey, getKeyValue, getKeyValues, isLinkedKey, setKey, setLinkedKey |
Methods inherited from interface javax.servlet.Filter |
---|
destroy, init |
Field Detail |
---|
public static final String FORM_KEY
protected static final String ENUMERATION
protected static final String ENUMERATIONS
Constructor Detail |
---|
public DefaultFormFilter()
public DefaultFormFilter(String key)
key
- the filter key.Method Detail |
---|
public void postmanaged()
Manageable
postmanaged
in interface Manageable
postmanaged
in class Adaptee
public void unmanaged() throws Exception
Manageable
unmanaged
in interface Manageable
unmanaged
in class Adaptee
Exception
- if the adaptee refused to be unmanaged.public boolean isCachingDisabled()
CacheClient
isCachingDisabled
in interface CacheClient<String,FormProperties>
public void setCachingDisabled(boolean flag)
CacheClient
setCachingDisabled
in interface CacheClient<String,FormProperties>
flag
- the caching disabled flag.public void expireCached(long timestamp)
CacheClient
expireCached
in interface CacheClient<String,FormProperties>
timestamp
- the timestamp of the expiration.public void expireFraction(long timestamp, float fraction)
CacheClient
expireFraction
in interface CacheClient<String,FormProperties>
timestamp
- the timestamp of the expiration.fraction
- the fraction of entries to expire (0.0..1.0).public void clearCached()
CacheClient
clearCached
in interface CacheClient<String,FormProperties>
public ConcurrentMap<String,FormProperties> getCache(boolean... create)
CacheClient
getCache
in interface CacheClient<String,FormProperties>
create
- true to create a missing cache.
public void removeCache()
CacheClient
removeCache
in interface CacheClient<String,FormProperties>
public ObjectName getSharedCacheName()
CacheClient
getSharedCacheName
in interface CacheClient<String,FormProperties>
public void setSharedCacheName(ObjectName cache)
CacheClient
setSharedCacheName
in interface CacheClient<String,FormProperties>
cache
- the object name of the shared cache or a query.public void refresh()
Refreshable
refresh
in interface Refreshable
public long getRefreshed()
Refreshable
getRefreshed
in interface Refreshable
public boolean isLocalizedForms()
FormFilter
isLocalizedForms
in interface FormFilter
public void setLocalizedForms(boolean flag)
FormFilter
setLocalizedForms
in interface FormFilter
flag
- the localized forms flag.public String getDefaultFormTheme()
FormFilter
getDefaultFormTheme
in interface FormFilter
public void setDefaultFormTheme(String theme)
FormFilter
setDefaultFormTheme
in interface FormFilter
theme
- the default theme.public String getFormNameField()
FormFilter
getFormNameField
in interface FormFilter
public void setFormNameField(String name)
FormFilter
setFormNameField
in interface FormFilter
name
- the form name field name.public String getFormIndexField()
FormFilter
getFormIndexField
in interface FormFilter
public void setFormIndexField(String name)
FormFilter
setFormIndexField
in interface FormFilter
name
- the form index field name.public String getFormTemplate()
FormFilter
getFormTemplate
in interface FormFilter
public void setFormTemplate(String template)
FormFilter
setFormTemplate
in interface FormFilter
template
- the default template.public String getInfoTemplate()
FormFilter
getInfoTemplate
in interface FormFilter
public void setInfoTemplate(String template)
FormFilter
setInfoTemplate
in interface FormFilter
template
- the default template.public String getInputTemplate()
FormFilter
getInputTemplate
in interface FormFilter
public void setInputTemplate(String template)
FormFilter
setInputTemplate
in interface FormFilter
template
- the default template.public String getOutputTemplate()
FormFilter
getOutputTemplate
in interface FormFilter
public void setOutputTemplate(String template)
FormFilter
setOutputTemplate
in interface FormFilter
template
- the default template.public String getFormTemplate(String qualifier)
FormFilter
getFormTemplate
in interface FormFilter
qualifier
- the qualifier.
public void setFormTemplate(String qualifier, String template)
FormFilter
setFormTemplate
in interface FormFilter
qualifier
- the qualifier.template
- the template.public void removeFormTemplate(String qualifier)
FormFilter
removeFormTemplate
in interface FormFilter
qualifier
- the qualifier.public void clearFormTemplates()
FormFilter
clearFormTemplates
in interface FormFilter
public Set<String> formQualifierSet()
FormFilter
formQualifierSet
in interface FormFilter
public String getInfoTemplate(String qualifier)
FormFilter
getInfoTemplate
in interface FormFilter
qualifier
- the qualifier.
public void setInfoTemplate(String qualifier, String template)
FormFilter
setInfoTemplate
in interface FormFilter
qualifier
- the qualifier.template
- the template.public void removeInfoTemplate(String qualifier)
FormFilter
removeInfoTemplate
in interface FormFilter
qualifier
- the qualifier.public void clearInfoTemplates()
FormFilter
clearInfoTemplates
in interface FormFilter
public Set<String> infoQualifierSet()
FormFilter
infoQualifierSet
in interface FormFilter
public String getInputTemplate(String qualifier)
FormFilter
getInputTemplate
in interface FormFilter
qualifier
- the qualifier.
public void setInputTemplate(String qualifier, String template)
FormFilter
setInputTemplate
in interface FormFilter
qualifier
- the qualifier.template
- the template.public void removeInputTemplate(String qualifier)
FormFilter
removeInputTemplate
in interface FormFilter
qualifier
- the qualifier.public void clearInputTemplates()
FormFilter
clearInputTemplates
in interface FormFilter
public Set<String> inputQualifierSet()
FormFilter
inputQualifierSet
in interface FormFilter
public String getOutputTemplate(String qualifier)
FormFilter
getOutputTemplate
in interface FormFilter
qualifier
- the qualifier.
public void setOutputTemplate(String qualifier, String template)
FormFilter
setOutputTemplate
in interface FormFilter
qualifier
- the qualifier.template
- the template.public void removeOutputTemplate(String qualifier)
FormFilter
removeOutputTemplate
in interface FormFilter
qualifier
- the qualifier.public void clearOutputTemplates()
FormFilter
clearOutputTemplates
in interface FormFilter
public Set<String> outputQualifierSet()
FormFilter
outputQualifierSet
in interface FormFilter
public String getFormProperty(String qualifier)
FormFilter
getFormProperty
in interface FormFilter
qualifier
- the qualifier.
public void setFormProperty(String qualifier, String property)
FormFilter
setFormProperty
in interface FormFilter
qualifier
- the qualifier.property
- the property.public void removeFormProperty(String qualifier)
FormFilter
removeFormProperty
in interface FormFilter
qualifier
- the qualifier.public void clearFormProperties()
FormFilter
clearFormProperties
in interface FormFilter
public Set<String> formPropertySet()
FormFilter
formPropertySet
in interface FormFilter
public String getControlAttribute(String qualifier)
FormFilter
getControlAttribute
in interface FormFilter
qualifier
- the qualifier.
public void setControlAttribute(String qualifier, String attribute)
FormFilter
setControlAttribute
in interface FormFilter
qualifier
- the qualifier.attribute
- the attribute.public void removeControlAttribute(String qualifier)
FormFilter
removeControlAttribute
in interface FormFilter
qualifier
- the qualifier.public void clearControlAttributes()
FormFilter
clearControlAttributes
in interface FormFilter
public Set<String> controlAttributeSet()
FormFilter
controlAttributeSet
in interface FormFilter
public ObjectName getVariableRegistryName()
FormFilter
getVariableRegistryName
in interface FormFilter
public void setVariableRegistryName(ObjectName registry)
FormFilter
setVariableRegistryName
in interface FormFilter
registry
- the object name of the variable registry or a query.public Map<String,Map<String,Object>> getParameterMap(ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
getParameterMap
in interface FormFilter
request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public void resetParameterMap(ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
resetParameterMap
in interface FormFilter
request
- the servlet request.response
- the servlet response.chain
- the filter chain.public void clearParameterMap(ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
clearParameterMap
in interface FormFilter
request
- the servlet request.response
- the servlet response.chain
- the filter chain.public Map<String,Object> getParameterMap(String prefix, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
getParameterMap
in interface FormFilter
prefix
- the parameter name prefix.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public void resetParameterMap(String prefix, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
resetParameterMap
in interface FormFilter
prefix
- the parameter name prefix.request
- the servlet request.response
- the servlet response.chain
- the filter chain.public void clearParameterMap(String prefix, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
clearParameterMap
in interface FormFilter
prefix
- the parameter name prefix.request
- the servlet request.response
- the servlet response.chain
- the filter chain.public Map<String,Object> getLocalizedMap(String prefix, Set<String> filter, Variable variable, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
getLocalizedMap
in interface FormFilter
prefix
- an optional prefix.filter
- an optional filter.variable
- the variable.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public boolean isValidated(String prefix, Variable variable, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
isValidated
in interface FormFilter
prefix
- an optional prefix.variable
- the variable.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public SortedMap<String,Exception> getValidationMap(String prefix, Set<String> filter, Variable variable, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
Note that null is returned if no request parameters for the specified variable were available.
getValidationMap
in interface FormFilter
prefix
- an optional prefix.filter
- an optional filter.variable
- the variable.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public VariableValidity validateForm(String prefix, Set<String> filter, Variable variable, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
validateForm
in interface FormFilter
prefix
- an optional prefix.filter
- an optional filter.variable
- the variable.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public VariableValidity updateForm(String prefix, Set<String> filter, Variable variable, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
updateForm
in interface FormFilter
prefix
- an optional prefix.filter
- an optional filter.variable
- the variable.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public VariableValidity updateForm(String prefix, Set<String> filter, Variable variable, MBeanAttributeInfo attribute, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
updateForm
in interface FormFilter
prefix
- an optional prefix.filter
- an optional filter.variable
- the variable.attribute
- the attribute.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public VariableValidity updateForm(String prefix, Set<String> filter, Variable variable, MBeanAttributeInfo attribute, int index, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
updateForm
in interface FormFilter
prefix
- an optional prefix.filter
- an optional filter.variable
- the variable.attribute
- the attribute.index
- the element index.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public Variable createVariable(String type) throws ConstructionException
FormFilter
createVariable
in interface FormFilter
type
- the variable type.
ConstructionException
- if construction fails.public Variable restoreVariable(String prefix, String type, boolean create, ServletRequest request, ServletResponse response, FilterChain chain) throws ConstructionException
FormFilter
restoreVariable
in interface FormFilter
prefix
- an optional prefix.type
- the variable type.create
- the create option.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
ConstructionException
- if construction fails.public void saveVariable(String prefix, Variable variable, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
saveVariable
in interface FormFilter
prefix
- an optional prefix.variable
- the variable.request
- the servlet request.response
- the servlet response.chain
- the filter chain.public void removeVariable(String prefix, Variable variable, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
removeVariable
in interface FormFilter
prefix
- an optional prefix.variable
- the variable.request
- the servlet request.response
- the servlet response.chain
- the filter chain.public void render(String name, String type, Variable variable, boolean readonly, ServletRequest request, ServletResponse response, FilterChain chain) throws TemplateException
FormFilter
render
in interface FormFilter
name
- an optional theme.type
- the content type.variable
- the variable.readonly
- the readonly option.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
TemplateException
- on errors.public void render(String template, Variable variable, ServletRequest request, ServletResponse response, FilterChain chain) throws TemplateException
FormFilter
render
in interface FormFilter
template
- the template.variable
- the variable.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
TemplateException
- on errors.public void render(String name, String type, Variable variable, MBeanAttributeInfo attribute, boolean readonly, ServletRequest request, ServletResponse response, FilterChain chain) throws TemplateException
FormFilter
render
in interface FormFilter
name
- an optional theme.type
- the content type.variable
- the variable.attribute
- the attribute.readonly
- the read-only option.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
TemplateException
- on errors.public void render(String template, Variable variable, MBeanAttributeInfo attribute, ServletRequest request, ServletResponse response, FilterChain chain) throws TemplateException
FormFilter
render
in interface FormFilter
template
- the template.variable
- the variable.attribute
- the attribute.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
TemplateException
- on errors.public String resolveInputTemplate(String name, String type, Variable variable, MBeanAttributeInfo attribute) throws TemplateException
FormFilter
resolveInputTemplate
in interface FormFilter
name
- an optional theme.type
- the content type.variable
- the variable.attribute
- the attribute.
TemplateException
- on errors.public String resolveOutputTemplate(String name, String type, Variable variable, MBeanAttributeInfo attribute) throws TemplateException
FormFilter
resolveOutputTemplate
in interface FormFilter
name
- an optional theme.type
- the content type.variable
- the variable.attribute
- the attribute.
TemplateException
- on errors.public ConcurrentMap<String,String> resolveFormProperties(String name, String type, Variable variable, MBeanAttributeInfo attribute)
FormFilter
resolveFormProperties
in interface FormFilter
name
- an optional theme.type
- the content type.variable
- the variable.attribute
- the attribute.
public String getCurrentForm(ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
getCurrentForm
in interface FormFilter
request
- the servlet request.response
- the servlet response.chain
- the filter chain
public String resetCurrentForm(ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
resetCurrentForm
in interface FormFilter
request
- the servlet request.response
- the servlet response.chain
- the filter chain
public String resetCurrentForm(String name, ServletRequest request, ServletResponse response, FilterChain chain)
FormFilter
resetCurrentForm
in interface FormFilter
name
- the theme of the form.request
- the servlet request.response
- the servlet response.chain
- the filter chain
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException
doFilter
in interface Filter
doFilter
in class DefaultFilter
ServletException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |