Package org.ocpsoft.rewrite.test
Class HttpAction
java.lang.Object
org.ocpsoft.rewrite.test.HttpAction
- Author:
- Lincoln Baxter, III
-
Constructor Summary
ConstructorsConstructorDescriptionHttpAction(okhttp3.OkHttpClient client, okhttp3.Request request, okhttp3.Response response, String baseUrl, String contextPath) -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.OkHttpClientReturn the current URL excluding host or context root.Return the current full URL.getHost()Return the URL up to and including the host and port.okhttp3.Requestokhttp3.Responseintstatic StringtoString(InputStream stream) Return aStringcontaining the contents of the givenInputStream
-
Constructor Details
-
HttpAction
-
-
Method Details
-
getCurrentURL
Return the current full URL. -
getCurrentContextRelativeURL
Return the current URL excluding host or context root. -
getHost
Return the URL up to and including the host and port. -
getClient
public okhttp3.OkHttpClient getClient() -
getRequest
public okhttp3.Request getRequest() -
getResponse
public okhttp3.Response getResponse() -
getContextPath
-
getResponseHeaderValues
-
getStatusCode
public int getStatusCode() -
getResponseContent
-
toString
Return aStringcontaining the contents of the givenInputStream
-