Enum Class BoshBindingError

java.lang.Object
java.lang.Enum<BoshBindingError>
org.jivesoftware.openfire.http.BoshBindingError
All Implemented Interfaces:
Serializable, Comparable<BoshBindingError>, Constable

public enum BoshBindingError extends Enum<BoshBindingError>
An enum defining all errors which can happen during a BOSH session.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The format of an HTTP header or binding element received from the client is unacceptable (e.g., syntax error), or Script Syntax is not supported.
    The target domain specified in the 'to' attribute or the target host or port specified in the 'route' attribute is no longer serviced by the connection manager.
    The target domain specified in the 'to' attribute or the target host or port specified in the 'route' attribute is unknown to the connection manager.
    The initialization element lacks a 'to' or 'route' attribute (or the attribute has no value) but the connection manager requires one.
    The connection manager has experienced an internal error that prevents it from servicing the request.
    (1) 'sid' is not valid, (2) 'stream' is not valid, (3) 'rid' is larger than the upper limit of the expected window, (4) connection manager is unable to resend response, (5) 'key' sequence is invalid (6) script syntax is not enabled
    Another request being processed at the same time as this request caused the session to terminate.
    The client has broken the session rules (polling too frequently, requesting too frequently, too many simultaneous requests).
    The connection manager was unable to connect to, or unable to connect securely to, or has lost its connection to, the server.
    Encapsulates an error in the protocol being transported.
    The connection manager does not operate at this URI (e.g., the connection manager accepts only SSL or TLS connections at some https: URI rather than the http: URI requested by the client).
    The connection manager is being shut down.
    The error is not one of those defined herein; the connection manager SHOULD include application-specific information in the content of the <body> wrapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the condition that caused the binding error.
     
    int
    Returns the legacy HTTP error code which is related to the binding error.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • badRequest

      public static final BoshBindingError badRequest
      The format of an HTTP header or binding element received from the client is unacceptable (e.g., syntax error), or Script Syntax is not supported.
    • hostGone

      public static final BoshBindingError hostGone
      The target domain specified in the 'to' attribute or the target host or port specified in the 'route' attribute is no longer serviced by the connection manager.
    • hostUnknown

      public static final BoshBindingError hostUnknown
      The target domain specified in the 'to' attribute or the target host or port specified in the 'route' attribute is unknown to the connection manager.
    • improperAddressing

      public static final BoshBindingError improperAddressing
      The initialization element lacks a 'to' or 'route' attribute (or the attribute has no value) but the connection manager requires one.
    • internalServerError

      public static final BoshBindingError internalServerError
      The connection manager has experienced an internal error that prevents it from servicing the request.
    • itemNotFound

      public static final BoshBindingError itemNotFound
      (1) 'sid' is not valid, (2) 'stream' is not valid, (3) 'rid' is larger than the upper limit of the expected window, (4) connection manager is unable to resend response, (5) 'key' sequence is invalid (6) script syntax is not enabled
    • otherRequest

      public static final BoshBindingError otherRequest
      Another request being processed at the same time as this request caused the session to terminate.
    • policyViolation

      public static final BoshBindingError policyViolation
      The client has broken the session rules (polling too frequently, requesting too frequently, too many simultaneous requests).
    • remoteConnectionFailed

      public static final BoshBindingError remoteConnectionFailed
      The connection manager was unable to connect to, or unable to connect securely to, or has lost its connection to, the server.
    • remoteStreamError

      public static final BoshBindingError remoteStreamError
      Encapsulates an error in the protocol being transported.
    • seeOtherUri

      public static final BoshBindingError seeOtherUri
      The connection manager does not operate at this URI (e.g., the connection manager accepts only SSL or TLS connections at some https: URI rather than the http: URI requested by the client). The client may try POSTing to the URI in the content of the <uri/> child element.
    • systemShutdown

      public static final BoshBindingError systemShutdown
      The connection manager is being shut down. All active HTTP sessions are being terminated. No new sessions can be created.
    • undefinedCondition

      public static final BoshBindingError undefinedCondition
      The error is not one of those defined herein; the connection manager SHOULD include application-specific information in the content of the <body> wrapper.
  • Method Details

    • values

      public static BoshBindingError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BoshBindingError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getErrorType

      public BoshBindingError.Type getErrorType()
    • getCondition

      public String getCondition()
      Returns the condition that caused the binding error. This should be returned to the client so that the client can take appropriate action.
      Returns:
      the condition that caused the binding error.
    • getLegacyErrorCode

      public int getLegacyErrorCode()
      Returns the legacy HTTP error code which is related to the binding error. With the 1.6 version of BOSH the use of HTTP errors was deprecated in favor of using errors inside of the response to the client so that they could be more easily processed on the client side.
      Returns:
      the legacy HTTP error code which is related to the binding error.