Package org.mockserver.serialization
Class ExpectationSerializer
- java.lang.Object
-
- org.mockserver.serialization.ExpectationSerializer
-
- All Implemented Interfaces:
Serializer<Expectation>
public class ExpectationSerializer extends Object implements Serializer<Expectation>
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description ExpectationSerializer(MockServerLogger mockServerLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expectation
deserialize(String jsonExpectation)
Expectation[]
deserializeArray(String jsonExpectations)
String
serialize(List<Expectation> expectations)
String
serialize(Expectation expectation)
String
serialize(Expectation... expectations)
Class<Expectation>
supportsType()
-
-
-
Constructor Detail
-
ExpectationSerializer
public ExpectationSerializer(MockServerLogger mockServerLogger)
-
-
Method Detail
-
serialize
public String serialize(Expectation expectation)
- Specified by:
serialize
in interfaceSerializer<Expectation>
-
serialize
public String serialize(List<Expectation> expectations)
-
serialize
public String serialize(Expectation... expectations)
-
deserialize
public Expectation deserialize(String jsonExpectation)
- Specified by:
deserialize
in interfaceSerializer<Expectation>
-
supportsType
public Class<Expectation> supportsType()
- Specified by:
supportsType
in interfaceSerializer<Expectation>
-
deserializeArray
public Expectation[] deserializeArray(String jsonExpectations)
-
-