Class HttpAction

java.lang.Object
org.ocpsoft.rewrite.test.HttpAction

public class HttpAction extends Object
Author:
Lincoln Baxter, III
  • Constructor Details

    • HttpAction

      public HttpAction(okhttp3.OkHttpClient client, okhttp3.Request request, okhttp3.Response response, String baseUrl, String contextPath)
  • Method Details

    • getCurrentURL

      public String getCurrentURL()
      Return the current full URL.
    • getCurrentContextRelativeURL

      public String getCurrentContextRelativeURL()
      Return the current URL excluding host or context root.
    • getHost

      public String 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

      public String getContextPath()
    • getResponseHeaderValues

      public List<String> getResponseHeaderValues(String name)
    • getStatusCode

      public int getStatusCode()
    • getResponseContent

      public String getResponseContent()
    • toString

      public static String toString(InputStream stream)
      Return a String containing the contents of the given InputStream