org.mockserver.proxy.http
Class HttpProxy
java.lang.Object
org.mockserver.proxy.http.HttpProxy
- All Implemented Interfaces:
- Proxy, Stoppable
public class HttpProxy
- extends Object
- implements Proxy
This class should not be constructed directly instead use HttpProxyBuilder to build and configure this class
- Author:
- jamesdbloom
- See Also:
ProxyBuilder
|
Constructor Summary |
HttpProxy(Integer port)
Start the instance using the ports provided |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpProxy
public HttpProxy(Integer port)
- Start the instance using the ports provided
- Parameters:
port - the http port to use
stop
public Future<?> stop()
- Specified by:
stop in interface Stoppable
withStopEventQueue
public HttpProxy withStopEventQueue(StopEventQueue stopEventQueue)
isRunning
public boolean isRunning()
- Specified by:
isRunning in interface Proxy
getPort
public Integer getPort()
proxyStarted
protected void proxyStarted(Integer port)
proxyStopping
protected void proxyStopping()
Copyright © 2017. All rights reserved.