|
rewrite-test-harness 1.0.0.Final | |||||||||
| 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,
java.lang.String baseUrl,
java.lang.String contextPath)
|
|
| Method Summary | |
|---|---|
org.apache.http.client.HttpClient |
getClient()
|
org.apache.http.protocol.HttpContext |
getContext()
|
java.lang.String |
getContextPath()
|
java.lang.String |
getCurrentContextRelativeURL()
Return the current URL excluding host or context root. |
java.lang.String |
getCurrentURL()
Return the current full URL. |
java.lang.String |
getHost()
Return the URL up to and including the host and port. |
T |
getRequest()
|
org.apache.http.HttpResponse |
getResponse()
|
java.lang.String |
getResponseContent()
|
java.util.List<java.lang.String> |
getResponseHeaderValues(java.lang.String name)
|
int |
getStatusCode()
|
static java.lang.String |
toString(java.io.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,
java.lang.String baseUrl,
java.lang.String contextPath)
| Method Detail |
|---|
public java.lang.String getCurrentURL()
public java.lang.String getCurrentContextRelativeURL()
public java.lang.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 java.lang.String getContextPath()
public java.util.List<java.lang.String> getResponseHeaderValues(java.lang.String name)
public int getStatusCode()
public java.lang.String getResponseContent()
public static java.lang.String toString(java.io.InputStream stream)
String containing the contents of the given InputStream
|
rewrite-test-harness 1.0.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||