public class DirectProxy extends Proxy<DirectProxy>
ProxyBuilderHTTP_CONNECT_SOCKET, HTTP_PROXY, REMOTE_SOCKET, STATE_HANDLERbossGroup, channelOpenedFutures, logger, serverBootstrap, stopEventQueue, workerGroup| Constructor and Description |
|---|
DirectProxy(String remoteHost,
Integer remotePort,
Integer... localPorts)
Start the instance using the ports provided
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLocalPort() |
InetSocketAddress |
getRemoteAddress() |
bindToPorts, getPort, getPorts, isRunning, started, stop, stopped, withStopEventQueuepublic DirectProxy(String remoteHost, Integer remotePort, Integer... localPorts)
localPorts - the local port(s) to useremoteHost - the hostname of the remote server to connect toremotePort - the port of the remote server to connect topublic int getLocalPort()
public InetSocketAddress getRemoteAddress()
Copyright © 2018. All rights reserved.