Package org.dogtagpki.client
Class NonBlockingSocketFactory
java.lang.Object
org.dogtagpki.client.NonBlockingSocketFactory
- All Implemented Interfaces:
org.apache.http.conn.scheme.SchemeLayeredSocketFactory,org.apache.http.conn.scheme.SchemeSocketFactory
public class NonBlockingSocketFactory
extends Object
implements org.apache.http.conn.scheme.SchemeLayeredSocketFactory
This class provides non-blocking socket factory for PKIConnection.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectSocket(Socket socket, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.params.HttpParams params) createLayeredSocket(Socket socket, String target, int port, org.apache.http.params.HttpParams params) createSocket(org.apache.http.params.HttpParams params) boolean
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
NonBlockingSocketFactory
-
-
Method Details
-
createSocket
- Specified by:
createSocketin interfaceorg.apache.http.conn.scheme.SchemeSocketFactory- Throws:
IOException
-
connectSocket
public Socket connectSocket(Socket socket, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.params.HttpParams params) throws IOException, UnknownHostException - Specified by:
connectSocketin interfaceorg.apache.http.conn.scheme.SchemeSocketFactory- Throws:
IOExceptionUnknownHostException
-
isSecure
- Specified by:
isSecurein interfaceorg.apache.http.conn.scheme.SchemeSocketFactory
-
createLayeredSocket
public Socket createLayeredSocket(Socket socket, String target, int port, org.apache.http.params.HttpParams params) throws IOException, UnknownHostException - Specified by:
createLayeredSocketin interfaceorg.apache.http.conn.scheme.SchemeLayeredSocketFactory- Throws:
IOExceptionUnknownHostException
-