Top Description Fields Constructors Methods
org.glassfish.tyrus.client

public Class RedirectException

extends HandshakeException
Class Inheritance
Imports
java.net.URI, jakarta.websocket.DeploymentException, .WebSocketContainer, org.glassfish.tyrus.core.HandshakeException, org.glassfish.tyrus.spi.UpgradeResponse

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:
Author
Ondrej Kosatka
See Also
ClientProperties#REDIRECT_ENABLED, ClientProperties#REDIRECT_THRESHOLD

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
RedirectException(int
http status code to be set to response.
httpStatusCode
,
String
the detail message. The detail message is saved for later retrieval by the getMessage() method.
message
)

Constructor.

Method Summary

Inherited from org.glassfish.tyrus.core.HandshakeException:
getHttpStatusCode

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

RedirectExceptionback to summary
public RedirectException(int httpStatusCode, String message)

Constructor.

Parameters
httpStatusCode:int

http status code to be set to response.

message:String

the detail message. The detail message is saved for later retrieval by the getMessage() method.