Package org.mandas.docker.client
Class UnixConnectionSocketFactory
- java.lang.Object
-
- org.mandas.docker.client.UnixConnectionSocketFactory
-
- All Implemented Interfaces:
org.apache.http.conn.socket.ConnectionSocketFactory
@Contract(threading=IMMUTABLE_CONDITIONAL) public class UnixConnectionSocketFactory extends Object implements org.apache.http.conn.socket.ConnectionSocketFactory
Provides a ConnectionSocketFactory for connecting Apache HTTP clients to Unix sockets.
-
-
Constructor Summary
Constructors Constructor Description UnixConnectionSocketFactory(URI socketUri)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Socket
connectSocket(int connectTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context)
jnr.unixsocket.UnixSocket
createSocket(org.apache.http.protocol.HttpContext context)
static URI
sanitizeUri(URI uri)
-
-
-
Constructor Detail
-
UnixConnectionSocketFactory
public UnixConnectionSocketFactory(URI socketUri)
-
-
Method Detail
-
createSocket
public jnr.unixsocket.UnixSocket 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 socket, 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
-
-