public class TooManyRedirectsException extends RedirectionException
Exception that's thrown when the client has been redirected too often.| Constructor and Description |
|---|
TooManyRedirectsException(HttpStatus statusCode,
int count,
java.net.URI redirectingLocation,
java.net.URI newLocation)
Create a new
TooManyRedirectsException for the given status, source and destination. |
| Modifier and Type | Method and Description |
|---|---|
int |
count()
Get the number of redirects that has led to this exception.
|
newLocation, redirectingLocationstatuspublic TooManyRedirectsException(HttpStatus statusCode, int count, java.net.URI redirectingLocation, java.net.URI newLocation)
TooManyRedirectsException for the given status, source and destination.statusCode - The HttpStatus of the last redirect.count - The number of redirects to this point.redirectingLocation - The source of the redirect.newLocation - The destination of the redirect.