org.mockserver.proxy.http
Class HttpProxy

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.mockserver.proxy.Proxy
HTTP_CONNECT_SOCKET, HTTP_PROXY, REMOTE_SOCKET, REQUEST_LOG_FILTER, REQUEST_RESPONSE_LOG_FILTER
 
Constructor Summary
HttpProxy(Integer port)
          Start the instance using the ports provided
 
Method Summary
 Integer getPort()
           
 boolean isRunning()
           
protected  void proxyStarted(Integer port)
           
protected  void proxyStopping()
           
 Future<?> stop()
           
 HttpProxy withStopEventQueue(StopEventQueue stopEventQueue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpProxy

public HttpProxy(Integer port)
Start the instance using the ports provided

Parameters:
port - the http port to use
Method Detail

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.