Replicable<ResponseRule>, ResponseRuleApplicablepublic class ResponseRule extends java.lang.Object implements ResponseRuleApplicable, Replicable<ResponseRule>
Created: 2008. 03. 22 PM 5:48:09
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CONTENT_ENCODING_SETTING_NAME |
| Constructor | Description |
|---|---|
ResponseRule() |
Instantiates a new ResponseRule.
|
| Modifier and Type | Method | Description |
|---|---|---|
Response |
applyResponseRule(DispatchResponseRule dispatchResponseRule) |
Apply the dispatch response rule to the response rule.
|
Response |
applyResponseRule(ForwardResponseRule forwardResponseRule) |
Apply the forward response rule to the response rule.
|
Response |
applyResponseRule(RedirectResponseRule redirectResponseRule) |
Apply the redirect response rule to the response rule.
|
Response |
applyResponseRule(TransformRule transformRule) |
Apply the transform response rule to the response rule.
|
java.lang.String |
getEncoding() |
Gets the response encoding.
|
java.lang.String |
getName() |
|
<T> T |
getRespondent() |
|
Response |
getResponse() |
|
ResponseType |
getResponseType() |
|
static ResponseRule |
newInstance(DispatchResponseRule drr) |
|
static ResponseRule |
newInstance(ForwardResponseRule frr) |
|
static ResponseRule |
newInstance(RedirectResponseRule rrr) |
|
static ResponseRule |
newInstance(TransformRule tr) |
|
static ResponseRule |
newInstance(java.lang.String name,
java.lang.String encoding) |
|
ResponseRule |
replicate() |
Creates and returns a new instance after replicating a rule or Object.
|
static ResponseRule |
replicate(ResponseRule responseRule) |
|
void |
setEncoding(java.lang.String encoding) |
Sets the response encoding.
|
void |
setName(java.lang.String name) |
|
void |
setResponse(Response response) |
|
java.lang.String |
toString() |
public static final java.lang.String CONTENT_ENCODING_SETTING_NAME
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - the new response encodingpublic Response getResponse()
public void setResponse(Response response)
public ResponseType getResponseType()
public <T> T getRespondent()
public Response applyResponseRule(DispatchResponseRule dispatchResponseRule)
ResponseRuleApplicableapplyResponseRule in interface ResponseRuleApplicabledispatchResponseRule - the dispatch response rulepublic Response applyResponseRule(TransformRule transformRule)
ResponseRuleApplicableapplyResponseRule in interface ResponseRuleApplicabletransformRule - the transform rulepublic Response applyResponseRule(ForwardResponseRule forwardResponseRule)
ResponseRuleApplicableapplyResponseRule in interface ResponseRuleApplicableforwardResponseRule - the forward response rulepublic Response applyResponseRule(RedirectResponseRule redirectResponseRule)
ResponseRuleApplicableapplyResponseRule in interface ResponseRuleApplicableredirectResponseRule - the redirect response rulepublic ResponseRule replicate()
Replicablereplicate in interface Replicable<ResponseRule>public java.lang.String toString()
toString in class java.lang.Objectpublic static ResponseRule newInstance(java.lang.String name, java.lang.String encoding) throws IllegalRuleException
IllegalRuleExceptionpublic static ResponseRule newInstance(DispatchResponseRule drr)
public static ResponseRule newInstance(TransformRule tr)
public static ResponseRule newInstance(ForwardResponseRule frr)
public static ResponseRule newInstance(RedirectResponseRule rrr)
public static ResponseRule replicate(ResponseRule responseRule)
Copyright © 2008–2018 The Aspectran Project. All rights reserved.