public class HttpState extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOG_SEPARATOR |
static String |
PATH_PREFIX |
Constructor and Description |
---|
HttpState(MockServerLogger mockServerLogger,
Scheduler scheduler) |
public static final String LOG_SEPARATOR
public static final String PATH_PREFIX
public HttpState(MockServerLogger mockServerLogger, Scheduler scheduler)
public static void setPort(HttpRequest request)
public static void setPort(Integer port)
public static void setPort(Integer... port)
public static Integer getPort()
public MockServerLogger getMockServerLogger()
public void clear(HttpRequest request)
public void reset()
public List<Expectation> add(OpenAPIExpectation openAPIExpectation)
public List<Expectation> add(Expectation... expectations)
public Expectation firstMatchingExpectation(HttpRequest request)
public void postProcess(Expectation expectation)
public void log(LogEntry logEntry)
public HttpResponse retrieve(HttpRequest request)
public Future<String> verify(Verification verification)
public void verify(Verification verification, Consumer<String> resultConsumer)
public Future<String> verify(VerificationSequence verification)
public void verify(VerificationSequence verification, Consumer<String> resultConsumer)
public boolean handle(HttpRequest request, ResponseWriter responseWriter, boolean warDeployment)
public WebSocketClientRegistry getWebSocketClientRegistry()
public RequestMatchers getRequestMatchers()
public MockServerEventLog getMockServerLog()
public Scheduler getScheduler()
public String getUniqueLoopPreventionHeaderName()
public String getUniqueLoopPreventionHeaderValue()
public void stop()
Copyright © 2020. All rights reserved.