Package ca.uhn.fhir.rest.client.apache
Class ApacheHttpResponse
java.lang.Object
ca.uhn.fhir.rest.client.impl.BaseHttpResponse
ca.uhn.fhir.rest.client.apache.ApacheHttpResponse
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IHttpResponse
public class ApacheHttpResponse
extends BaseHttpResponse
implements ca.uhn.fhir.rest.client.api.IHttpResponse
A Http Response based on Apache. This is an adapter around the class
HttpResponse
- Author:
- Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
-
Constructor Summary
ConstructorDescriptionApacheHttpResponse
(org.apache.http.HttpResponse theResponse, ca.uhn.fhir.util.StopWatch theResponseStopWatch) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
getHeaders
(String theName) org.apache.http.HttpResponse
int
Methods inherited from class ca.uhn.fhir.rest.client.impl.BaseHttpResponse
getRequestStopWatch
-
Constructor Details
-
ApacheHttpResponse
public ApacheHttpResponse(org.apache.http.HttpResponse theResponse, ca.uhn.fhir.util.StopWatch theResponseStopWatch)
-
-
Method Details
-
bufferEntity
- Specified by:
bufferEntity
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
- Throws:
IOException
-
close
- Specified by:
close
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
createReader
- Specified by:
createReader
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
- Throws:
IOException
-
getAllHeaders
- Specified by:
getAllHeaders
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getHeaders
- Specified by:
getHeaders
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getMimeType
- Specified by:
getMimeType
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getResponse
- Specified by:
getResponse
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getStatus
- Specified by:
getStatus
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getStatusInfo
- Specified by:
getStatusInfo
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
readEntity
- Specified by:
readEntity
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
- Throws:
IOException
-