Package com.aspectran.core.context.rule
Class ResponseRule
- java.lang.Object
-
- com.aspectran.core.context.rule.ResponseRule
-
- All Implemented Interfaces:
Replicable<ResponseRule>,ResponseRuleApplicable
public class ResponseRule extends java.lang.Object implements ResponseRuleApplicable, Replicable<ResponseRule>
The Class ResponseRule.Created: 2008. 03. 22 PM 5:48:09
-
-
Constructor Summary
Constructors Constructor Description ResponseRule(boolean explicit)Instantiates a new ResponseRule.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseapplyResponseRule(DispatchRule dispatchRule)Apply the dispatch rule to the response rule.ResponseapplyResponseRule(ForwardRule forwardRule)Apply the forward rule to the response rule.ResponseapplyResponseRule(RedirectRule redirectRule)Apply the redirect rule to the response rule.ResponseapplyResponseRule(TransformRule transformRule)Apply the transform rule to the response rule.java.lang.StringgetEncoding()Gets the response encoding.java.lang.StringgetName()ResponsegetResponse()ResponseTypegetResponseType()booleanisExplicit()static ResponseRulenewInstance(DispatchRule dispatchRule)static ResponseRulenewInstance(ForwardRule forwardRule)static ResponseRulenewInstance(RedirectRule redirectRule)static ResponseRulenewInstance(TransformRule transformRule)static ResponseRulenewInstance(java.lang.String name, java.lang.String encoding)ResponseRulereplicate()Creates and returns a new instance after replicating a rule or Object.static ResponseRulereplicate(ResponseRule responseRule)voidsetEncoding(java.lang.String encoding)Sets the response encoding.voidsetName(java.lang.String name)voidsetResponse(Response response)java.lang.StringtoString()
-
-
-
Method Detail
-
isExplicit
public boolean isExplicit()
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getEncoding
public java.lang.String getEncoding()
Gets the response encoding.- Returns:
- the response encoding
-
setEncoding
public void setEncoding(java.lang.String encoding)
Sets the response encoding.- Parameters:
encoding- the new response encoding
-
getResponse
public Response getResponse()
-
setResponse
public void setResponse(Response response)
-
getResponseType
public ResponseType getResponseType()
-
applyResponseRule
public Response applyResponseRule(TransformRule transformRule)
Description copied from interface:ResponseRuleApplicableApply the transform rule to the response rule.- Specified by:
applyResponseRulein interfaceResponseRuleApplicable- Parameters:
transformRule- the transform rule- Returns:
- the response
-
applyResponseRule
public Response applyResponseRule(DispatchRule dispatchRule)
Description copied from interface:ResponseRuleApplicableApply the dispatch rule to the response rule.- Specified by:
applyResponseRulein interfaceResponseRuleApplicable- Parameters:
dispatchRule- the dispatch rule- Returns:
- the response
-
applyResponseRule
public Response applyResponseRule(ForwardRule forwardRule)
Description copied from interface:ResponseRuleApplicableApply the forward rule to the response rule.- Specified by:
applyResponseRulein interfaceResponseRuleApplicable- Parameters:
forwardRule- the forward rule- Returns:
- the response
-
applyResponseRule
public Response applyResponseRule(RedirectRule redirectRule)
Description copied from interface:ResponseRuleApplicableApply the redirect rule to the response rule.- Specified by:
applyResponseRulein interfaceResponseRuleApplicable- Parameters:
redirectRule- the redirect rule- Returns:
- the response
-
replicate
public ResponseRule replicate()
Description copied from interface:ReplicableCreates and returns a new instance after replicating a rule or Object.- Specified by:
replicatein interfaceReplicable<ResponseRule>- Returns:
- replicated rule or new instance of Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
newInstance
public static ResponseRule newInstance(java.lang.String name, java.lang.String encoding) throws IllegalRuleException
- Throws:
IllegalRuleException
-
newInstance
public static ResponseRule newInstance(DispatchRule dispatchRule)
-
newInstance
public static ResponseRule newInstance(TransformRule transformRule)
-
newInstance
public static ResponseRule newInstance(ForwardRule forwardRule)
-
newInstance
public static ResponseRule newInstance(RedirectRule redirectRule)
-
replicate
public static ResponseRule replicate(ResponseRule responseRule)
-
-