public class ApacheHttpRequest extends Object implements 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) |
IHttpResponse |
execute() |
Map<String,List<String>> |
getAllHeaders() |
org.apache.http.client.methods.HttpRequestBase |
getApacheRequest()
Get the ApacheRequest
|
String |
getHttpVerbName() |
String |
getRequestBodyFromStream() |
String |
getUri() |
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 IHttpRequestpublic IHttpResponse execute() throws IOException
execute in interface IHttpRequestIOExceptionpublic Map<String,List<String>> getAllHeaders()
getAllHeaders in interface IHttpRequestpublic org.apache.http.client.methods.HttpRequestBase getApacheRequest()
public String getHttpVerbName()
getHttpVerbName in interface IHttpRequestpublic String getRequestBodyFromStream() throws IOException
getRequestBodyFromStream in interface IHttpRequestIOExceptionpublic String getUri()
getUri in interface IHttpRequestCopyright © 2014–2018 University Health Network. All rights reserved.