ConnectionSocketFactory interface for layered sockets such as SSL/TLS.
| Modifier and Type | Method and Description |
|---|---|
| public Socket | Returns: Socket a new socketthe existing socket socket, String the name of the target host. target, int the port to connect to on the target host. port, HttpContext the actual HTTP context. context)Returns a socket connected to the given host that is layered over an existing socket. |
| createLayeredSocket | back to summary |
|---|---|
| public Socket createLayeredSocket(Socket socket, String target, int port, HttpContext context) 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.
| |