Package org.mockserver.log
Class MockServerEventLog
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.ui.MockServerEventLogNotifier
-
- org.mockserver.log.MockServerEventLog
-
public class MockServerEventLog extends MockServerEventLogNotifier
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description MockServerEventLog(MockServerLogger mockServerLogger, Scheduler scheduler, boolean asynchronousEventProcessing)
-
Method Summary
-
Methods inherited from class org.mockserver.ui.MockServerEventLogNotifier
notifyListeners, registerListener, unregisterListener
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, key, toString
-
-
-
-
Constructor Detail
-
MockServerEventLog
public MockServerEventLog(MockServerLogger mockServerLogger, Scheduler scheduler, boolean asynchronousEventProcessing)
-
-
Method Detail
-
add
public void add(LogEntry logEntry)
-
stop
public void stop()
-
reset
public void reset()
-
clear
public void clear(HttpRequest httpRequest)
-
retrieveMessageLogEntries
public void retrieveMessageLogEntries(HttpRequest httpRequest, Consumer<List<LogEntry>> listConsumer)
-
retrieveRequestLogEntries
public void retrieveRequestLogEntries(HttpRequest httpRequest, Consumer<List<LogEntry>> listConsumer)
-
retrieveRequests
public void retrieveRequests(HttpRequest httpRequest, Consumer<List<HttpRequest>> listConsumer)
-
retrieveRequestResponseMessageLogEntries
public void retrieveRequestResponseMessageLogEntries(HttpRequest httpRequest, Consumer<List<LogEntry>> listConsumer)
-
retrieveRequestResponses
public void retrieveRequestResponses(HttpRequest httpRequest, Consumer<List<HttpRequestAndHttpResponse>> listConsumer)
-
retrieveRecordedExpectationLogEntries
public void retrieveRecordedExpectationLogEntries(HttpRequest httpRequest, Consumer<List<LogEntry>> listConsumer)
-
retrieveRecordedExpectations
public void retrieveRecordedExpectations(HttpRequest httpRequest, Consumer<List<Expectation>> listConsumer)
-
retrieveLogEntriesInReverse
public <T> void retrieveLogEntriesInReverse(HttpRequest httpRequest, Predicate<LogEntry> logEntryPredicate, Function<LogEntry,T> logEntryMapper, Consumer<Deque<T>> consumer)
-
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 verificationSequence, Consumer<String> resultConsumer)
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-