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. |
| public default 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, Object connect request attachment. attachment, 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 Returns a socket connected to the given host that is layered over an existing socket. Used primarily for creating secure sockets through proxies.
| |
| createLayeredSocket | back to summary |
|---|---|
| public default Socket createLayeredSocket(Socket socket, String target, int port, Object attachment, HttpContext context) throws IOException Returns a socket connected to the given host that is layered over an existing socket. Used primarily for creating secure sockets through proxies.
| |