Class RedirectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.glassfish.jersey.jdk.connector.internal.RedirectException
-
- All Implemented Interfaces:
Serializable
public class RedirectException extends Exception
This Exception is used only ifClientProperties.FOLLOW_REDIRECTSis set totrue. 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:
RedirectHandler, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RedirectException(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 Detail
-
RedirectException
public RedirectException(String message)
Constructor.- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.
-
RedirectException
public RedirectException(String message, Throwable t)
Constructor.- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.
-
-