Package org.mockserver.dashboard.model
Class DashboardLogEntryDTO
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.dashboard.model.DashboardLogEntryDTO
public class DashboardLogEntryDTO
extends org.mockserver.model.ObjectWithJsonToString
-
Constructor Summary
ConstructorsConstructorDescriptionDashboardLogEntryDTO(String id, String correlationId, String timestamp, org.mockserver.log.model.LogEntry.LogMessageType type) DashboardLogEntryDTO(org.mockserver.log.model.LogEntry logEntry) DashboardLogEntryDTO(org.mockserver.log.model.LogEntry logEntry, org.mockserver.configuration.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionbooleanargumentLoadableFromEntry(int index) Whether the argument atindexis this entry's own request or response, so its full body can be loaded from the entry; a request or response argument that is a different object cannot.binaryLength(Object request) The length, before the dashboard cut it, of a binary message that is one of this entry's requests, ornullfor any other message.longRoughly how many characters this entry adds to an update as a log message (its arguments), used to keep an update under its size ceiling.protected String[]Object[]org.mockserver.model.RequestDefinitionorg.mockserver.model.RequestDefinition[]org.mockserver.model.HttpResponsegetId()getStyle()String[]org.mockserver.log.model.LogEntry.LogMessageTypegetType()originalBodyLength(Object message) The full body length of a request or response of this entry (its own, or one of its message arguments) whose body the dashboard cut short, ornullwhen it was sent whole.setArguments(Object... arguments) setBecause(String because) voidsetCorrelationId(String correlationId) setDescription(Description description) setHttpRequests(org.mockserver.model.RequestDefinition[] httpRequests) setHttpResponse(org.mockserver.model.HttpResponse httpResponse) voidsetMessageFormat(String messageFormat) voidsetThrowable(String[] throwable) voidsetTimestamp(String timestamp) setType(org.mockserver.log.model.LogEntry.LogMessageType type) shownBodyLength(Object message) How many characters of a request's or response's body this entry sends (after any cut), ornullfor a message that is not one of this entry's.Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode
-
Constructor Details
-
DashboardLogEntryDTO
-
DashboardLogEntryDTO
public DashboardLogEntryDTO(org.mockserver.log.model.LogEntry logEntry) -
DashboardLogEntryDTO
public DashboardLogEntryDTO(org.mockserver.log.model.LogEntry logEntry, org.mockserver.configuration.Configuration configuration) - Parameters:
configuration- the effective server configuration, consulted forredactSecretsInLogso secrets are masked in the dashboard when redaction is enabled on theConfigurationinstance (including viaPUT /mockserver/configuration);nullfalls back to the static store.
-
-
Method Details
-
originalBodyLength
The full body length of a request or response of this entry (its own, or one of its message arguments) whose body the dashboard cut short, ornullwhen it was sent whole. -
binaryLength
The length, before the dashboard cut it, of a binary message that is one of this entry's requests, ornullfor any other message. -
argumentLoadableFromEntry
public boolean argumentLoadableFromEntry(int index) Whether the argument atindexis this entry's own request or response, so its full body can be loaded from the entry; a request or response argument that is a different object cannot. -
shownBodyLength
How many characters of a request's or response's body this entry sends (after any cut), ornullfor a message that is not one of this entry's. -
estimatedLogMessageCharacters
public long estimatedLogMessageCharacters()Roughly how many characters this entry adds to an update as a log message (its arguments), used to keep an update under its size ceiling. -
getId
-
setId
-
getCorrelationId
-
setCorrelationId
-
getTimestamp
-
setTimestamp
-
getType
public org.mockserver.log.model.LogEntry.LogMessageType getType() -
setType
-
getHttpRequests
public org.mockserver.model.RequestDefinition[] getHttpRequests() -
setHttpRequests
-
getHttpRequest
public org.mockserver.model.RequestDefinition getHttpRequest() -
getHttpResponse
public org.mockserver.model.HttpResponse getHttpResponse() -
setHttpResponse
-
getStyle
-
setStyle
-
getMessageFormat
-
setMessageFormat
-
getArguments
-
setArguments
-
getThrowable
-
setThrowable
-
getBecause
-
setBecause
-
getDescription
-
setDescription
-
fieldsExcludedFromEqualsAndHashCode
- Overrides:
fieldsExcludedFromEqualsAndHashCodein classorg.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-