Package one.nio.net
Class HttpProxy
- java.lang.Object
-
- one.nio.net.HttpProxy
-
-
Field Summary
Fields Modifier and Type Field Description static int[]ALL_PORTS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(Socket socket, String host, int port)HttpProxywithAuth(String user, String password)HttpProxywithConnectPorts(int... connectPorts)
-
-
-
Constructor Detail
-
HttpProxy
public HttpProxy(String proxyHost, int proxyPort)
-
-
Method Detail
-
withConnectPorts
public HttpProxy withConnectPorts(int... connectPorts)
-
connect
public void connect(Socket socket, String host, int port) throws IOException
- Specified by:
connectin interfaceProxy- Throws:
IOException
-
-