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 LayeredSchemeSocketFactoryfactoryDeprecated.
-
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.SocketcreateSocket(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.UnknownHostExceptionDeprecated.Description copied from interface:LayeredSocketFactoryReturns a socket connected to the given host that is layered over an existing socket. Used primarily for creating secure sockets through proxies.- Specified by:
createSocketin 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
-
-