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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket
(Socket socket, 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 Details
-
factory
Deprecated.
-
-
Constructor Details
-
LayeredSocketFactoryAdaptor
LayeredSocketFactoryAdaptor(LayeredSchemeSocketFactory factory) Deprecated.
-
-
Method Details
-
createSocket
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, 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:
IOException
- if an I/O error occurs while creating the socketUnknownHostException
- if the IP address of the host cannot be determined
-