Package ca.uhn.fhir.rest.client.apache
Class ApacheHttpRequest
java.lang.Object
ca.uhn.fhir.rest.client.api.BaseHttpRequest
ca.uhn.fhir.rest.client.apache.ApacheHttpRequest
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IHttpRequest
public class ApacheHttpRequest
extends ca.uhn.fhir.rest.client.api.BaseHttpRequest
implements ca.uhn.fhir.rest.client.api.IHttpRequest
A Http Request based on Apache. This is an adapter around the class
HttpRequestBase
- Author:
- Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
-
Constructor Summary
ConstructorDescriptionApacheHttpRequest
(org.apache.http.client.HttpClient theClient, org.apache.http.client.methods.HttpRequestBase theApacheRequest) -
Method Summary
Modifier and TypeMethodDescriptionvoid
ca.uhn.fhir.rest.client.api.IHttpResponse
execute()
org.apache.http.client.methods.HttpRequestBase
Get the ApacheRequestgetUri()
void
removeHeaders
(String theHeaderName) void
toString()
Methods inherited from class ca.uhn.fhir.rest.client.api.BaseHttpRequest
getUrlSource, setUrlSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.client.api.IHttpRequest
getUrlSource, setUrlSource
-
Constructor Details
-
ApacheHttpRequest
public ApacheHttpRequest(org.apache.http.client.HttpClient theClient, org.apache.http.client.methods.HttpRequestBase theApacheRequest)
-
-
Method Details
-
addHeader
- Specified by:
addHeader
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
execute
- Specified by:
execute
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
- Throws:
IOException
-
getAllHeaders
- Specified by:
getAllHeaders
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getApacheRequest
Get the ApacheRequest- Returns:
- the ApacheRequest
-
getHttpVerbName
- Specified by:
getHttpVerbName
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
removeHeaders
- Specified by:
removeHeaders
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getRequestBodyFromStream
- Specified by:
getRequestBodyFromStream
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
- Throws:
IOException
-
getUri
- Specified by:
getUri
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
setUri
- Specified by:
setUri
in interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
toString
-