ActionPossessable, Replicable<RedirectResponseRule>public class RedirectResponseRule extends ActionPossessSupport implements Replicable<RedirectResponseRule>
Created: 2008. 03. 22 PM 5:51:58
| Modifier and Type | Field | Description |
|---|---|---|
static ResponseType |
RESPONSE_TYPE |
| Constructor | Description |
|---|---|
RedirectResponseRule() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addParameterItemRule(ItemRule parameterItemRule) |
Adds the parameter item rule.
|
java.lang.String |
getContentType() |
Gets the content type.
|
java.lang.Boolean |
getDefaultResponse() |
Returns whether the default response.
|
java.lang.String |
getEncoding() |
Gets the character encoding.
|
java.lang.Boolean |
getExcludeEmptyParameter() |
Gets whether to exclude parameters with empty values.
|
java.lang.Boolean |
getExcludeNullParameter() |
Gets whether to exclude parameters with null values.
|
ItemRuleMap |
getParameterItemRuleMap() |
Gets the parameter item rule map.
|
java.lang.String |
getTarget() |
Gets the redirect target.
|
java.lang.String |
getTarget(Activity activity) |
Gets the redirect target.
|
Token[] |
getTargetTokens() |
Gets the tokens of the redirect target.
|
boolean |
isDefaultResponse() |
Returns whether the default response.
|
boolean |
isExcludeEmptyParameter() |
Returns whether to exclude parameters with empty values.
|
boolean |
isExcludeNullParameter() |
Returns whether to exclude parameters with null values.
|
static RedirectResponseRule |
newInstance(java.lang.String target) |
|
static RedirectResponseRule |
newInstance(java.lang.String contentType,
java.lang.String target,
java.lang.String encoding,
java.lang.Boolean excludeNullParameter,
java.lang.Boolean excludeEmptyParameter,
java.lang.Boolean defaultResponse) |
|
ItemRule |
newParameterItemRule(java.lang.String parameterName) |
Adds a new parameter rule with the specified name and returns it.
|
RedirectResponseRule |
replicate() |
Creates and returns a new instance after replicating a rule or Object.
|
static RedirectResponseRule |
replicate(RedirectResponseRule redirectResponseRule) |
|
void |
setContentType(java.lang.String contentType) |
Sets the content type.
|
void |
setDefaultResponse(java.lang.Boolean defaultResponse) |
Sets whether the default response.
|
void |
setEncoding(java.lang.String encoding) |
Sets the character encoding.
|
void |
setExcludeEmptyParameter(java.lang.Boolean excludeEmptyParameter) |
Sets whether to exclude parameters with empty values.
|
void |
setExcludeNullParameter(java.lang.Boolean excludeNullParameter) |
Sets whether to exclude parameters with null values.
|
void |
setParameterItemRuleMap(ItemRuleMap parameterItemRuleMap) |
Sets the attribute item rule map.
|
void |
setParameterMap(java.util.Map<java.lang.String,java.lang.String> parameterMap) |
Sets the parameter map.
|
void |
setTarget(java.lang.String target) |
Sets the target name.
|
void |
setTarget(java.lang.String target,
Token[] targetTokens) |
|
java.lang.String |
toString() |
getActionList, setActionListpublic static final ResponseType RESPONSE_TYPE
public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - the new content typepublic java.lang.String getTarget()
public java.lang.String getTarget(Activity activity)
activity - the activitypublic void setTarget(java.lang.String target)
target - the new target namepublic void setTarget(java.lang.String target,
Token[] targetTokens)
public Token[] getTargetTokens()
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - the new character encodingpublic java.lang.Boolean getExcludeNullParameter()
public boolean isExcludeNullParameter()
public void setExcludeNullParameter(java.lang.Boolean excludeNullParameter)
excludeNullParameter - whether to exclude parameters with null valuespublic java.lang.Boolean getExcludeEmptyParameter()
public boolean isExcludeEmptyParameter()
public void setExcludeEmptyParameter(java.lang.Boolean excludeEmptyParameter)
excludeEmptyParameter - whether to exclude parameters with empty valuespublic 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 void setParameterMap(java.util.Map<java.lang.String,java.lang.String> parameterMap)
parameterMap - the parameter mappublic java.lang.Boolean getDefaultResponse()
public boolean isDefaultResponse()
public void setDefaultResponse(java.lang.Boolean defaultResponse)
defaultResponse - whether it is the default responsepublic RedirectResponseRule replicate()
Replicablereplicate in interface Replicable<RedirectResponseRule>public java.lang.String toString()
toString in class java.lang.Objectpublic static RedirectResponseRule newInstance(java.lang.String contentType, java.lang.String target, java.lang.String encoding, java.lang.Boolean excludeNullParameter, java.lang.Boolean excludeEmptyParameter, java.lang.Boolean defaultResponse)
public static RedirectResponseRule newInstance(java.lang.String target) throws IllegalRuleException
IllegalRuleExceptionpublic static RedirectResponseRule replicate(RedirectResponseRule redirectResponseRule)
Copyright © 2008–2018 The Aspectran Project. All rights reserved.