Package org.mockserver.log.model
Class LogEntry
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.log.model.LogEntry
-
- All Implemented Interfaces:
com.lmax.disruptor.EventTranslator<LogEntry>
public class LogEntry extends ObjectWithJsonToString implements com.lmax.disruptor.EventTranslator<LogEntry>
- Author:
- jamesdbloom
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LogEntry.LogMessageType
-
Field Summary
Fields Modifier and Type Field Description static DateFormat
LOG_DATE_FORMAT
-
Constructor Summary
Constructors Constructor Description LogEntry()
-
Method Summary
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, key
-
-
-
-
Field Detail
-
LOG_DATE_FORMAT
public static final DateFormat LOG_DATE_FORMAT
-
-
Method Detail
-
clear
public void clear()
-
getLogLevel
public org.slf4j.event.Level getLogLevel()
-
setLogLevel
public LogEntry setLogLevel(org.slf4j.event.Level logLevel)
-
getEpochTime
public long getEpochTime()
-
setEpochTime
public LogEntry setEpochTime(long epochTime)
-
getTimestamp
public String getTimestamp()
-
getType
public LogEntry.LogMessageType getType()
-
setType
public LogEntry setType(LogEntry.LogMessageType type)
-
getHttpRequests
public HttpRequest[] getHttpRequests()
-
getHttpUpdatedRequests
public HttpRequest[] getHttpUpdatedRequests()
-
matches
public boolean matches(HttpRequestMatcher matcher)
-
setHttpRequests
public LogEntry setHttpRequests(HttpRequest[] httpRequests)
-
getHttpRequest
public HttpRequest getHttpRequest()
-
setHttpRequest
public LogEntry setHttpRequest(HttpRequest httpRequest)
-
getHttpResponse
public HttpResponse getHttpResponse()
-
getHttpUpdatedResponse
public HttpResponse getHttpUpdatedResponse()
-
setHttpResponse
public LogEntry setHttpResponse(HttpResponse httpResponse)
-
getHttpError
public HttpError getHttpError()
-
getExpectation
public Expectation getExpectation()
-
setExpectation
public LogEntry setExpectation(Expectation expectation)
-
setExpectation
public LogEntry setExpectation(HttpRequest httpRequest, HttpResponse httpResponse)
-
getThrowable
public Throwable getThrowable()
-
getConsumer
public Runnable getConsumer()
-
getMessageFormat
public String getMessageFormat()
-
getArguments
public Object[] getArguments()
-
getMessage
public String getMessage()
-
translateTo
public void translateTo(LogEntry event, long sequence)
- Specified by:
translateTo
in interfacecom.lmax.disruptor.EventTranslator<LogEntry>
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-