Deprecated
(4.1) use SchemeSocketFactory
SocketFactory for layered sockets (SSL/TLS).
See there for things to consider when implementing a socket factory.
| Modifier and Type | Method and Description |
|---|---|
| public Socket | Returns: Socket a new socketthe existing socket socket, String the host name/IP host, int the port on the host port, boolean a flag for closing the underling socket when the created
socket is closed autoClose)Returns a socket connected to the given host that is layered over an existing socket. |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException Returns a socket connected to the given host that is layered over an existing socket. Used primarily for creating secure sockets through proxies.
| |