public final class LazySchemeSocketFactory extends Object implements org.apache.http.conn.scheme.SchemeLayeredSocketFactory
Constructor and Description |
---|
LazySchemeSocketFactory() |
Modifier and Type | Method and Description |
---|---|
Socket |
connectSocket(Socket sock,
InetSocketAddress remoteAddress,
InetSocketAddress localAddress,
org.apache.http.params.HttpParams params) |
Socket |
createLayeredSocket(Socket socket,
String target,
int port,
org.apache.http.params.HttpParams params) |
Socket |
createSocket(org.apache.http.params.HttpParams params) |
boolean |
isSecure(Socket sock) |
public Socket createSocket(org.apache.http.params.HttpParams params) throws IOException
createSocket
in interface org.apache.http.conn.scheme.SchemeSocketFactory
params
- IOException
SchemeSocketFactory.createSocket(org.apache.http.params.HttpParams)
public Socket connectSocket(Socket sock, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.params.HttpParams params) throws IOException, UnknownHostException, org.apache.http.conn.ConnectTimeoutException
connectSocket
in interface org.apache.http.conn.scheme.SchemeSocketFactory
sock
- remoteAddress
- localAddress
- params
- IOException
UnknownHostException
org.apache.http.conn.ConnectTimeoutException
SchemeSocketFactory.connectSocket(java.net.Socket, java.net.InetSocketAddress, java.net.InetSocketAddress, org.apache.http.params.HttpParams)
public boolean isSecure(Socket sock) throws IllegalArgumentException
isSecure
in interface org.apache.http.conn.scheme.SchemeSocketFactory
sock
- IllegalArgumentException
SchemeSocketFactory.isSecure(java.net.Socket)
public Socket createLayeredSocket(Socket socket, String target, int port, org.apache.http.params.HttpParams params) throws IOException, UnknownHostException
createLayeredSocket
in interface org.apache.http.conn.scheme.SchemeLayeredSocketFactory
socket
- Socket
target
- port
- params
- HttpParams
IOException
UnknownHostException
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.