public class ApacheHttpRequest extends Object implements ca.uhn.fhir.rest.client.api.IHttpRequest
HttpRequestBase| Constructor and Description |
|---|
ApacheHttpRequest(org.apache.http.client.HttpClient theClient,
org.apache.http.client.methods.HttpRequestBase theApacheRequest) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String theName,
String theValue) |
ca.uhn.fhir.rest.client.api.IHttpResponse |
execute() |
Map<String,List<String>> |
getAllHeaders() |
org.apache.http.client.methods.HttpRequestBase |
getApacheRequest()
Get the ApacheRequest
|
String |
getHttpVerbName() |
String |
getRequestBodyFromStream() |
String |
getUri() |
void |
removeHeaders(String theHeaderName) |
String |
toString() |
public ApacheHttpRequest(org.apache.http.client.HttpClient theClient, org.apache.http.client.methods.HttpRequestBase theApacheRequest)
public void addHeader(String theName, String theValue)
addHeader in interface ca.uhn.fhir.rest.client.api.IHttpRequestpublic ca.uhn.fhir.rest.client.api.IHttpResponse execute() throws IOException
execute in interface ca.uhn.fhir.rest.client.api.IHttpRequestIOExceptionpublic Map<String,List<String>> getAllHeaders()
getAllHeaders in interface ca.uhn.fhir.rest.client.api.IHttpRequestpublic org.apache.http.client.methods.HttpRequestBase getApacheRequest()
public String getHttpVerbName()
getHttpVerbName in interface ca.uhn.fhir.rest.client.api.IHttpRequestpublic void removeHeaders(String theHeaderName)
removeHeaders in interface ca.uhn.fhir.rest.client.api.IHttpRequestpublic String getRequestBodyFromStream() throws IOException
getRequestBodyFromStream in interface ca.uhn.fhir.rest.client.api.IHttpRequestIOExceptionpublic String getUri()
getUri in interface ca.uhn.fhir.rest.client.api.IHttpRequestCopyright © 2014–2019 University Health Network. All rights reserved.