public class RedirectException
extends java.lang.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 FormModifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
RedirectException(java.lang.String message)
Constructor.
|
RedirectException(java.lang.String message,
java.lang.Throwable t)
Constructor.
|
private static final long serialVersionUID
public RedirectException(java.lang.String message)
message
- the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage()
method.public RedirectException(java.lang.String message, java.lang.Throwable t)
message
- the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage()
method.