public class RedirectException extends 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,
                 java.lang.String message)Constructor. | 
getHttpStatusCodepublic RedirectException(int httpStatusCode,
                         java.lang.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–2020 Oracle Corporation. All rights reserved.