Class HTTPResponseApacheImpl
java.lang.Object
com.aeontronix.restclient.http.apache.HTTPResponseApacheImpl
- All Implemented Interfaces:
HTTPResponse,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionHTTPResponseApacheImpl(org.apache.http.client.methods.CloseableHttpResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longgetHeaders(String name) intbooleanbooleanisJson()
-
Constructor Details
-
HTTPResponseApacheImpl
public HTTPResponseApacheImpl(org.apache.http.client.methods.CloseableHttpResponse response)
-
-
Method Details
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCodein interfaceHTTPResponse
-
getStatusReasons
- Specified by:
getStatusReasonsin interfaceHTTPResponse
-
getStatusProtocolVersion
- Specified by:
getStatusProtocolVersionin interfaceHTTPResponse
-
hasContent
public boolean hasContent()- Specified by:
hasContentin interfaceHTTPResponse
-
getContentStream
- Specified by:
getContentStreamin interfaceHTTPResponse- Throws:
RESTException
-
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceHTTPResponse
-
getContentEncoding
- Specified by:
getContentEncodingin interfaceHTTPResponse
-
getHeader
- Specified by:
getHeaderin interfaceHTTPResponse
-
getHeaders
- Specified by:
getHeadersin interfaceHTTPResponse
-
getAllHeaders
- Specified by:
getAllHeadersin interfaceHTTPResponse
-
isJson
public boolean isJson()- Specified by:
isJsonin interfaceHTTPResponse
-
getContentMimeType
- Specified by:
getContentMimeTypein interfaceHTTPResponse
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-