Class RedirectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.glassfish.jersey.jdk.connector.internal.RedirectException
-
- All Implemented Interfaces:
java.io.Serializable
public class RedirectException extends java.lang.Exception
This Exception is used only ifClientProperties.FOLLOW_REDIRECTS
is 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
org.glassfish.jersey.client.JdkConnectorProvider#MAX_REDIRECTS
- or an infinite redirection loop is detected
-
or Location response header is missing, empty or does not contain a valid
URI
.
- See Also:
RedirectHandler
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description RedirectException(java.lang.String message)
Constructor.RedirectException(java.lang.String message, java.lang.Throwable t)
Constructor.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RedirectException
public RedirectException(java.lang.String message)
Constructor.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
RedirectException
public RedirectException(java.lang.String message, java.lang.Throwable t)
Constructor.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
-