Package org.mockserver.log.model
Class LogEntry
- java.lang.Object
-
- org.mockserver.log.model.LogEntry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogEntry.LogMessageTypestatic classLogEntry.LogMessageTypeCategory
-
Field Summary
Fields Modifier and Type Field Description static DateFormatLOG_DATE_FORMAT
-
Constructor Summary
Constructors Constructor Description LogEntry()
-
Method Summary
-
-
-
Field Detail
-
LOG_DATE_FORMAT
public static final DateFormat LOG_DATE_FORMAT
-
-
Method Detail
-
id
public String id()
-
clear
public void clear()
-
getLogLevel
public org.slf4j.event.Level getLogLevel()
-
setLogLevel
public LogEntry setLogLevel(org.slf4j.event.Level logLevel)
-
isAlwaysLog
public boolean isAlwaysLog()
-
setAlwaysLog
public LogEntry setAlwaysLog(boolean alwaysLog)
-
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)
-
getCorrelationId
public String getCorrelationId()
-
getPort
public Integer getPort()
-
getHttpRequests
public RequestDefinition[] getHttpRequests()
-
getHttpUpdatedRequests
public RequestDefinition[] getHttpUpdatedRequests()
-
matches
public boolean matches(HttpRequestMatcher matcher)
-
setHttpRequests
public LogEntry setHttpRequests(RequestDefinition[] httpRequests)
-
getHttpRequest
public RequestDefinition getHttpRequest()
-
setHttpRequest
public LogEntry setHttpRequest(RequestDefinition 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(RequestDefinition httpRequest, HttpResponse httpResponse)
-
getExpectationId
public String getExpectationId()
-
getThrowable
public Throwable getThrowable()
-
getConsumer
public Runnable getConsumer()
-
isDeleted
public boolean isDeleted()
-
setDeleted
public LogEntry setDeleted(boolean deleted)
-
getMessageFormat
public String getMessageFormat()
-
getMessage
public String getMessage()
-
getCompactMessage
public String getCompactMessage()
-
getArguments
public Object[] getArguments()
-
getBecause
public String getBecause()
-
cloneAndClear
public LogEntry cloneAndClear()
-
translateTo
public void translateTo(LogEntry event, long sequence)
- Specified by:
translateToin interfacecom.lmax.disruptor.EventTranslator<LogEntry>
-
-