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 SocketconnectSocket(int connectTimeout, Socket sock, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context)SocketcreateLayeredSocket(Socket socket, String target, int port, org.apache.http.protocol.HttpContext context)SocketcreateSocket(org.apache.http.protocol.HttpContext context)
-
-
-
Method Detail
-
createSocket
public Socket createSocket(org.apache.http.protocol.HttpContext context) throws IOException
- Specified by:
createSocketin 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:
connectSocketin 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:
createLayeredSocketin interfaceorg.apache.http.conn.socket.LayeredConnectionSocketFactory- Throws:
IOException
-
-