Class RedirectException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.glassfish.tyrus.core.HandshakeException
org.glassfish.tyrus.client.RedirectException
All Implemented Interfaces:
Serializable

public class RedirectException extends org.glassfish.tyrus.core.HandshakeException
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:
  • Constructor Details

    • RedirectException

      public RedirectException(int httpStatusCode, String message)
      Constructor.
      Parameters:
      httpStatusCode - http status code to be set to response.
      message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.