Class HttpURLConnectionInfo

java.lang.Object
org.apache.cxf.transport.http.URLConnectionInfo
org.apache.cxf.transport.http.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 Details

    • 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 Details

    • getHttpRequestMethod

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