Class DefaultResponse
java.lang.Object
com.atlassian.httpclient.apache.httpcomponents.DefaultResponse
- All Implemented Interfaces:
com.atlassian.httpclient.api.Message
,com.atlassian.httpclient.api.Response
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.atlassian.httpclient.api.Response
com.atlassian.httpclient.api.Response.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultResponse
(Headers headers, InputStream entityStream, io.atlassian.fugue.Option<Long> maxEntitySize, int statusCode, String statusText) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
io.atlassian.fugue.Option<Long>
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isError()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isOk()
boolean
boolean
boolean
boolean
boolean
boolean
com.atlassian.httpclient.api.Message
validate()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.httpclient.api.Message
getContentCharset, getContentType, getEntity, getEntityStream, getHeader, getHeaders, hasEntity, hasReadEntity
-
Constructor Details
-
DefaultResponse
public DefaultResponse(Headers headers, InputStream entityStream, io.atlassian.fugue.Option<Long> maxEntitySize, int statusCode, String statusText)
-
-
Method Details
-
builder
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCode
in interfacecom.atlassian.httpclient.api.Response
-
getStatusText
- Specified by:
getStatusText
in interfacecom.atlassian.httpclient.api.Response
-
isInformational
public boolean isInformational()- Specified by:
isInformational
in interfacecom.atlassian.httpclient.api.Response
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessful
in interfacecom.atlassian.httpclient.api.Response
-
isOk
public boolean isOk()- Specified by:
isOk
in interfacecom.atlassian.httpclient.api.Response
-
isCreated
public boolean isCreated()- Specified by:
isCreated
in interfacecom.atlassian.httpclient.api.Response
-
isNoContent
public boolean isNoContent()- Specified by:
isNoContent
in interfacecom.atlassian.httpclient.api.Response
-
isRedirection
public boolean isRedirection()- Specified by:
isRedirection
in interfacecom.atlassian.httpclient.api.Response
-
isSeeOther
public boolean isSeeOther()- Specified by:
isSeeOther
in interfacecom.atlassian.httpclient.api.Response
-
isNotModified
public boolean isNotModified()- Specified by:
isNotModified
in interfacecom.atlassian.httpclient.api.Response
-
isClientError
public boolean isClientError()- Specified by:
isClientError
in interfacecom.atlassian.httpclient.api.Response
-
isBadRequest
public boolean isBadRequest()- Specified by:
isBadRequest
in interfacecom.atlassian.httpclient.api.Response
-
isUnauthorized
public boolean isUnauthorized()- Specified by:
isUnauthorized
in interfacecom.atlassian.httpclient.api.Response
-
isForbidden
public boolean isForbidden()- Specified by:
isForbidden
in interfacecom.atlassian.httpclient.api.Response
-
isNotFound
public boolean isNotFound()- Specified by:
isNotFound
in interfacecom.atlassian.httpclient.api.Response
-
isConflict
public boolean isConflict()- Specified by:
isConflict
in interfacecom.atlassian.httpclient.api.Response
-
isServerError
public boolean isServerError()- Specified by:
isServerError
in interfacecom.atlassian.httpclient.api.Response
-
isInternalServerError
public boolean isInternalServerError()- Specified by:
isInternalServerError
in interfacecom.atlassian.httpclient.api.Response
-
isError
public boolean isError()- Specified by:
isError
in interfacecom.atlassian.httpclient.api.Response
-
isNotSuccessful
public boolean isNotSuccessful()- Specified by:
isNotSuccessful
in interfacecom.atlassian.httpclient.api.Response
-
getContentLength
- Specified by:
getContentLength
in interfacecom.atlassian.httpclient.api.Message
-
getContentType
- Specified by:
getContentType
in interfacecom.atlassian.httpclient.api.Message
-
getContentCharset
- Specified by:
getContentCharset
in interfacecom.atlassian.httpclient.api.Message
-
getAccept
-
getEntityStream
- Specified by:
getEntityStream
in interfacecom.atlassian.httpclient.api.Message
- Throws:
IllegalStateException
-
getEntity
- Specified by:
getEntity
in interfacecom.atlassian.httpclient.api.Message
- Throws:
IllegalStateException
IllegalArgumentException
-
hasEntity
public boolean hasEntity()- Specified by:
hasEntity
in interfacecom.atlassian.httpclient.api.Message
-
hasReadEntity
public boolean hasReadEntity()- Specified by:
hasReadEntity
in interfacecom.atlassian.httpclient.api.Message
-
getHeaders
- Specified by:
getHeaders
in interfacecom.atlassian.httpclient.api.Message
-
getHeader
- Specified by:
getHeader
in interfacecom.atlassian.httpclient.api.Message
-
validate
public com.atlassian.httpclient.api.Message validate()
-