com.sun.jini.jeri.internal.http
Interface HttpClientSocketFactory

All Known Implementing Classes:
HttpEndpoint.SocketFactoryAdapter, HttpsEndpoint.HttpsConnection

public interface HttpClientSocketFactory

Abstraction for objects which provide/configure sockets used by HttpClientConnection instances.

Author:
Sun Microsystems, Inc.

Method Summary
 Socket createSocket(String host, int port)
          Creates client socket connected to the given host and port.
 Socket createTunnelSocket(Socket s)
          Creates layered socket on top of given base socket, for use when tunneling HTTP messages through a proxy.
 

Method Detail

createSocket

Socket createSocket(String host,
                    int port)
                    throws IOException
Creates client socket connected to the given host and port.

Throws:
IOException

createTunnelSocket

Socket createTunnelSocket(Socket s)
                          throws IOException
Creates layered socket on top of given base socket, for use when tunneling HTTP messages through a proxy.

Throws:
IOException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.