Package org.dogtagpki.client
Class DefaultSocketFactory
java.lang.Object
org.dogtagpki.client.DefaultSocketFactory
- All Implemented Interfaces:
org.apache.http.conn.scheme.SchemeLayeredSocketFactory,org.apache.http.conn.scheme.SchemeSocketFactory
public class DefaultSocketFactory
extends Object
implements org.apache.http.conn.scheme.SchemeLayeredSocketFactory
This class provides blocking socket factory for PKIConnection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectSocket(Socket sock, 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
-
Constructor Details
-
DefaultSocketFactory
-
-
Method Details
-
createSocket
- Specified by:
createSocketin interfaceorg.apache.http.conn.scheme.SchemeSocketFactory- Throws:
IOException
-
connectSocket
public Socket connectSocket(Socket sock, 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
-