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, Integer securePort)
          Start the instance using the ports provided
 
Method Summary
 Integer getPort()
           
 Integer getSecurePort()
           
 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,
                  Integer securePort)
Start the instance using the ports provided

Parameters:
port - the http port to use
securePort - the secure https port to use
Method Detail

stop

public void stop()

isRunning

public boolean isRunning()

getPort

public Integer getPort()

getSecurePort

public Integer getSecurePort()


Copyright © 2014. All rights reserved.