Class ForwardRule

java.lang.Object
com.aspectran.core.context.rule.ForwardRule
All Implemented Interfaces:
Replicable<ForwardRule>

public class ForwardRule extends Object implements Replicable<ForwardRule>
The Class ForwardRule.

Created: 2008. 03. 22 PM 5:51:58

  • Field Details

    • RESPONSE_TYPE

      public static final ResponseType RESPONSE_TYPE
  • Constructor Details

    • ForwardRule

      public ForwardRule()
  • Method Details

    • getContentType

      public String getContentType()
      Gets the content type.
      Returns:
      the content type
    • setContentType

      public void setContentType(String contentType)
      Sets the content type.
      Parameters:
      contentType - the new content type
    • getTransletName

      public String getTransletName()
      Gets the translet name.
      Returns:
      the translet name
    • setTransletName

      public void setTransletName(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(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
    • getDefaultResponse

      public Boolean getDefaultResponse()
      Returns whether the default response.
      Returns:
      whether the default response
    • isDefaultResponse

      public boolean isDefaultResponse()
      Returns whether the default response.
      Returns:
      true, if is default response
    • setDefaultResponse

      public void setDefaultResponse(Boolean defaultResponse)
      Sets whether the default response.
      Parameters:
      defaultResponse - whether the default response
    • replicate

      public ForwardRule replicate()
      Description copied from interface: Replicable
      Creates and returns a new instance after replicating a rule or Object.
      Specified by:
      replicate in interface Replicable<ForwardRule>
      Returns:
      replicated rule or new instance of Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • newInstance

      @NonNull public static ForwardRule newInstance(String contentType, String transletName, String method, Boolean defaultResponse) throws IllegalRuleException
      Returns a new instance of ForwardRule.
      Parameters:
      contentType - the content type
      transletName - the translet name
      method - the request method
      defaultResponse - whether the default response
      Returns:
      an instance of ForwardRule
      Throws:
      IllegalRuleException - if an illegal rule is found
    • newInstance

      @NonNull public static ForwardRule newInstance(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

      @NonNull public static ForwardRule replicate(@NonNull ForwardRule forwardRule)