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