|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionSocketFactory
A factory for creating and connecting connection sockets.
Method Summary | |
---|---|
Socket |
connectSocket(int connectTimeout,
Socket sock,
org.apache.http.HttpHost host,
InetSocketAddress remoteAddress,
InetSocketAddress localAddress,
org.apache.http.protocol.HttpContext context)
Connects the socket to the target host with the given resolved remote address. |
Socket |
createSocket(org.apache.http.protocol.HttpContext context)
Creates new, unconnected socket. |
Method Detail |
---|
Socket createSocket(org.apache.http.protocol.HttpContext context) throws IOException
connectSocket
method.
IOException
- if an I/O error occurs while creating the socketSocket connectSocket(int connectTimeout, Socket sock, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) throws IOException
connectTimeout
- connect timeout.sock
- the socket to connect, as obtained from createSocket(HttpContext)
.
null
indicates that a new socket should be created and connected.host
- target host as specified by the caller (end user).remoteAddress
- the resolved remote address to connect to.localAddress
- the local address to bind the socket to, or null
for any.context
- the actual HTTP context.
sock
argument if this factory supports
a layered protocol.
IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |