Package org.mapfish.print.http
Class MfSSLSocketFactory
java.lang.Object
org.mapfish.print.http.MfSSLSocketFactory
- All Implemented Interfaces:
org.apache.http.conn.socket.ConnectionSocketFactory
,org.apache.http.conn.socket.LayeredConnectionSocketFactory
public final class MfSSLSocketFactory
extends Object
implements org.apache.http.conn.socket.LayeredConnectionSocketFactory
A ssl socket factory that obtains the keystore from the current configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectSocket
(int connectTimeout, Socket sock, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) createLayeredSocket
(Socket socket, String target, int port, org.apache.http.protocol.HttpContext context) createSocket
(org.apache.http.protocol.HttpContext context)
-
Constructor Details
-
MfSSLSocketFactory
public MfSSLSocketFactory()
-
-
Method Details
-
createLayeredSocket
public Socket createLayeredSocket(Socket socket, String target, int port, org.apache.http.protocol.HttpContext context) throws IOException - Specified by:
createLayeredSocket
in interfaceorg.apache.http.conn.socket.LayeredConnectionSocketFactory
- Throws:
IOException
-
createSocket
- Specified by:
createSocket
in interfaceorg.apache.http.conn.socket.ConnectionSocketFactory
- Throws:
IOException
-
connectSocket
public Socket connectSocket(int connectTimeout, Socket sock, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) throws IOException - Specified by:
connectSocket
in interfaceorg.apache.http.conn.socket.ConnectionSocketFactory
- Throws:
IOException
-