Package org.apache.http.conn.scheme
Class LayeredSocketFactoryAdaptor
- java.lang.Object
-
- org.apache.http.conn.scheme.SocketFactoryAdaptor
-
- org.apache.http.conn.scheme.LayeredSocketFactoryAdaptor
-
- All Implemented Interfaces:
LayeredSocketFactory
,SocketFactory
@Deprecated class LayeredSocketFactoryAdaptor extends SocketFactoryAdaptor implements LayeredSocketFactory
Deprecated.(4.1) do not use
-
-
Field Summary
Fields Modifier and Type Field Description private LayeredSchemeSocketFactory
factory
Deprecated.
-
Constructor Summary
Constructors Constructor Description LayeredSocketFactoryAdaptor(LayeredSchemeSocketFactory factory)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.net.Socket
createSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose)
Deprecated.Returns a socket connected to the given host that is layered over an existing socket.-
Methods inherited from class org.apache.http.conn.scheme.SocketFactoryAdaptor
connectSocket, createSocket, equals, getFactory, hashCode, isSecure
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.http.conn.scheme.SocketFactory
connectSocket, createSocket, isSecure
-
-
-
-
Field Detail
-
factory
private final LayeredSchemeSocketFactory factory
Deprecated.
-
-
Constructor Detail
-
LayeredSocketFactoryAdaptor
LayeredSocketFactoryAdaptor(LayeredSchemeSocketFactory factory)
Deprecated.
-
-
Method Detail
-
createSocket
public java.net.Socket createSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose) throws java.io.IOException, java.net.UnknownHostException
Deprecated.Description copied from interface:LayeredSocketFactory
Returns a socket connected to the given host that is layered over an existing socket. Used primarily for creating secure sockets through proxies.- Specified by:
createSocket
in interfaceLayeredSocketFactory
- Parameters:
socket
- the existing sockethost
- the host name/IPport
- the port on the hostautoClose
- a flag for closing the underling socket when the created socket is closed- Returns:
- Socket a new socket
- Throws:
java.io.IOException
- if an I/O error occurs while creating the socketjava.net.UnknownHostException
- if the IP address of the host cannot be determined
-
-