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.SchemeSocketFactoryparams - HttpParamsIOException - when the socket creation failsSchemeSocketFactory.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.SchemeSocketFactorysock - SocketremoteAddress - InetSocketAddresslocalAddress - InetSocketAddressparams - HttpParamsIOException - when the socket creation failsUnknownHostException - when the remote or local addresses can't be resolvedorg.apache.http.conn.ConnectTimeoutException - when the connection times outSchemeSocketFactory.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.SchemeSocketFactorysock - SocketIllegalArgumentException - when the socket is not validSchemeSocketFactory.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.SchemeLayeredSocketFactorysocket - Sockettarget - Stringport - int port of socketparams - HttpParamsIOExceptionUnknownHostExceptionCopyright © 1998-2017 Apache Software Foundation. All Rights Reserved.