org.apache.commons.httpclient.protocol
Interface SecureProtocolSocketFactory
- ProtocolSocketFactory
- SSLProtocolSocketFactory
public interface SecureProtocolSocketFactory
A ProtocolSocketFactory that is secure.
Socket | createSocket(Socket socket, String host, int port, boolean autoClose) - Returns a socket connected to the given host that is layered over an
existing socket.
|
createSocket
public Socket createSocket(Socket socket,
String host,
int port,
boolean autoClose)
throws IOException,
UnknownHostException
Returns a socket connected to the given host that is layered over an
existing socket. Used primarily for creating secure sockets through
proxies.
socket
- the existing sockethost
- the host name/IPport
- the port on the hostautoClose
- a flag for closing the underling socket when the created
socket is closed
Copyright (c) 1999-2005 - Apache Software Foundation