public interface Response extends Message
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Response.Builder |
| Modifier and Type | Method and Description |
|---|---|
int |
getStatusCode()
Gets the status code of the response.
|
String |
getStatusText()
Gets the status text of the response.
|
boolean |
isBadRequest()
Indicates whether or not this response's status code is "Bad Request".
|
boolean |
isClientError()
Indicates whether or not this response's status code is categorized as "Client Error" (4xx).
|
boolean |
isConflict()
Indicates whether or not this response's status code is "Conflict".
|
boolean |
isCreated()
Indicates whether or not this response's status code is "Created".
|
boolean |
isError()
Indicates whether or not this response's status code is categorized as either "Client Error"
or "Server Error".
|
boolean |
isForbidden()
Indicates whether or not this response's status code is "Forbidden".
|
boolean |
isInformational()
Indicates whether or not this response's status code is categorized as "Informational" (1xx).
|
boolean |
isInternalServerError()
Indicates whether or not this response's status code is "Internal Server Error".
|
boolean |
isNoContent()
Indicates whether or not this response's status code is "No Content".
|
boolean |
isNotFound()
Indicates whether or not this response's status code is "Not Found".
|
boolean |
isNotModified()
Indicates whether or not this response's status code is "Not Modified".
|
boolean |
isNotSuccessful()
Indicates whether or not this response's status code is categorized as one of "Informational",
"Redirection", "Client Error" or "Server Error".
|
boolean |
isOk()
Indicates whether or not this response's status code is "OK".
|
boolean |
isRedirection()
Indicates whether or not this response's status code is categorized as "Redirection" (3xx).
|
boolean |
isSeeOther()
Indicates whether or not this response's status code is "See Other".
|
boolean |
isServerError()
Indicates whether or not this response's status code is categorized as "Server Error" (5xx).
|
boolean |
isServiceUnavailable()
Indicates whether or not this response's status code is "Service Unavailable".
|
boolean |
isSuccessful()
Indicates whether or not this response's status code is categorized as "Successful" (2xx).
|
boolean |
isUnauthorized()
Indicates whether or not this response's status code is "Unauthorized".
|
getContentCharset, getContentLength, getContentType, getEntity, getEntityStream, getHeader, getHeaders, hasEntity, hasReadEntityint getStatusCode()
String getStatusText()
boolean isInformational()
boolean isSuccessful()
boolean isOk()
boolean isCreated()
boolean isNoContent()
boolean isRedirection()
boolean isSeeOther()
boolean isNotModified()
boolean isClientError()
boolean isBadRequest()
boolean isUnauthorized()
boolean isForbidden()
boolean isNotFound()
boolean isConflict()
boolean isServerError()
boolean isInternalServerError()
boolean isServiceUnavailable()
boolean isError()
boolean isNotSuccessful()
Copyright © 2012–2018 Atlassian. All rights reserved.