Package com.aspectran.core.context.rule
Class ForwardRule
- java.lang.Object
-
- com.aspectran.core.context.rule.AbstractResponseRule
-
- com.aspectran.core.context.rule.ForwardRule
-
- All Implemented Interfaces:
ActionRuleApplicable,Replicable<ForwardRule>
public class ForwardRule extends AbstractResponseRule implements Replicable<ForwardRule>
The Class ForwardRule.Created: 2008. 03. 22 PM 5:51:58
-
-
Field Summary
Fields Modifier and Type Field Description static ResponseTypeRESPONSE_TYPE
-
Constructor Summary
Constructors Constructor Description ForwardRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttributeItemRule(ItemRule itemRule)Adds the attribute item rule.ItemRuleMapgetAttributeItemRuleMap()Gets the attribute item rule map.java.lang.StringgetContentType()Gets the content type.MethodTypegetRequestMethod()java.lang.StringgetTransletName()Gets the translet name.ItemRulenewAttributeItemRule(java.lang.String attributeName)Adds a new attribute rule with the specified name and returns it.static ForwardRulenewInstance(java.lang.String transletName)Returns a new instance of ForwardRule.static ForwardRulenewInstance(java.lang.String contentType, java.lang.String transletName, java.lang.String method, java.lang.Boolean defaultResponse)Returns a new instance of ForwardRule.ForwardRulereplicate()Creates and returns a new instance after replicating a rule or Object.static ForwardRulereplicate(ForwardRule forwardRule)voidsetAttributeItemRuleMap(ItemRuleMap attributeItemRuleMap)Sets the attribute item rule map.voidsetContentType(java.lang.String contentType)Sets the content type.voidsetRequestMethod(MethodType requestMethod)voidsetTransletName(java.lang.String transletName)Sets the translet name.java.lang.StringtoString()-
Methods inherited from class com.aspectran.core.context.rule.AbstractResponseRule
applyActionRule, applyActionRule, applyActionRule, applyActionRule, applyActionRule, applyActionRule, applyActionRule, getActionList, getDefaultResponse, isDefaultResponse, setActionList, setDefaultResponse
-
-
-
-
Field Detail
-
RESPONSE_TYPE
public static final ResponseType RESPONSE_TYPE
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
Gets the content type.- Returns:
- the content type
-
setContentType
public void setContentType(java.lang.String contentType)
Sets the content type.- Parameters:
contentType- the new content type
-
getTransletName
public java.lang.String getTransletName()
Gets the translet name.- Returns:
- the translet name
-
setTransletName
public void setTransletName(java.lang.String transletName)
Sets the translet name.- Parameters:
transletName- the new translet name
-
getRequestMethod
public MethodType getRequestMethod()
-
setRequestMethod
public void setRequestMethod(MethodType requestMethod)
-
getAttributeItemRuleMap
public ItemRuleMap getAttributeItemRuleMap()
Gets the attribute item rule map.- Returns:
- the attribute item rule map
-
setAttributeItemRuleMap
public void setAttributeItemRuleMap(ItemRuleMap attributeItemRuleMap)
Sets the attribute item rule map.- Parameters:
attributeItemRuleMap- the new attribute item rule map
-
newAttributeItemRule
public ItemRule newAttributeItemRule(java.lang.String attributeName)
Adds a new attribute rule with the specified name and returns it.- Parameters:
attributeName- the attribute name- Returns:
- the attribute item rule
-
addAttributeItemRule
public void addAttributeItemRule(ItemRule itemRule)
Adds the attribute item rule.- Parameters:
itemRule- the attribute item rule
-
replicate
public ForwardRule replicate()
Description copied from interface:ReplicableCreates and returns a new instance after replicating a rule or Object.- Specified by:
replicatein interfaceReplicable<ForwardRule>- Returns:
- replicated rule or new instance of Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
newInstance
public static ForwardRule newInstance(java.lang.String contentType, java.lang.String transletName, java.lang.String method, java.lang.Boolean defaultResponse) throws IllegalRuleException
Returns a new instance of ForwardRule.- Parameters:
contentType- the content typetransletName- the translet namemethod- the request methoddefaultResponse- whether the default response- Returns:
- an instance of ForwardRule
- Throws:
IllegalRuleException- if an illegal rule is found
-
newInstance
public static ForwardRule newInstance(java.lang.String transletName) throws IllegalRuleException
Returns a new instance of ForwardRule.- Parameters:
transletName- the translet name- Returns:
- an instance of ForwardRule
- Throws:
IllegalRuleException- if an illegal rule is found
-
replicate
public static ForwardRule replicate(ForwardRule forwardRule)
-
-