public class RequestRule
extends java.lang.Object
Created: 2008. 03. 22 PM 5:48:09
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CHARACTER_ENCODING_SETTING_NAME |
|
static java.lang.String |
LOCALE_CHANGE_INTERCEPTOR_SETTING_NAME |
|
static java.lang.String |
LOCALE_RESOLVER_SETTING_NAME |
| Constructor | Description |
|---|---|
RequestRule() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAttributeItemRule(ItemRule attributeItemRule) |
Adds the attribute item rule.
|
void |
addParameterItemRule(ItemRule parameterItemRule) |
Adds the parameter item rule.
|
MethodType |
getAllowedMethod() |
Gets the allowed method.
|
ItemRuleMap |
getAttributeItemRuleMap() |
Gets the attribute item rule map.
|
java.lang.String |
getEncoding() |
Gets the request encoding.
|
ItemRuleMap |
getParameterItemRuleMap() |
Gets the parameter item rule map.
|
boolean |
isImplicit() |
Gets whether the request rule is implicitly generated.
|
ItemRule |
newAttributeItemRule(java.lang.String attributeName) |
Adds a new attribute rule with the specified name and returns it.
|
static RequestRule |
newInstance(boolean implicit) |
|
static RequestRule |
newInstance(java.lang.String allowedMethod,
java.lang.String encoding) |
|
ItemRule |
newParameterItemRule(java.lang.String parameterName) |
Adds a new parameter rule with the specified name and returns it.
|
void |
setAllowedMethod(MethodType allowedMethod) |
Sets the allowed method.
|
void |
setAttributeItemRuleMap(ItemRuleMap attributeItemRuleMap) |
Sets the attribute item rule map.
|
void |
setEncoding(java.lang.String encoding) |
Sets the request encoding.
|
protected void |
setImplicit(boolean implicit) |
Sets whether the request rule is implicitly generated.
|
void |
setParameterItemRuleMap(ItemRuleMap parameterItemRuleMap) |
Sets the attribute item rule map.
|
java.lang.String |
toString() |
public static final java.lang.String CHARACTER_ENCODING_SETTING_NAME
public static final java.lang.String LOCALE_RESOLVER_SETTING_NAME
public static final java.lang.String LOCALE_CHANGE_INTERCEPTOR_SETTING_NAME
public boolean isImplicit()
protected void setImplicit(boolean implicit)
implicit - whether this request rule is implicitpublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - the new request encodingpublic MethodType getAllowedMethod()
public void setAllowedMethod(MethodType allowedMethod)
allowedMethod - the new allowed methodpublic ItemRuleMap getParameterItemRuleMap()
public void setParameterItemRuleMap(ItemRuleMap parameterItemRuleMap)
parameterItemRuleMap - the new attribute item rule mappublic ItemRule newParameterItemRule(java.lang.String parameterName)
parameterName - the parameter namepublic void addParameterItemRule(ItemRule parameterItemRule)
parameterItemRule - the parameter item rulepublic ItemRuleMap getAttributeItemRuleMap()
public void setAttributeItemRuleMap(ItemRuleMap attributeItemRuleMap)
attributeItemRuleMap - the new attribute item rule mappublic ItemRule newAttributeItemRule(java.lang.String attributeName)
attributeName - the parameter namepublic void addAttributeItemRule(ItemRule attributeItemRule)
attributeItemRule - the attribute item rulepublic java.lang.String toString()
toString in class java.lang.Objectpublic static RequestRule newInstance(boolean implicit)
public static RequestRule newInstance(java.lang.String allowedMethod, java.lang.String encoding) throws IllegalRuleException
IllegalRuleExceptionCopyright © 2008–2018 The Aspectran Project. All rights reserved.