public class RedirectionException extends WebApplicationException
3xx status codes).| Constructor and Description | 
|---|
| RedirectionException(int status,
                    java.net.URI location)Construct a new redirection exception. | 
| RedirectionException(Response.Status status,
                    java.net.URI location)Construct a new redirection exception. | 
| RedirectionException(Response response)Construct a new redirection exception. | 
| RedirectionException(java.lang.String message,
                    int status,
                    java.net.URI location)Construct a new redirection exception. | 
| RedirectionException(java.lang.String message,
                    Response.Status status,
                    java.net.URI location)Construct a new redirection exception. | 
| RedirectionException(java.lang.String message,
                    Response response)Construct a new redirection exception. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.net.URI | getLocation()Get the redirection response location. | 
getResponsepublic RedirectionException(Response.Status status, java.net.URI location)
status - redirection status. Must be a 3xx redirection code.location - redirection URI placed into the response Location header.java.lang.IllegalArgumentException - in case the status code is null or is not from
                                  Response.Status.Family.REDIRECTION status code
                                  family.public RedirectionException(java.lang.String message,
                            Response.Status status,
                            java.net.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.java.lang.IllegalArgumentException - in case the status code is null or is not from
                                  Response.Status.Family.REDIRECTION status code
                                  family.public RedirectionException(int status,
                            java.net.URI location)
status - redirection status. Must be a 3xx redirection code.location - redirection URI placed into the response Location header.java.lang.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(java.lang.String message,
                            int status,
                            java.net.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.java.lang.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.java.lang.IllegalArgumentException - in case the response status code is not from the
                                  Response.Status.Family.REDIRECTION status code family.public RedirectionException(java.lang.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.java.lang.IllegalArgumentException - in case the response status code is not from the
                                  Response.Status.Family.REDIRECTION status code family.