Class RedirectRule

    • Field Detail

      • RESPONSE_TYPE

        public static final ResponseType RESPONSE_TYPE
    • Constructor Detail

      • RedirectRule

        public RedirectRule()
    • 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
      • getPath

        public java.lang.String getPath()
        Gets the redirect path.
        Returns:
        the redirect path
      • getPath

        public java.lang.String getPath​(Activity activity)
        Gets the redirect path.
        Parameters:
        activity - the activity
        Returns:
        the redirect path
      • setPath

        public void setPath​(java.lang.String path)
        Sets the redirect path.
        Parameters:
        path - the redirect path
      • setPath

        public void setPath​(java.lang.String path,
                            Token[] pathTokens)
      • getPathTokens

        public Token[] getPathTokens()
        Gets the tokens of the redirect path.
        Returns:
        the tokens of the redirect path
      • getEncoding

        public java.lang.String getEncoding()
        Gets the character encoding.
        Returns:
        the character encoding
      • setEncoding

        public void setEncoding​(java.lang.String encoding)
        Sets the character encoding.
        Parameters:
        encoding - the new character encoding
      • getExcludeNullParameters

        public java.lang.Boolean getExcludeNullParameters()
        Gets whether to exclude parameters with null values.
        Returns:
        whether to exclude parameters with null values
      • isExcludeNullParameters

        public boolean isExcludeNullParameters()
        Returns whether to exclude parameters with null values.
        Returns:
        whether to exclude parameters with null values
      • setExcludeNullParameters

        public void setExcludeNullParameters​(java.lang.Boolean excludeNullParameters)
        Sets whether to exclude parameters with null values.
        Parameters:
        excludeNullParameters - whether to exclude parameters with null values
      • getExcludeEmptyParameters

        public java.lang.Boolean getExcludeEmptyParameters()
        Gets whether to exclude parameters with empty values.
        Returns:
        whether to exclude parameters with empty values
      • isExcludeEmptyParameters

        public boolean isExcludeEmptyParameters()
        Returns whether to exclude parameters with empty values.
        Returns:
        whether to exclude parameters with empty values
      • setExcludeEmptyParameters

        public void setExcludeEmptyParameters​(java.lang.Boolean excludeEmptyParameters)
        Sets whether to exclude parameters with empty values.
        Parameters:
        excludeEmptyParameters - whether to exclude parameters with empty values
      • 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​(java.lang.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
      • setParameters

        public void setParameters​(java.util.Map<java.lang.String,​java.lang.String> parameters)
        Sets the parameter map.
        Parameters:
        parameters - the parameter map
      • 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
      • replicate

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

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

        public static RedirectRule newInstance​(java.lang.String contentType,
                                               java.lang.String path,
                                               java.lang.String encoding,
                                               java.lang.Boolean excludeNullParameters,
                                               java.lang.Boolean excludeEmptyParameters,
                                               java.lang.Boolean defaultResponse)