public class HttpResponseSerializer extends Object implements Serializer<HttpResponse>
Constructor and Description |
---|
HttpResponseSerializer(MockServerLogger mockServerLogger) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
deserialize(String jsonHttpResponse) |
HttpResponse[] |
deserializeArray(String jsonHttpResponses) |
String |
serialize(HttpResponse... httpResponses) |
String |
serialize(HttpResponse httpResponse) |
String |
serialize(List<HttpResponse> httpResponses) |
Class<HttpResponse> |
supportsType() |
public HttpResponseSerializer(MockServerLogger mockServerLogger)
public String serialize(HttpResponse httpResponse)
serialize
in interface Serializer<HttpResponse>
public String serialize(List<HttpResponse> httpResponses)
public String serialize(HttpResponse... httpResponses)
public HttpResponse deserialize(String jsonHttpResponse)
deserialize
in interface Serializer<HttpResponse>
public Class<HttpResponse> supportsType()
supportsType
in interface Serializer<HttpResponse>
public HttpResponse[] deserializeArray(String jsonHttpResponses)
Copyright © 2020. All rights reserved.