public class HttpAction<T extends org.apache.http.HttpRequest> extends Object
| Constructor and Description |
|---|
HttpAction(org.apache.http.client.HttpClient client,
org.apache.http.protocol.HttpContext context,
T request,
org.apache.http.HttpResponse response,
String baseUrl,
String contextPath) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.HttpClient |
getClient() |
org.apache.http.protocol.HttpContext |
getContext() |
String |
getContextPath() |
String |
getCurrentContextRelativeURL()
Return the current URL excluding host or context root.
|
String |
getCurrentURL()
Return the current full URL.
|
String |
getHost()
Return the URL up to and including the host and port.
|
T |
getRequest() |
org.apache.http.HttpResponse |
getResponse() |
String |
getResponseContent() |
List<String> |
getResponseHeaderValues(String name) |
int |
getStatusCode() |
static String |
toString(InputStream stream)
Return a
String containing the contents of the given InputStream |
public String getCurrentURL()
public String getCurrentContextRelativeURL()
public String getHost()
public org.apache.http.client.HttpClient getClient()
public T getRequest()
public org.apache.http.protocol.HttpContext getContext()
public org.apache.http.HttpResponse getResponse()
public String getContextPath()
public int getStatusCode()
public String getResponseContent()
public static String toString(InputStream stream)
String containing the contents of the given InputStreamCopyright © 2016 OCPsoft. All rights reserved.