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

pack-priv Class LayeredSocketFactoryAdaptor

extends SocketFactoryAdaptor
implements LayeredSocketFactory
Class Inheritance
All Implemented Interfaces
org.apache.http.conn.scheme.LayeredSocketFactory, org.apache.http.conn.scheme.SocketFactory
Annotations
@Deprecated
Imports
java.io.IOException, java.net.Socket, .UnknownHostException

Deprecated

(4.1) do not use

Field Summary

Modifier and TypeField and Description
private final LayeredSchemeSocketFactory

Constructor Summary

AccessConstructor and Description
pack-priv
LayeredSocketFactoryAdaptor(final LayeredSchemeSocketFactory factory)

Deprecated as a consequence of LayeredSchemeSocketFactory being deprecated.

Method Summary

Modifier and TypeMethod and Description
public Socket
createSocket(final Socket
the existing socket
socket
,
final String
the host name/IP
host
,
final int
the port on the host
port
,
final boolean
a flag for closing the underling socket when the created socket is closed
autoClose
)

Implements org.apache.http.conn.scheme.LayeredSocketFactory.createSocket.

Returns a socket connected to the given host that is layered over an existing socket.
Inherited from org.apache.http.conn.scheme.SocketFactoryAdaptor:
connectSocketcreateSocketequalsgetFactoryhashCodeisSecure

Field Detail

factoryback to summary
private final LayeredSchemeSocketFactory factory

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

Deprecated

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

Constructor Detail

LayeredSocketFactoryAdaptorback to summary
pack-priv LayeredSocketFactoryAdaptor(final LayeredSchemeSocketFactory factory)

Deprecated

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

Method Detail

createSocketback to summary
public Socket createSocket(final Socket socket, final String host, final int port, final boolean autoClose) throws IOException, UnknownHostException

Implements org.apache.http.conn.scheme.LayeredSocketFactory.createSocket.

Doc from org.apache.http.conn.scheme.LayeredSocketFactory.createSocket.

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

host:String

the host name/IP

port:int

the port on the host

autoClose:boolean

a flag for closing the underling socket when the created socket is closed

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