Class RedirectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.glassfish.jersey.jdk.connector.internal.RedirectException
- All Implemented Interfaces:
Serializable
This Exception is used only if
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:
-
the chained redirection count exceeds the value of
JdkConnectorProperties.MAX_REDIRECTS
- or an infinite redirection loop is detected
-
or Location response header is missing, empty or does not contain a valid
URI
.
- Author:
- Ondrej Kosatka
- See Also:
-
Constructor Summary
ConstructorDescriptionRedirectException
(String message) Constructor.RedirectException
(String message, Throwable t) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RedirectException
Constructor.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
RedirectException
Constructor.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-