public class SimulatedSocketFactory extends Object implements org.apache.http.conn.socket.ConnectionSocketFactory
Constructor and Description |
---|
SimulatedSocketFactory(StreamManager streamManager) |
Modifier and Type | Method and Description |
---|---|
static <T extends Socket> |
configure(T sock) |
Socket |
connectSocket(int connectTimeout,
Socket sock,
org.apache.http.HttpHost host,
InetSocketAddress remoteAddress,
InetSocketAddress localAddress,
org.apache.http.protocol.HttpContext context) |
Socket |
connectSocket(Socket sock,
InetSocketAddress remoteAddress,
InetSocketAddress localAddress,
org.apache.http.params.HttpParams params) |
Socket |
createSocket(org.apache.http.protocol.HttpContext context) |
public SimulatedSocketFactory(StreamManager streamManager)
public static <T extends Socket> void configure(T sock)
public Socket createSocket(org.apache.http.protocol.HttpContext context) throws IOException
createSocket
in interface org.apache.http.conn.socket.ConnectionSocketFactory
IOException
public Socket connectSocket(int connectTimeout, Socket sock, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) throws IOException
connectSocket
in interface org.apache.http.conn.socket.ConnectionSocketFactory
IOException
public Socket connectSocket(Socket sock, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.params.HttpParams params) throws IOException
IOException
Copyright © 2016. All Rights Reserved.