Class JacksonRequestWriter
java.lang.Object
si.mazi.rescu.serialization.jackson.JacksonRequestWriter
- All Implemented Interfaces:
RequestWriter
public class JacksonRequestWriter extends Object implements RequestWriter
Writes the data as JSON-serialized string using Jackson.
- Author:
- Martin ZIMA
-
Constructor Summary
Constructors Constructor Description JacksonRequestWriter(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and Type Method Description StringwriteBody(RestInvocation invocation)
-
Constructor Details
-
JacksonRequestWriter
public JacksonRequestWriter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
writeBody
- Specified by:
writeBodyin interfaceRequestWriter
-