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
ConstructorsConstructorDescriptionApacheHttpRequest(org.apache.http.client.HttpClient theClient, org.apache.http.client.methods.HttpRequestBase theApacheRequest) -
Method Summary
Modifier and TypeMethodDescriptionvoidca.uhn.fhir.rest.client.api.IHttpResponseexecute()org.apache.http.client.methods.HttpRequestBaseGet the ApacheRequestgetUri()voidremoveHeaders(String theHeaderName)voidtoString()Methods inherited from class ca.uhn.fhir.rest.client.api.BaseHttpRequest
getUrlSource, setUrlSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
addHeaderin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
execute
- Specified by:
executein interfaceca.uhn.fhir.rest.client.api.IHttpRequest- Throws:
IOException
-
getAllHeaders
- Specified by:
getAllHeadersin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getApacheRequest
Get the ApacheRequest- Returns:
- the ApacheRequest
-
getHttpVerbName
- Specified by:
getHttpVerbNamein interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
removeHeaders
- Specified by:
removeHeadersin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getRequestBodyFromStream
- Specified by:
getRequestBodyFromStreamin interfaceca.uhn.fhir.rest.client.api.IHttpRequest- Throws:
IOException
-
getUri
- Specified by:
getUriin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
setUri
- Specified by:
setUriin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
toString
-