Class JacksonTest
- java.lang.Object
-
- info.ejava.examples.jaxrs.todos.dto.MarshallingTest
-
- info.ejava.examples.jaxrs.todos.dto.JacksonTest
-
public class JacksonTest extends MarshallingTest
-
-
Constructor Summary
Constructors Constructor Description JacksonTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> Tdemarshal(Class<T> type, String buffer)protected <T> Stringmarshal(T object)-
Methods inherited from class info.ejava.examples.jaxrs.todos.dto.MarshallingTest
message, todoItem, todoList, todoListList
-
-
-
-
Method Detail
-
marshal
protected <T> String marshal(T object) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
- Specified by:
marshalin classMarshallingTest- Throws:
com.fasterxml.jackson.core.JsonGenerationExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOException
-
demarshal
protected <T> T demarshal(Class<T> type, String buffer) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
- Specified by:
demarshalin classMarshallingTest- Throws:
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOException
-
-