public class RedirectionException extends WebApplicationException
3xx
status codes).Constructor and Description |
---|
RedirectionException(int status,
URI location)
Construct a new redirection exception.
|
RedirectionException(Response.Status status,
URI location)
Construct a new redirection exception.
|
RedirectionException(Response response)
Construct a new redirection exception.
|
RedirectionException(String message,
int status,
URI location)
Construct a new redirection exception.
|
RedirectionException(String message,
Response.Status status,
URI location)
Construct a new redirection exception.
|
RedirectionException(String message,
Response response)
Construct a new redirection exception.
|
Modifier and Type | Method and Description |
---|---|
URI |
getLocation()
Get the redirection response location.
|
getResponse
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RedirectionException(Response.Status status, URI location)
status
- redirection status. Must be a 3xx
redirection code.location
- redirection URI placed into the response Location
header.IllegalArgumentException
- in case the status code is null
or is not from
Response.Status.Family.REDIRECTION
status code
family.public RedirectionException(String message, Response.Status status, URI location)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).status
- redirection status. Must be a 3xx
redirection code.location
- redirection URI placed into the response Location
header.IllegalArgumentException
- in case the status code is null
or is not from
Response.Status.Family.REDIRECTION
status code
family.public RedirectionException(int status, URI location)
status
- redirection status. Must be a 3xx
redirection code.location
- redirection URI placed into the response Location
header.IllegalArgumentException
- in case the status code is not a valid HTTP status code or
if it is not from the Response.Status.Family.REDIRECTION
status code family.public RedirectionException(String message, int status, URI location)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).status
- redirection status. Must be a 3xx
redirection code.location
- redirection URI placed into the response Location
header.IllegalArgumentException
- in case the status code is not a valid HTTP status code or
if it is not from the Response.Status.Family.REDIRECTION
status code family.public RedirectionException(Response response)
response
- redirection response. Must have a status code set to a 3xx
redirection code.IllegalArgumentException
- in case the response status code is not from the
Response.Status.Family.REDIRECTION
status code family.public RedirectionException(String message, Response response)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).response
- redirection response. Must have a status code set to a 3xx
redirection code.IllegalArgumentException
- in case the response status code is not from the
Response.Status.Family.REDIRECTION
status code family.public URI getLocation()
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.