|
rewrite-test-harness 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.test.HttpAction<T>
public class HttpAction<T extends org.apache.http.HttpRequest>
| Constructor Summary | |
|---|---|
HttpAction(org.apache.http.client.HttpClient client,
org.apache.http.protocol.HttpContext context,
T request,
org.apache.http.HttpResponse response,
String baseUrl,
String contextPath)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpAction(org.apache.http.client.HttpClient client,
org.apache.http.protocol.HttpContext context,
T request,
org.apache.http.HttpResponse response,
String baseUrl,
String contextPath)
| Method Detail |
|---|
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 List<String> getResponseHeaderValues(String name)
public int getStatusCode()
public String getResponseContent()
public static String toString(InputStream stream)
String containing the contents of the given InputStream
|
rewrite-test-harness 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||