public class HttpRequestSerializer extends Object implements Serializer<HttpRequest>
Constructor and Description |
---|
HttpRequestSerializer(MockServerLogger mockServerLogger) |
Modifier and Type | Method and Description |
---|---|
HttpRequest |
deserialize(String jsonHttpRequest) |
HttpRequest[] |
deserializeArray(String jsonHttpRequests) |
String |
serialize(boolean prettyPrint,
HttpRequest... httpRequests) |
String |
serialize(boolean prettyPrint,
HttpRequest httpRequest) |
String |
serialize(boolean prettyPrint,
List<HttpRequest> httpRequests) |
String |
serialize(HttpRequest... httpRequests) |
String |
serialize(HttpRequest httpRequest) |
String |
serialize(List<HttpRequest> httpRequests) |
Class<HttpRequest> |
supportsType() |
public HttpRequestSerializer(MockServerLogger mockServerLogger)
public String serialize(HttpRequest httpRequest)
serialize
in interface Serializer<HttpRequest>
public String serialize(boolean prettyPrint, HttpRequest httpRequest)
public String serialize(List<HttpRequest> httpRequests)
public String serialize(boolean prettyPrint, List<HttpRequest> httpRequests)
public String serialize(HttpRequest... httpRequests)
public String serialize(boolean prettyPrint, HttpRequest... httpRequests)
public HttpRequest deserialize(String jsonHttpRequest)
deserialize
in interface Serializer<HttpRequest>
public Class<HttpRequest> supportsType()
supportsType
in interface Serializer<HttpRequest>
public HttpRequest[] deserializeArray(String jsonHttpRequests)
Copyright © 2018. All rights reserved.