public class HttpStateHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOG_SEPARATOR |
static String |
PATH_PREFIX |
Constructor and Description |
---|
HttpStateHandler(MockServerLogger mockServerLogger,
Scheduler scheduler) |
Modifier and Type | Method and Description |
---|---|
void |
add(Expectation... expectations) |
void |
clear(HttpRequest request) |
Expectation |
firstMatchingExpectation(HttpRequest request) |
MockServerEventLog |
getMockServerLog() |
MockServerLogger |
getMockServerLogger() |
MockServerMatcher |
getMockServerMatcher() |
Scheduler |
getScheduler() |
String |
getUniqueLoopPreventionHeaderName() |
String |
getUniqueLoopPreventionHeaderValue() |
WebSocketClientRegistry |
getWebSocketClientRegistry() |
boolean |
handle(HttpRequest request,
ResponseWriter responseWriter,
boolean warDeployment) |
void |
log(LogEntry logEntry) |
void |
postProcess(Expectation expectation) |
void |
reset() |
HttpResponse |
retrieve(HttpRequest request) |
void |
stop() |
Future<String> |
verify(Verification verification) |
void |
verify(Verification verification,
Consumer<String> resultConsumer) |
Future<String> |
verify(VerificationSequence verification) |
void |
verify(VerificationSequence verification,
Consumer<String> resultConsumer) |
public static final String LOG_SEPARATOR
public static final String PATH_PREFIX
public HttpStateHandler(MockServerLogger mockServerLogger, Scheduler scheduler)
public MockServerLogger getMockServerLogger()
public void clear(HttpRequest request)
public void reset()
public void 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 MockServerMatcher getMockServerMatcher()
public MockServerEventLog getMockServerLog()
public Scheduler getScheduler()
public String getUniqueLoopPreventionHeaderName()
public String getUniqueLoopPreventionHeaderValue()
public void stop()
Copyright © 2020. All rights reserved.