Groovy Documentation

com.confluex.mock.http
[Groovy] Class MockHttpServer

java.lang.Object
  com.confluex.mock.http.MockHttpServer

class MockHttpServer
extends java.lang.Object

Property Summary
MockHttpRequestHandler handler

org.mortbay.jetty.Server jettyServer

int port

 
Constructor Summary
MockHttpServer()

MockHttpServer(int port)

 
Method Summary
java.util.List getRequests()

protected org.mortbay.jetty.Server initJettyServer(int port)

HttpResponderBuilder respondTo(HttpRequestMatcher matcher)

void stop()

boolean waitFor(HttpRequestMatcher matcher, java.lang.Long timeoutMs)

boolean waitFor(HttpRequestMatcher matcher, int expected, java.lang.Long timeoutMs)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

handler

MockHttpRequestHandler handler


jettyServer

org.mortbay.jetty.Server jettyServer


port

int port


 
Constructor Detail

MockHttpServer

MockHttpServer()


MockHttpServer

MockHttpServer(int port)


 
Method Detail

getRequests

java.util.List getRequests()


initJettyServer

protected org.mortbay.jetty.Server initJettyServer(int port)


respondTo

HttpResponderBuilder respondTo(HttpRequestMatcher matcher)


stop

void stop()


waitFor

boolean waitFor(HttpRequestMatcher matcher, java.lang.Long timeoutMs)


waitFor

boolean waitFor(HttpRequestMatcher matcher, int expected, java.lang.Long timeoutMs)


 

Groovy Documentation