Module methanol.adapter.jackson
Class JacksonAdapterFactory
java.lang.Object
com.github.mizosoft.methanol.adapter.jackson.JacksonAdapterFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic BodyAdapter.Decoder
Deprecated.static BodyAdapter.Decoder
createDecoder
(com.fasterxml.jackson.databind.ObjectMapper mapper) Deprecated.static BodyAdapter.Decoder
createDecoder
(com.fasterxml.jackson.databind.ObjectMapper mapper, ObjectReaderFactory readerFactory, MediaType firstMediaType, MediaType... otherMediaTypes) Creates a decoder that uses the givenObjectMapper
and is compatible with the given media types.static BodyAdapter.Decoder
createDecoder
(com.fasterxml.jackson.databind.ObjectMapper mapper, MediaType firstMediaType, MediaType... otherMediaTypes) Creates a decoder that uses the givenObjectMapper
and is compatible with the given media types.static BodyAdapter.Encoder
Deprecated.UsecreateJsonEncoder()
.static BodyAdapter.Encoder
createEncoder
(com.fasterxml.jackson.databind.ObjectMapper mapper) Deprecated.static BodyAdapter.Encoder
createEncoder
(com.fasterxml.jackson.databind.ObjectMapper mapper, ObjectWriterFactory writerFactory, MediaType firstMediaType, MediaType... otherMediaTypes) Creates an encoder that uses the givenObjectMapper
and is compatible with the given media types.static BodyAdapter.Encoder
createEncoder
(com.fasterxml.jackson.databind.ObjectMapper mapper, MediaType firstMediaType, MediaType... otherMediaTypes) Creates an encoder that uses the givenObjectMapper
and is compatible with the given media types.static BodyAdapter.Decoder
Creates a decoder that uses a defaultObjectMapper
for JSON and is only compatible withapplication/json
.static BodyAdapter.Decoder
createJsonDecoder
(com.fasterxml.jackson.databind.ObjectMapper mapper) Creates a decoder that uses the givenObjectMapper
and is only compatible withapplication/json
.static BodyAdapter.Encoder
Creates an encoder that uses a defaultObjectMapper
for JSON and is only compatible withapplication/json
.static BodyAdapter.Encoder
createJsonEncoder
(com.fasterxml.jackson.databind.ObjectMapper mapper) Creates an encoder that uses the givenObjectMapper
and is only compatible withapplication/json
.
-
Method Details
-
createEncoder
@Deprecated @InlineMe(replacement="JacksonAdapterFactory.createJsonEncoder()", imports="com.github.mizosoft.methanol.adapter.jackson.JacksonAdapterFactory") public static BodyAdapter.Encoder createEncoder()Deprecated.UsecreateJsonEncoder()
.Creates an encoder that uses a defaultObjectMapper
for JSON and is only compatible withapplication/json
. -
createEncoder
@Deprecated @InlineMe(replacement="JacksonAdapterFactory.createJsonEncoder(mapper)", imports="com.github.mizosoft.methanol.adapter.jackson.JacksonAdapterFactory") public static BodyAdapter.Encoder createEncoder(com.fasterxml.jackson.databind.ObjectMapper mapper) Deprecated.Creates an encoder that uses the givenObjectMapper
and is only compatible withapplication/json
. -
createJsonEncoder
Creates an encoder that uses a defaultObjectMapper
for JSON and is only compatible withapplication/json
. -
createJsonEncoder
public static BodyAdapter.Encoder createJsonEncoder(com.fasterxml.jackson.databind.ObjectMapper mapper) Creates an encoder that uses the givenObjectMapper
and is only compatible withapplication/json
. -
createEncoder
public static BodyAdapter.Encoder createEncoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MediaType firstMediaType, MediaType... otherMediaTypes) Creates an encoder that uses the givenObjectMapper
and is compatible with the given media types. -
createEncoder
public static BodyAdapter.Encoder createEncoder(com.fasterxml.jackson.databind.ObjectMapper mapper, ObjectWriterFactory writerFactory, MediaType firstMediaType, MediaType... otherMediaTypes) Creates an encoder that uses the givenObjectMapper
and is compatible with the given media types. The encoder createsObjectWriters
using the given factory. -
createDecoder
@Deprecated @InlineMe(replacement="JacksonAdapterFactory.createJsonDecoder()", imports="com.github.mizosoft.methanol.adapter.jackson.JacksonAdapterFactory") public static BodyAdapter.Decoder createDecoder()Deprecated.UsecreateJsonDecoder()
.Creates a decoder that uses a defaultObjectMapper
for JSON and is only compatible withapplication/json
. -
createDecoder
@Deprecated @InlineMe(replacement="JacksonAdapterFactory.createJsonDecoder(mapper)", imports="com.github.mizosoft.methanol.adapter.jackson.JacksonAdapterFactory") public static BodyAdapter.Decoder createDecoder(com.fasterxml.jackson.databind.ObjectMapper mapper) Deprecated.Creates a decoder that uses the givenObjectMapper
and is only compatible withapplication/json
. -
createJsonDecoder
Creates a decoder that uses a defaultObjectMapper
for JSON and is only compatible withapplication/json
. -
createJsonDecoder
public static BodyAdapter.Decoder createJsonDecoder(com.fasterxml.jackson.databind.ObjectMapper mapper) Creates a decoder that uses the givenObjectMapper
and is only compatible withapplication/json
. -
createDecoder
public static BodyAdapter.Decoder createDecoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MediaType firstMediaType, MediaType... otherMediaTypes) Creates a decoder that uses the givenObjectMapper
and is compatible with the given media types. -
createDecoder
public static BodyAdapter.Decoder createDecoder(com.fasterxml.jackson.databind.ObjectMapper mapper, ObjectReaderFactory readerFactory, MediaType firstMediaType, MediaType... otherMediaTypes) Creates a decoder that uses the givenObjectMapper
and is compatible with the given media types. The decoder createsObjectReaders
using the given factory.
-
createJsonDecoder()
.