public class RedirectException extends Exception
ClientProperties.FOLLOW_REDIRECTS is set to true.
This exception is thrown when any of the Redirect HTTP response status codes (301, 302, 303, 307, 308) is received and:
org.glassfish.jersey.client.JdkConnectorProvider#MAX_REDIRECTS
URI.
RedirectHandler,
Serialized Form| Constructor and Description |
|---|
RedirectException(String message)
Constructor.
|
RedirectException(String message,
Throwable t)
Constructor.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RedirectException(String message)
message - the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage() method.public RedirectException(String message, Throwable t)
message - the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage() method.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.