public class RedirectException
extends org.glassfish.tyrus.core.HandshakeException
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
ClientProperties.REDIRECT_THRESHOLD
URI.
ClientProperties.REDIRECT_ENABLED,
ClientProperties.REDIRECT_THRESHOLD,
Serialized Form| Constructor and Description |
|---|
RedirectException(int httpStatusCode,
String message)
Constructor.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RedirectException(int httpStatusCode,
String message)
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.Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.