public class DefaultResponse extends java.lang.Object implements Response
| Constructor and Description |
|---|
DefaultResponse(int httpStatus,
MediaType contentType,
java.io.InputStream body,
long contentLength) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getBody() |
HttpHeaders |
getHeaders() |
int |
getHttpStatus() |
boolean |
hasBody() |
boolean |
isClientError() |
boolean |
isError() |
boolean |
isServerError() |
void |
setHeaders(HttpHeaders headers) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasBodypublic DefaultResponse(int httpStatus,
MediaType contentType,
java.io.InputStream body,
long contentLength)
public int getHttpStatus()
getHttpStatus in interface Responsepublic HttpHeaders getHeaders()
getHeaders in interface HttpMessagepublic void setHeaders(HttpHeaders headers)
setHeaders in interface HttpMessagepublic boolean isServerError()
isServerError in interface Responsepublic boolean isClientError()
isClientError in interface Responsepublic java.io.InputStream getBody()
getBody in interface HttpMessagepublic boolean hasBody()
hasBody in interface HttpMessageCopyright © 2018-2021 Okta. All Rights Reserved.