Class HttpURLConnectionInfo

  • Direct Known Subclasses:
    HttpsURLConnectionInfo

    public class HttpURLConnectionInfo
    extends URLConnectionInfo
    This class contains the information about the HTTP Connection that will be making an HTTP request. This class should be used when the getURL().getProtocol() is "http" or "https".
    • Constructor Detail

      • HttpURLConnectionInfo

        public HttpURLConnectionInfo​(URL url,
                                     String method)
        This constructor takes the HttpURLConnection and extracts the httpRequestMethod.
      • HttpURLConnectionInfo

        public HttpURLConnectionInfo​(URI uri,
                                     String method)
        This constructor takes the HttpURLConnection and extracts the httpRequestMethod.
    • Method Detail

      • getHttpRequestMethod

        public String getHttpRequestMethod()
        This method returns the request method on the represented HttpURLConnection.