public class SocketFactoryProtocolSocketFactory extends Object implements org.apache.commons.httpclient.protocol.ProtocolSocketFactory
Constructor and Description |
---|
SocketFactoryProtocolSocketFactory(SocketFactory factory) |
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort,
org.apache.commons.httpclient.params.HttpConnectionParams params) |
public SocketFactoryProtocolSocketFactory(SocketFactory factory)
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket
in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
IOException
UnknownHostException
public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException, UnknownHostException
createSocket
in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
IOException
UnknownHostException
public Socket createSocket(String host, int port, InetAddress localAddress, int localPort, org.apache.commons.httpclient.params.HttpConnectionParams params) throws IOException, UnknownHostException, org.apache.commons.httpclient.ConnectTimeoutException
createSocket
in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
IOException
UnknownHostException
org.apache.commons.httpclient.ConnectTimeoutException