Package org.jivesoftware.openfire.http
Enum Class BoshBindingError
- All Implemented Interfaces:
Serializable,Comparable<BoshBindingError>,Constable
An enum defining all errors which can happen during a BOSH session.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe 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 enabledAnother 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 TypeMethodDescriptionReturns the condition that caused the binding error.intReturns the legacy HTTP error code which is related to the binding error.static BoshBindingErrorReturns the enum constant of this class with the specified name.static BoshBindingError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
The initialization element lacks a 'to' or 'route' attribute (or the attribute has no value) but the connection manager requires one. -
internalServerError
The connection manager has experienced an internal error that prevents it from servicing the request. -
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
Another request being processed at the same time as this request caused the session to terminate. -
policyViolation
The client has broken the session rules (polling too frequently, requesting too frequently, too many simultaneous requests). -
remoteConnectionFailed
The connection manager was unable to connect to, or unable to connect securely to, or has lost its connection to, the server. -
remoteStreamError
Encapsulates an error in the protocol being transported. -
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
The connection manager is being shut down. All active HTTP sessions are being terminated. No new sessions can be created. -
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
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
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 nameNullPointerException- if the argument is null
-
getErrorType
-
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.
-