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