Class RequestRule

java.lang.Object
com.aspectran.core.context.rule.RequestRule

public class RequestRule extends Object
The Class RequestRule.

Created: 2008. 03. 22 PM 5:48:09

  • Field Details

  • Constructor Details

    • RequestRule

      public RequestRule(boolean explicit)
      Instantiates a new RequestRule.
      Parameters:
      explicit - whether this request rule is explicit
  • Method Details

    • isExplicit

      public boolean isExplicit()
      Gets whether the request rule is explicitly generated.
      Returns:
      true if this request rule is explicit; false otherwise
    • getAllowedMethod

      public MethodType getAllowedMethod()
      Returns the method allowed on the requested resource.
      Returns:
      the allowed method
    • setAllowedMethod

      public void setAllowedMethod(MethodType allowedMethod)
      Sets the method allowed on the requested resource.
      Parameters:
      allowedMethod - the new allowed method
    • getEncoding

      public String getEncoding()
      Gets the request encoding.
      Returns:
      the request encoding
    • setEncoding

      public void setEncoding(String encoding)
      Sets the request encoding.
      Parameters:
      encoding - the new request encoding
    • getParameterItemRuleMap

      public ItemRuleMap getParameterItemRuleMap()
      Gets the parameter item rule map.
      Returns:
      the parameter item rule map
    • setParameterItemRuleMap

      public void setParameterItemRuleMap(ItemRuleMap parameterItemRuleMap)
      Sets the attribute item rule map.
      Parameters:
      parameterItemRuleMap - the new attribute item rule map
    • newParameterItemRule

      public ItemRule newParameterItemRule(String parameterName)
      Adds a new parameter rule with the specified name and returns it.
      Parameters:
      parameterName - the parameter name
      Returns:
      the parameter item rule
    • addParameterItemRule

      public void addParameterItemRule(ItemRule parameterItemRule)
      Adds the parameter item rule.
      Parameters:
      parameterItemRule - the parameter item rule
    • 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 parameter name
      Returns:
      the attribute item rule
    • addAttributeItemRule

      public void addAttributeItemRule(ItemRule attributeItemRule)
      Adds the attribute item rule.
      Parameters:
      attributeItemRule - the attribute item rule
    • toString

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

      @NonNull public static RequestRule newInstance(boolean explicit)
    • newInstance

      @NonNull public static RequestRule newInstance(String allowedMethod, String encoding) throws IllegalRuleException
      Throws:
      IllegalRuleException