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 -
Method Summary
Modifier and TypeMethodDescriptionconnectSocket(int connectTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) jnr.unixsocket.UnixSocketcreateSocket(org.apache.http.protocol.HttpContext context) static URIsanitizeUri(URI uri)
-
Constructor Details
-
UnixConnectionSocketFactory
-
-
Method Details
-
sanitizeUri
-
createSocket
public jnr.unixsocket.UnixSocket 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 socket, 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
-