public class Jaxb2XmlEncoder
extends org.springframework.core.codec.AbstractSingleValueEncoder<java.lang.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(java.lang.Object value,
org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory,
org.springframework.core.ResolvableType type,
org.springframework.util.MimeType mimeType,
java.util.Map<java.lang.String,java.lang.Object> hints) |
java.util.function.Function<Marshaller,Marshaller> |
getMarshallerProcessor()
Return the configured processor for customizing Marshaller instances.
|
void |
setMarshallerProcessor(java.util.function.Function<Marshaller,Marshaller> processor)
Configure a processor function to customize Marshaller instances.
|
public void setMarshallerProcessor(java.util.function.Function<Marshaller,Marshaller> processor)
processor - the function to usepublic java.util.function.Function<Marshaller,Marshaller> getMarshallerProcessor()
public boolean canEncode(org.springframework.core.ResolvableType elementType,
@Nullable
org.springframework.util.MimeType mimeType)
canEncode in interface org.springframework.core.codec.Encoder<java.lang.Object>canEncode in class org.springframework.core.codec.AbstractEncoder<java.lang.Object>protected reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> encode(java.lang.Object value,
org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory,
org.springframework.core.ResolvableType type,
@Nullable
org.springframework.util.MimeType mimeType,
@Nullable
java.util.Map<java.lang.String,java.lang.Object> hints)
encode in class org.springframework.core.codec.AbstractSingleValueEncoder<java.lang.Object>