Class RedirectResponseRule

    • Field Detail

      • RESPONSE_TYPE

        public static final ResponseType RESPONSE_TYPE
    • Constructor Detail

      • RedirectResponseRule

        public RedirectResponseRule()
    • 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
      • getExcludeNullParameter

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

        public boolean isExcludeNullParameter()
        Returns whether to exclude parameters with null values.
        Returns:
        whether to exclude parameters with null values
      • setExcludeNullParameter

        public void setExcludeNullParameter​(java.lang.Boolean excludeNullParameter)
        Sets whether to exclude parameters with null values.
        Parameters:
        excludeNullParameter - whether to exclude parameters with null values
      • getExcludeEmptyParameter

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

        public boolean isExcludeEmptyParameter()
        Returns whether to exclude parameters with empty values.
        Returns:
        whether to exclude parameters with empty values
      • setExcludeEmptyParameter

        public void setExcludeEmptyParameter​(java.lang.Boolean excludeEmptyParameter)
        Sets whether to exclude parameters with empty values.
        Parameters:
        excludeEmptyParameter - 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 it is the default response
      • toString

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

        public static RedirectResponseRule newInstance​(java.lang.String contentType,
                                                       java.lang.String path,
                                                       java.lang.String encoding,
                                                       java.lang.Boolean excludeNullParameter,
                                                       java.lang.Boolean excludeEmptyParameter,
                                                       java.lang.Boolean defaultResponse)