Package com.okta.commons.http
Class DefaultResponse
java.lang.Object
com.okta.commons.http.DefaultResponse
- All Implemented Interfaces:
HttpMessage,Response
- Since:
- 0.5.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultResponse(int httpStatus, MediaType contentType, InputStream body, long contentLength) -
Method Summary
Modifier and TypeMethodDescriptiongetBody()intbooleanhasBody()booleanbooleanisError()booleanvoidsetHeaders(HttpHeaders headers) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.okta.commons.http.HttpMessage
hasBody
-
Constructor Details
-
DefaultResponse
-
-
Method Details
-
getHttpStatus
public int getHttpStatus()- Specified by:
getHttpStatusin interfaceResponse
-
getHeaders
- Specified by:
getHeadersin interfaceHttpMessage
-
setHeaders
- Specified by:
setHeadersin interfaceHttpMessage
-
isError
public boolean isError() -
isServerError
public boolean isServerError()- Specified by:
isServerErrorin interfaceResponse
-
isClientError
public boolean isClientError()- Specified by:
isClientErrorin interfaceResponse
-
getBody
- Specified by:
getBodyin interfaceHttpMessage
-
hasBody
public boolean hasBody()- Specified by:
hasBodyin interfaceHttpMessage
-