public final class JacksonConverterFactory
extends io.apptik.comm.jus.Converter.Factory
This converter assumes that it can handle all types. If you are using retro-jus mixing JSON serialization with something else (such as protocol buffers), you must add this instance last to allow the other converters a chance to see their types.
| Modifier and Type | Method and Description |
|---|---|
static JacksonConverterFactory |
create()
Create an instance using a default
ObjectMapper instance for conversion. |
static JacksonConverterFactory |
create(com.fasterxml.jackson.databind.ObjectMapper mapper)
Create an instance using
mapper for conversion. |
io.apptik.comm.jus.Converter<io.apptik.comm.jus.NetworkResponse,?> |
fromResponse(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations) |
io.apptik.comm.jus.Converter<?,io.apptik.comm.jus.NetworkRequest> |
toRequest(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations) |
public static JacksonConverterFactory create()
ObjectMapper instance for conversion.public static JacksonConverterFactory create(com.fasterxml.jackson.databind.ObjectMapper mapper)
mapper for conversion.public io.apptik.comm.jus.Converter<io.apptik.comm.jus.NetworkResponse,?> fromResponse(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations)
fromResponse in class io.apptik.comm.jus.Converter.Factorypublic io.apptik.comm.jus.Converter<?,io.apptik.comm.jus.NetworkRequest> toRequest(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations)
toRequest in class io.apptik.comm.jus.Converter.Factory