ActionPossessable, Replicable<DispatchResponseRule>public class DispatchResponseRule extends ActionPossessSupport implements Replicable<DispatchResponseRule>
Created: 2008. 03. 22 PM 5:51:58
| Modifier and Type | Field | Description |
|---|---|---|
static ResponseType |
RESPONSE_TYPE |
| Constructor | Description |
|---|---|
DispatchResponseRule() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getContentType() |
Gets the content type.
|
java.lang.Boolean |
getDefaultResponse() |
Gets the default response.
|
java.lang.String |
getDispatcher() |
Gets the id or class name of the view dispatcher bean that
implements
ViewDispatcher. |
java.lang.String |
getEncoding() |
Gets the character encoding.
|
java.lang.String |
getName() |
Gets the dispatch name.
|
java.lang.String |
getName(Activity activity) |
Gets the dispatch name.
|
Token[] |
getNameTokens() |
Gets the tokens of the dispatch name.
|
boolean |
isDefaultResponse() |
Returns whether the default response.
|
static DispatchResponseRule |
newInstance(java.lang.String name) |
Returns a new instance of DispatchResponseRule.
|
static DispatchResponseRule |
newInstance(java.lang.String name,
java.lang.String dispatcher,
java.lang.String contentType,
java.lang.String encoding) |
Returns a new instance of DispatchResponseRule.
|
static DispatchResponseRule |
newInstance(java.lang.String name,
java.lang.String dispatcher,
java.lang.String contentType,
java.lang.String encoding,
java.lang.Boolean defaultResponse) |
Returns a new instance of DispatchResponseRule.
|
DispatchResponseRule |
replicate() |
Creates and returns a new instance after replicating a rule or Object.
|
static DispatchResponseRule |
replicate(DispatchResponseRule dispatchResponseRule) |
Returns a new derived instance of DispatchResponseRule.
|
void |
setContentType(java.lang.String contentType) |
Sets the content type.
|
void |
setDefaultResponse(java.lang.Boolean defaultResponse) |
Sets whether the default response.
|
void |
setDispatcher(java.lang.String dispatcher) |
Gets the id or class name of the view dispatcher bean that
implements
ViewDispatcher. |
void |
setEncoding(java.lang.String encoding) |
Sets the character encoding.
|
void |
setName(java.lang.String name) |
Sets the dispatch name.
|
void |
setName(java.lang.String name,
Token[] nameTokens) |
Sets the dispatch name and its name tokens.
|
java.lang.String |
toString() |
|
java.lang.String |
toString(ViewDispatcher viewDispatcher,
java.lang.String dispatchName) |
Returns a string representation of
DispatchResponseRule with used Dispatcher. |
getActionList, setActionListpublic static final ResponseType RESPONSE_TYPE
public java.lang.String getName()
public java.lang.String getName(Activity activity)
activity - the activitypublic void setName(java.lang.String name)
name - the new dispatch namepublic void setName(java.lang.String name,
Token[] nameTokens)
name - the new dispatch namenameTokens - the name tokenspublic Token[] getNameTokens()
public java.lang.String getDispatcher()
ViewDispatcher.public void setDispatcher(java.lang.String dispatcher)
ViewDispatcher.dispatcher - the id or class name of the view dispatcher beanpublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - the new content typepublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - the character encoding to setpublic java.lang.Boolean getDefaultResponse()
public boolean isDefaultResponse()
public void setDefaultResponse(java.lang.Boolean defaultResponse)
defaultResponse - whether the default responsepublic DispatchResponseRule replicate()
Replicablereplicate in interface Replicable<DispatchResponseRule>public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(ViewDispatcher viewDispatcher, java.lang.String dispatchName)
DispatchResponseRule with used Dispatcher.viewDispatcher - the view dispatcherdispatchName - the new dispatch nameDispatchResponseRule.public static DispatchResponseRule newInstance(java.lang.String name, java.lang.String dispatcher, java.lang.String contentType, java.lang.String encoding, java.lang.Boolean defaultResponse)
name - the dispatch namedispatcher - the id or class name of the view dispatcher beancontentType - the content typeencoding - the character encodingdefaultResponse - whether it is the default responsepublic static DispatchResponseRule newInstance(java.lang.String name, java.lang.String dispatcher, java.lang.String contentType, java.lang.String encoding)
name - the dispatch namedispatcher - the id or class name of the view dispatcher beancontentType - the content typeencoding - the character encodingpublic static DispatchResponseRule newInstance(java.lang.String name) throws IllegalRuleException
name - the dispatch nameIllegalRuleException - if an illegal rule is foundpublic static DispatchResponseRule replicate(DispatchResponseRule dispatchResponseRule)
dispatchResponseRule - an instance of DispatchResponseRuleCopyright © 2008–2018 The Aspectran Project. All rights reserved.