Package org.mockserver.serialization
Class LogEventJsonSerializer
- java.lang.Object
-
- org.mockserver.serialization.LogEventJsonSerializer
-
- All Implemented Interfaces:
Serializer<LogEntry>
public class LogEventJsonSerializer extends Object implements Serializer<LogEntry>
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description LogEventJsonSerializer(MockServerLogger mockServerLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogEntry
deserialize(String jsonLogEntry)
String
serialize(List<LogEntry> messageLogEntries)
String
serialize(LogEntry messageLogEntry)
String
serialize(LogEntry... messageLogEntries)
Class<LogEntry>
supportsType()
-
-
-
Constructor Detail
-
LogEventJsonSerializer
public LogEventJsonSerializer(MockServerLogger mockServerLogger)
-
-
Method Detail
-
serialize
public String serialize(LogEntry messageLogEntry)
- Specified by:
serialize
in interfaceSerializer<LogEntry>
-
deserialize
public LogEntry deserialize(String jsonLogEntry)
- Specified by:
deserialize
in interfaceSerializer<LogEntry>
-
supportsType
public Class<LogEntry> supportsType()
- Specified by:
supportsType
in interfaceSerializer<LogEntry>
-
-