|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockserver.proxy.ProxyBuilder
public class ProxyBuilder
This class should be used to configure the HttpProxy, using this class is the simplest way to create an HttpProxy instance
| Constructor Summary | |
|---|---|
ProxyBuilder()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyBuilder()
| Method Detail |
|---|
public ProxyBuilder withStopEventQueue(StopEventQueue stopEventQueue)
public ProxyBuilder withLocalPort(Integer localPort)
localPort - the local port to use
public ProxyBuilder withDirect(String remoteHost,
Integer remotePort)
remoteHost - the destination hostname for direct forwardingremotePort - the destination port for direct forwardingpublic Proxy build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||