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> T
demarshal(Class<T> type, String buffer)
protected <T> String
marshal(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:
marshal
in classMarshallingTest
- Throws:
com.fasterxml.jackson.core.JsonGenerationException
com.fasterxml.jackson.databind.JsonMappingException
IOException
-
demarshal
protected <T> T demarshal(Class<T> type, String buffer) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
- Specified by:
demarshal
in classMarshallingTest
- Throws:
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
IOException
-
-