
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
ConstructorsConstructorDescriptionApacheHttpResponse(org.apache.http.HttpResponse theResponse, ca.uhn.fhir.util.StopWatch theResponseStopWatch) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()getHeaders(String theName) org.apache.http.HttpResponseintMethods inherited from class ca.uhn.fhir.rest.client.impl.BaseHttpResponse
getRequestStopWatchMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.rest.client.api.IHttpResponse
getRequestStopWatch
-
Constructor Details
-
ApacheHttpResponse
public ApacheHttpResponse(org.apache.http.HttpResponse theResponse, ca.uhn.fhir.util.StopWatch theResponseStopWatch)
-
-
Method Details
-
bufferEntity
- Specified by:
bufferEntityin interfaceca.uhn.fhir.rest.client.api.IHttpResponse- Throws:
IOException
-
close
- Specified by:
closein interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
createReader
- Specified by:
createReaderin interfaceca.uhn.fhir.rest.client.api.IHttpResponse- Throws:
IOException
-
getAllHeaders
- Specified by:
getAllHeadersin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getHeaders
- Specified by:
getHeadersin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getMimeType
- Specified by:
getMimeTypein interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getResponse
- Specified by:
getResponsein interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getStatus
- Specified by:
getStatusin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getStatusInfo
- Specified by:
getStatusInfoin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
readEntity
- Specified by:
readEntityin interfaceca.uhn.fhir.rest.client.api.IHttpResponse- Throws:
IOException
-