org.mockserver.mockserver
Class MockServer

java.lang.Object
  extended by org.mockserver.mockserver.MockServer

public class MockServer
extends Object

An HTTP server that sends back the content of the received HTTP request in a pretty plaintext form.


Field Summary
static io.netty.util.AttributeKey<LogFilter> LOG_FILTER
           
 
Constructor Summary
MockServer(Integer port)
          Start the instance using the ports provided
 
Method Summary
 Integer getPort()
           
 boolean isRunning()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_FILTER

public static final io.netty.util.AttributeKey<LogFilter> LOG_FILTER
Constructor Detail

MockServer

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

Parameters:
port - the http port to use
Method Detail

stop

public void stop()

isRunning

public boolean isRunning()

getPort

public Integer getPort()


Copyright © 2015. All rights reserved.