Package com.wavefront.agent
Class SSLConnectionSocketFactoryImpl
- java.lang.Object
-
- com.wavefront.agent.SSLConnectionSocketFactoryImpl
-
- All Implemented Interfaces:
org.apache.http.conn.socket.ConnectionSocketFactory
,org.apache.http.conn.socket.LayeredConnectionSocketFactory
public class SSLConnectionSocketFactoryImpl extends Object implements org.apache.http.conn.socket.LayeredConnectionSocketFactory
Delegated SSLConnectionSocketFactory that sets SoTimeout explicitly (for Apache HttpClient).- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description SSLConnectionSocketFactoryImpl(org.apache.http.conn.ssl.SSLConnectionSocketFactory delegate, int soTimeoutMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Socket
connectSocket(int connectTimeout, Socket sock, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context)
Socket
createLayeredSocket(Socket socket, String target, int port, org.apache.http.protocol.HttpContext context)
Socket
createSocket(org.apache.http.protocol.HttpContext context)
-
-
-
Method Detail
-
createSocket
public Socket createSocket(org.apache.http.protocol.HttpContext context) throws IOException
- 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
-
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
-
-