Package | Description |
---|---|
org.glassfish.tyrus.client |
Common Client.
|
org.glassfish.tyrus.client.auth | |
org.glassfish.tyrus.client.exception |
Common Client Exceptions
|
org.glassfish.tyrus.core |
Core classes.
|
Modifier and Type | Class and Description |
---|---|
class |
RedirectException
This exception is set as a cause of
DeploymentException thrown from WebSocketContainer .connectToServer(...)
when any of the Redirect HTTP response status codes (300, 301, 302, 303, 307, 308) is received as a handshake
response and:
ClientProperties.REDIRECT_ENABLED is not enabled
or the chained redirection count exceeds the value of ClientProperties.REDIRECT_THRESHOLD
or Infinite redirection loop is detected
or response header is missing, empty or does not contain a valid URI . |
class |
RetryAfterException
This exception is set as a cause of
DeploymentException thrown from WebSocketContainer .connectToServer(...) when HTTP response status code 503 - Service Unavailable is
received. |
Modifier and Type | Class and Description |
---|---|
class |
AuthenticationException
This exception is set as a cause of
DeploymentException thrown when WebSocketContainer .connectToServer(...)
fails because of any of the following:
HTTP response status code 401 is received and "" header
contains scheme which is not handled by any Authenticator registered in AuthConfig . |
Constructor and Description |
---|
DeploymentHandshakeException(java.lang.String message,
HandshakeException cause) |
Modifier and Type | Method and Description |
---|---|
Handshake |
ProtocolHandler.handshake(TyrusEndpointWrapper endpointWrapper,
UpgradeRequest request,
UpgradeResponse response,
ExtendedExtension.ExtensionContext extensionContext)
Server side handshake processing.
|
void |
Handshake.validateServerResponse(UpgradeResponse response)
Client side only - validate server response.
|
Copyright © 2012–2020 Oracle Corporation. All rights reserved.