Package org.mockserver.mock
Class HttpStateHandler
- java.lang.Object
-
- org.mockserver.mock.HttpStateHandler
-
public class HttpStateHandler extends Object
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOG_SEPARATOR
static String
PATH_PREFIX
-
Constructor Summary
Constructors Constructor Description HttpStateHandler(MockServerLogger mockServerLogger, Scheduler scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
Future<String>
verify(Verification verification)
void
verify(Verification verification, Consumer<String> resultConsumer)
Future<String>
verify(VerificationSequence verification)
void
verify(VerificationSequence verification, Consumer<String> resultConsumer)
-
-
-
Field Detail
-
LOG_SEPARATOR
public static final String LOG_SEPARATOR
-
PATH_PREFIX
public static final String PATH_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpStateHandler
public HttpStateHandler(MockServerLogger mockServerLogger, Scheduler scheduler)
-
-
Method Detail
-
getMockServerLogger
public MockServerLogger getMockServerLogger()
-
clear
public void clear(HttpRequest request)
-
reset
public void reset()
-
add
public void add(Expectation... expectations)
-
firstMatchingExpectation
public Expectation firstMatchingExpectation(HttpRequest request)
-
postProcess
public void postProcess(Expectation expectation)
-
log
public void log(LogEntry logEntry)
-
retrieve
public HttpResponse retrieve(HttpRequest request)
-
verify
public Future<String> verify(Verification verification)
-
verify
public void verify(Verification verification, Consumer<String> resultConsumer)
-
verify
public Future<String> verify(VerificationSequence verification)
-
verify
public void verify(VerificationSequence verification, Consumer<String> resultConsumer)
-
handle
public boolean handle(HttpRequest request, ResponseWriter responseWriter, boolean warDeployment)
-
getWebSocketClientRegistry
public WebSocketClientRegistry getWebSocketClientRegistry()
-
getMockServerMatcher
public MockServerMatcher getMockServerMatcher()
-
getMockServerLog
public MockServerEventLog getMockServerLog()
-
getScheduler
public Scheduler getScheduler()
-
getUniqueLoopPreventionHeaderName
public String getUniqueLoopPreventionHeaderName()
-
getUniqueLoopPreventionHeaderValue
public String getUniqueLoopPreventionHeaderValue()
-
-