Top Description Methods
org.apache.http.conn.scheme

public Interface SchemeLayeredSocketFactory

extends SchemeSocketFactory
Known Direct Implementers
org.apache.http.conn.scheme.SchemeLayeredSocketFactoryAdaptor, org.apache.http.conn.scheme.SchemeLayeredSocketFactoryAdaptor2, org.apache.http.conn.ssl.SSLSocketFactory
Annotations
@Deprecated
Imports
java.io.IOException, java.net.Socket, .UnknownHostException, org.apache.http.params.HttpParams

Deprecated

(4.3) use org.apache.http.conn.socket.LayeredConnectionSocketFactory

Extended SchemeSocketFactory interface for layered sockets such as SSL/TLS.
Since
4.2

Method Summary

Modifier and TypeMethod and Description
public Socket

Returns:

Socket a new socket
createLayeredSocket
(Socket
the existing socket
socket
,
String
the name of the target host.
target
,
int
the port to connect to on the target host
port
,
HttpParams
HTTP parameters
params
)

Deprecated as a consequence of HttpParams being deprecated.
Returns a socket connected to the given host that is layered over an existing socket.
Inherited from org.apache.http.conn.scheme.SchemeSocketFactory:
connectSocketcreateSocketisSecure

Method Detail

createLayeredSocketback to summary
public Socket createLayeredSocket(Socket socket, String target, int port, HttpParams params) throws IOException, UnknownHostException

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Returns a socket connected to the given host that is layered over an existing socket. Used primarily for creating secure sockets through proxies.

Parameters
socket:Socket

the existing socket

target:String

the name of the target host.

port:int

the port to connect to on the target host

params:HttpParams

HTTP parameters

Returns:Socket

Socket a new socket

Exceptions
IOException:
if an I/O error occurs while creating the socket
UnknownHostException:
if the IP address of the host cannot be determined