Top Fields Constructors Methods
org.apache.http.conn.scheme

pack-priv Class SchemeLayeredSocketFactoryAdaptor

extends SchemeSocketFactoryAdaptor
implements SchemeLayeredSocketFactory
Class Inheritance
All Implemented Interfaces
org.apache.http.conn.scheme.SchemeLayeredSocketFactory, org.apache.http.conn.scheme.SchemeSocketFactory
Annotations
@Deprecated
Imports
java.io.IOException, java.net.Socket, .UnknownHostException, org.apache.http.params.HttpParams

Deprecated

(4.2) do not use

Field Summary

Modifier and TypeField and Description
private final LayeredSocketFactory

Constructor Summary

AccessConstructor and Description
pack-priv
SchemeLayeredSocketFactoryAdaptor(final LayeredSocketFactory factory)

Deprecated as a consequence of LayeredSocketFactory being deprecated.

Method Summary

Modifier and TypeMethod and Description
public Socket
createLayeredSocket(final Socket
the existing socket
socket
,
final String
the name of the target host.
target
,
final int
the port to connect to on the target host
port
,
final HttpParams
HTTP parameters
params
)

Implements org.apache.http.conn.scheme.SchemeLayeredSocketFactory.createLayeredSocket.

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.SchemeSocketFactoryAdaptor:
connectSocketcreateSocketequalsgetFactoryhashCodeisSecure

Field Detail

factoryback to summary
private final LayeredSocketFactory factory

Hides org.apache.http.conn.scheme.SchemeSocketFactoryAdaptor.factory.

Deprecated

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

Constructor Detail

SchemeLayeredSocketFactoryAdaptorback to summary
pack-priv SchemeLayeredSocketFactoryAdaptor(final LayeredSocketFactory factory)

Deprecated

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

Method Detail

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

Implements org.apache.http.conn.scheme.SchemeLayeredSocketFactory.createLayeredSocket.

Doc from org.apache.http.conn.scheme.SchemeLayeredSocketFactory.createLayeredSocket.

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

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