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:
createSocket
in 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:
connectSocket
in interfaceorg.apache.http.conn.scheme.SchemeSocketFactory
- Throws:
IOException
UnknownHostException
-
isSecure
- Specified by:
isSecure
in 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:
createLayeredSocket
in interfaceorg.apache.http.conn.scheme.SchemeLayeredSocketFactory
- Throws:
IOException
UnknownHostException
-