Apache CXF API

org.apache.cxf.transport.http
Class HttpURLConnectionInfo

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


Field Summary
 
Fields inherited from class org.apache.cxf.transport.http.URLConnectionInfo
theURI
 
Constructor Summary
HttpURLConnectionInfo(URI uri, String method)
          This constructor takes the HttpURLConnection and extracts the httpRequestMethod.
HttpURLConnectionInfo(URL url, String method)
          This constructor takes the HttpURLConnection and extracts the httpRequestMethod.
 
Method Summary
 String getHttpRequestMethod()
          This method returns the request method on the represented HttpURLConnection.
 
Methods inherited from class org.apache.cxf.transport.http.URLConnectionInfo
getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Apache CXF API

Apache CXF