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