Class JSSSocketFactory
java.lang.Object
org.dogtagpki.client.JSSSocketFactory
- All Implemented Interfaces:
org.apache.http.conn.socket.ConnectionSocketFactory, org.apache.http.conn.socket.LayeredConnectionSocketFactory
public class JSSSocketFactory
extends Object
implements org.apache.http.conn.socket.LayeredConnectionSocketFactory
This class provides a ocket factory for PKIConnection based on JSSSocket.
JSSSocket support both communication models: sync and async. The model is
defined in the initial socket and if not specified it is sync.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectSocket(int connTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) createLayeredSocket(Socket socket, String remoteHost, int port, org.apache.http.protocol.HttpContext context) createSocket(org.apache.http.protocol.HttpContext arg0)
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
JSSSocketFactory
-
-
Method Details
-
createSocket
- Specified by:
createSocketin interfaceorg.apache.http.conn.socket.ConnectionSocketFactory- Throws:
IOException
-
createLayeredSocket
public Socket createLayeredSocket(Socket socket, String remoteHost, int port, org.apache.http.protocol.HttpContext context) throws IOException, UnknownHostException - Specified by:
createLayeredSocketin interfaceorg.apache.http.conn.socket.LayeredConnectionSocketFactory- Throws:
IOExceptionUnknownHostException
-
connectSocket
public Socket connectSocket(int connTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) throws IOException, UnknownHostException - Specified by:
connectSocketin interfaceorg.apache.http.conn.socket.ConnectionSocketFactory- Throws:
IOExceptionUnknownHostException
-