org.apache.cxf.transport.http
Class HttpURLConnectionFactoryImpl

java.lang.Object
  extended by org.apache.cxf.transport.http.HttpURLConnectionFactoryImpl
All Implemented Interfaces:
HttpURLConnectionFactory

public class HttpURLConnectionFactoryImpl
extends java.lang.Object
implements HttpURLConnectionFactory

This class is a URLConnectionFactory that creates URLConnections for the HTTP protocol.


Field Summary
static java.lang.String HTTP_URL_PROTOCOL_ID
           
 
Constructor Summary
HttpURLConnectionFactoryImpl()
           
 
Method Summary
 java.net.HttpURLConnection createConnection(java.net.Proxy proxy, java.net.URL url)
          This call creates an URLConnection for an HTTP url.
 HttpURLConnectionInfo getConnectionInfo(java.net.HttpURLConnection connection)
          This operation returns the HttpURLConnectionInfo object that represents the HttpURLConnection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_URL_PROTOCOL_ID

public static final java.lang.String HTTP_URL_PROTOCOL_ID
See Also:
Constant Field Values
Constructor Detail

HttpURLConnectionFactoryImpl

public HttpURLConnectionFactoryImpl()
Method Detail

createConnection

public java.net.HttpURLConnection createConnection(java.net.Proxy proxy,
                                                   java.net.URL url)
                                            throws java.io.IOException
This call creates an URLConnection for an HTTP url.

Specified by:
createConnection in interface HttpURLConnectionFactory
Parameters:
proxy - The proxy. May be null if connection is not to be proxied.
url - The target URL
Returns:
An appropriate URLConnection
Throws:
java.io.IOException - if the url protocol is not "http".

getConnectionInfo

public HttpURLConnectionInfo getConnectionInfo(java.net.HttpURLConnection connection)
                                        throws java.io.IOException
This operation returns the HttpURLConnectionInfo object that represents the HttpURLConnection.

Specified by:
getConnectionInfo in interface HttpURLConnectionFactory
Returns:
The HttpURLConnection Info for the given connection.
Throws:
java.io.IOException


Apache CXF