public class Jackson2JsonEncoder extends AbstractJackson2Codec implements org.springframework.core.codec.Encoder<Object>
Object stream to a byte stream of JSON objects,
using Jackson 2.6+.Jackson2JsonDecoderJSON_MIME_TYPES, JSON_VIEW_HINT, mapper| Constructor and Description |
|---|
Jackson2JsonEncoder() |
Jackson2JsonEncoder(ObjectMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEncode(org.springframework.core.ResolvableType elementType,
org.springframework.util.MimeType mimeType) |
reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> |
encode(org.reactivestreams.Publisher<?> inputStream,
org.springframework.core.io.buffer.DataBufferFactory bufferFactory,
org.springframework.core.ResolvableType elementType,
org.springframework.util.MimeType mimeType,
Map<String,Object> hints) |
List<org.springframework.util.MimeType> |
getEncodableMimeTypes() |
getJavaTypepublic Jackson2JsonEncoder()
public Jackson2JsonEncoder(ObjectMapper mapper)
public boolean canEncode(org.springframework.core.ResolvableType elementType,
org.springframework.util.MimeType mimeType)
canEncode in interface org.springframework.core.codec.Encoder<Object>public List<org.springframework.util.MimeType> getEncodableMimeTypes()
getEncodableMimeTypes in interface org.springframework.core.codec.Encoder<Object>public reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> encode(org.reactivestreams.Publisher<?> inputStream,
org.springframework.core.io.buffer.DataBufferFactory bufferFactory,
org.springframework.core.ResolvableType elementType,
org.springframework.util.MimeType mimeType,
Map<String,Object> hints)
encode in interface org.springframework.core.codec.Encoder<Object>