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(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
reset()
HttpResponse
retrieve(HttpRequest request)
String
verify(Verification verification)
String
verify(VerificationSequence verification)
-
-
-
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(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)
-
log
public void log(LogEntry logEntry)
-
retrieve
public HttpResponse retrieve(HttpRequest request)
-
verify
public String verify(Verification verification)
-
verify
public String verify(VerificationSequence verification)
-
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()
-
-