Class UnsupportedProtocolException
- All Implemented Interfaces:
Serializable
An HTTP exception that indicates that the WebSocket subprotocols provided in the upgrade request are not supported.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates an unsupported protocol exception.UnsupportedProtocolException
(String message) Creates an unsupported protocol exception with the specified message.UnsupportedProtocolException
(String message, Throwable cause) Creates an unsupported protocol exception with the specified message and cause.Creates an unsupported protocol exception with the specified cause.UnsupportedProtocolException
(Set<String> supportedProtocols) Creates an unsupported protocol exception with the specified list of media types accepted by the requested resource.UnsupportedProtocolException
(Set<String> supportedProtocols, String message) Creates an unsupported protocol exception with the specified list of media types accepted by the requested resource and message.UnsupportedProtocolException
(Set<String> supportedProtocols, String message, Throwable cause) Creates an unsupported protocol exception with the specified list of media types accepted by the requested resource, message and cause.UnsupportedProtocolException
(Set<String> supportedProtocols, Throwable cause) Creates an unsupported protocol exception with the specified list of media types accepted by the requested resource and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of supported WebSocket subprotocols.Methods inherited from class io.inverno.mod.http.base.HttpException
getStatus, getStatusCategory, getStatusCode, getStatusReasonPhrase, wrap
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedProtocolException
public UnsupportedProtocolException()Creates an unsupported protocol exception.
-
UnsupportedProtocolException
Creates an unsupported protocol exception with the specified message.
- Parameters:
message
- a message
-
UnsupportedProtocolException
Creates an unsupported protocol exception with the specified cause.
- Parameters:
cause
- a cause
-
UnsupportedProtocolException
Creates an unsupported protocol exception with the specified message and cause.
- Parameters:
message
- a messagecause
- a cause
-
UnsupportedProtocolException
Creates an unsupported protocol exception with the specified list of media types accepted by the requested resource.
- Parameters:
supportedProtocols
- a list of supported subprotocols
-
UnsupportedProtocolException
Creates an unsupported protocol exception with the specified list of media types accepted by the requested resource and message.
- Parameters:
supportedProtocols
- a list of supported subprotocolsmessage
- a message
-
UnsupportedProtocolException
Creates an unsupported protocol exception with the specified list of media types accepted by the requested resource and cause.
- Parameters:
supportedProtocols
- a list of supported subprotocolscause
- a cause
-
UnsupportedProtocolException
public UnsupportedProtocolException(Set<String> supportedProtocols, String message, Throwable cause) Creates an unsupported protocol exception with the specified list of media types accepted by the requested resource, message and cause.
- Parameters:
supportedProtocols
- a list of supported subprotocolsmessage
- a messagecause
- a cause
-
-
Method Details
-
getSupportedProtocol
Returns the list of supported WebSocket subprotocols.
- Returns:
- the list of supported WebSocket subprotocols
-