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()
-
getHttpRequests
public List<HttpRequest> getHttpRequests(HttpRequestMatcher matcher)
-
setHttpRequests
public LogEntry setHttpRequests(HttpRequest[] httpRequests)
-
setHttpRequest
public LogEntry setHttpRequest(HttpRequest httpRequest)
-
getHttpRequest
public HttpRequest getHttpRequest()
-
getHttpResponse
public HttpResponse getHttpResponse()
-
setHttpResponse
public LogEntry setHttpResponse(HttpResponse httpResponse)
-
getHttpError
public HttpError getHttpError()
-
getExpectation
public Expectation getExpectation()
-
setExpectation
public LogEntry setExpectation(Expectation expectation)
-
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
-
-