Class ForwardResponseRule

    • Field Detail

      • RESPONSE_TYPE

        public static final ResponseType RESPONSE_TYPE
    • Constructor Detail

      • ForwardResponseRule

        public ForwardResponseRule()
    • 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
      • getDefaultResponse

        public java.lang.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​(java.lang.Boolean defaultResponse)
        Sets whether the default response.
        Parameters:
        defaultResponse - whether the default response
      • toString

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

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

        public static ForwardResponseRule newInstance​(java.lang.String transletName)
                                               throws IllegalRuleException
        Returns a new instance of ForwardResponseRule.
        Parameters:
        transletName - the translet name
        Returns:
        an instance of ForwardResponseRule
        Throws:
        IllegalRuleException - if an illegal rule is found