Class TerminalBindingCondition


  • final class TerminalBindingCondition
    extends java.lang.Object
    Terminal binding conditions and their associated messages.
    • Constructor Detail

      • TerminalBindingCondition

        private TerminalBindingCondition​(java.lang.String condition,
                                         java.lang.String message)
        Private constructor to pre
    • Method Detail

      • create

        private static TerminalBindingCondition create​(java.lang.String condition,
                                                       java.lang.String message)
        Helper method to call the helper method to add entries.
      • createWithCode

        private static TerminalBindingCondition createWithCode​(java.lang.String condition,
                                                               java.lang.String message,
                                                               java.lang.Integer code)
        Helper method to add entries.
      • forString

        static TerminalBindingCondition forString​(java.lang.String condStr)
        Lookup the terminal binding condition instance with the condition name specified.
        Parameters:
        condStr - condition name
        Returns:
        terminal binding condition instance, or null if no instance is known by the name specified
      • forHTTPResponseCode

        static TerminalBindingCondition forHTTPResponseCode​(int httpRespCode)
        Lookup the terminal binding condition instance associated with the HTTP response code specified.
        Parameters:
        httpRespCode - HTTP response code
        Returns:
        terminal binding condition instance, or null if no instance is known by the response code specified
      • getCondition

        java.lang.String getCondition()
        Get the name of the condition.
        Returns:
        condition name
      • getMessage

        java.lang.String getMessage()
        Get the human readable error message associated with this condition.
        Returns:
        error message