public class CommonsSocketFactory extends Object implements org.apache.commons.httpclient.protocol.ProtocolSocketFactory
| Constructor and Description |
|---|
CommonsSocketFactory() |
| 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 Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException, UnknownHostException
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactoryIOExceptionUnknownHostExceptionpublic 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.ProtocolSocketFactoryIOExceptionUnknownHostExceptionorg.apache.commons.httpclient.ConnectTimeoutExceptionCopyright © 2014. All Rights Reserved.