public class DefaultResponse extends AbstractHttpMessage implements Response
| Constructor and Description |
|---|
DefaultResponse(int httpStatus,
MediaType contentType,
InputStream body,
long contentLength) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBody() |
HttpHeaders |
getHeaders() |
int |
getHttpStatus() |
boolean |
isClientError() |
boolean |
isError() |
boolean |
isServerError() |
void |
setHeaders(HttpHeaders headers) |
hasBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasBodypublic DefaultResponse(int httpStatus,
MediaType contentType,
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 InputStream getBody()
getBody in interface HttpMessageCopyright © 2012–2014. All rights reserved.