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
- HttpParams
IOException
- 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.SchemeSocketFactory
sock
- Socket
remoteAddress
- InetSocketAddress
localAddress
- InetSocketAddress
params
- HttpParams
IOException
- 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.SchemeSocketFactory
sock
- Socket
IllegalArgumentException
- 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.SchemeLayeredSocketFactory
socket
- Socket
target
- String
port
- int port of socketparams
- HttpParams
IOException
UnknownHostException
Copyright © 1998-2017 Apache Software Foundation. All Rights Reserved.