public class Jaxb2XmlEncoder extends org.springframework.core.codec.AbstractSingleValueEncoder<Object>
@XmlElements
and
@XmlElement
can be used
to specify how collections should be marshalled.
Jaxb2XmlDecoder
Constructor and Description |
---|
Jaxb2XmlEncoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
canEncode(org.springframework.core.ResolvableType elementType,
org.springframework.util.MimeType mimeType) |
protected reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> |
encode(Object value,
org.springframework.core.io.buffer.DataBufferFactory bufferFactory,
org.springframework.core.ResolvableType valueType,
org.springframework.util.MimeType mimeType,
Map<String,Object> hints) |
org.springframework.core.io.buffer.DataBuffer |
encodeValue(Object value,
org.springframework.core.io.buffer.DataBufferFactory bufferFactory,
org.springframework.core.ResolvableType valueType,
org.springframework.util.MimeType mimeType,
Map<String,Object> hints) |
Function<Marshaller,Marshaller> |
getMarshallerProcessor()
Return the configured processor for customizing Marshaller instances.
|
void |
setMarshallerProcessor(Function<Marshaller,Marshaller> processor)
Configure a processor function to customize Marshaller instances.
|
getEncodableMimeTypes, getLogger, setLogger
public void setMarshallerProcessor(Function<Marshaller,Marshaller> processor)
processor
- the function to usepublic Function<Marshaller,Marshaller> getMarshallerProcessor()
public boolean canEncode(org.springframework.core.ResolvableType elementType, @Nullable org.springframework.util.MimeType mimeType)
protected reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> encode(Object value, org.springframework.core.io.buffer.DataBufferFactory bufferFactory, org.springframework.core.ResolvableType valueType, @Nullable org.springframework.util.MimeType mimeType, @Nullable Map<String,Object> hints)
encode
in class org.springframework.core.codec.AbstractSingleValueEncoder<Object>