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