| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultResponse.DefaultResponseBuilder |
Response.Builder| Constructor and Description |
|---|
DefaultResponse(Headers headers,
java.io.InputStream entityStream,
com.atlassian.fugue.Option<java.lang.Long> maxEntitySize,
int statusCode,
java.lang.String statusText) |
| Modifier and Type | Method and Description |
|---|---|
static DefaultResponse.DefaultResponseBuilder |
builder() |
java.lang.String |
getAccept() |
java.lang.String |
getContentCharset() |
java.lang.String |
getContentType() |
java.lang.String |
getEntity() |
java.io.InputStream |
getEntityStream() |
java.lang.String |
getHeader(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
int |
getStatusCode() |
java.lang.String |
getStatusText() |
boolean |
hasEntity() |
boolean |
hasReadEntity() |
boolean |
isBadRequest() |
boolean |
isClientError() |
boolean |
isConflict() |
boolean |
isCreated() |
boolean |
isError() |
boolean |
isForbidden() |
boolean |
isInformational() |
boolean |
isInternalServerError() |
boolean |
isNoContent() |
boolean |
isNotFound() |
boolean |
isNotModified() |
boolean |
isNotSuccessful() |
boolean |
isOk() |
boolean |
isRedirection() |
boolean |
isSeeOther() |
boolean |
isServerError() |
boolean |
isServiceUnavailable() |
boolean |
isSuccessful() |
boolean |
isUnauthorized() |
Message |
validate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentCharset, getContentType, getEntity, getEntityStream, getHeader, getHeaders, hasEntity, hasReadEntitypublic DefaultResponse(Headers headers, java.io.InputStream entityStream, com.atlassian.fugue.Option<java.lang.Long> maxEntitySize, int statusCode, java.lang.String statusText)
public static DefaultResponse.DefaultResponseBuilder builder()
public int getStatusCode()
getStatusCode in interface Responsepublic java.lang.String getStatusText()
getStatusText in interface Responsepublic boolean isInformational()
isInformational in interface Responsepublic boolean isSuccessful()
isSuccessful in interface Responsepublic boolean isNoContent()
isNoContent in interface Responsepublic boolean isRedirection()
isRedirection in interface Responsepublic boolean isSeeOther()
isSeeOther in interface Responsepublic boolean isNotModified()
isNotModified in interface Responsepublic boolean isClientError()
isClientError in interface Responsepublic boolean isBadRequest()
isBadRequest in interface Responsepublic boolean isUnauthorized()
isUnauthorized in interface Responsepublic boolean isForbidden()
isForbidden in interface Responsepublic boolean isNotFound()
isNotFound in interface Responsepublic boolean isConflict()
isConflict in interface Responsepublic boolean isServerError()
isServerError in interface Responsepublic boolean isInternalServerError()
isInternalServerError in interface Responsepublic boolean isServiceUnavailable()
isServiceUnavailable in interface Responsepublic boolean isNotSuccessful()
isNotSuccessful in interface Responsepublic java.lang.String getContentType()
getContentType in interface Messagepublic java.lang.String getContentCharset()
getContentCharset in interface Messagepublic java.lang.String getAccept()
public java.io.InputStream getEntityStream()
throws java.lang.IllegalStateException
getEntityStream in interface Messagejava.lang.IllegalStateExceptionpublic java.lang.String getEntity()
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
public boolean hasReadEntity()
hasReadEntity in interface Messagepublic java.util.Map<java.lang.String,java.lang.String> getHeaders()
getHeaders in interface Messagepublic java.lang.String getHeader(java.lang.String name)
public Message validate()
Copyright © 2012-2013 Atlassian. All Rights Reserved.