public class ProxyBuilder extends Object
| Constructor and Description |
|---|
ProxyBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Proxy |
build()
Build an instance of the HttpProxy
|
ProxyBuilder |
withDirect(String remoteHost,
Integer remotePort)
Configure a direct proxy that forwards all requests from the localPort to the remoteHost and remotePort
|
ProxyBuilder |
withLocalPort(Integer localPort)
Configure the local port for the proxy, this will be the same port for all traffic including HTTP, SOCKS, CONNECT and SSL
|
ProxyBuilder |
withStopEventQueue(StopEventQueue stopEventQueue) |
public ProxyBuilder withStopEventQueue(StopEventQueue stopEventQueue)
public ProxyBuilder withLocalPort(Integer localPort)
localPort - the local port to usepublic ProxyBuilder withDirect(String remoteHost, Integer remotePort)
remoteHost - the destination hostname for direct forwardingremotePort - the destination port for direct forwardingpublic Proxy build()
Copyright © 2018. All rights reserved.