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