@XmlElements and
@XmlElement can be used
to specify how collections should be marshalled.
Jaxb2XmlDecoder
| Modifier and Type | Field and Description |
|---|---|
| private final JaxbContextContainer | |
| private Function |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canEncode(ResolvableType
the type of elements in the source stream elementType, MimeType the MIME type for the output stream
(can be mimeType)null if not specified)Overrides org. Implements org. Whether the encoder supports the given source element type and the MIME type for the output stream. |
| protected Flux | encode(Object
the value to process value, DataBufferFactory a buffer factory used to create the output bufferFactory, ResolvableType the stream element type to process valueType, MimeType the mime type to process mimeType, Map<String, Object> additional information about how to do decode, optional hints)Implements abstract org. Encode |
| public DataBuffer | encodeValue(Object
the value to be encoded value, DataBufferFactory for creating the output bufferFactory, ResolvableType DataBufferthe type for the value being encoded valueType, MimeType the MIME type for the output content (optional) mimeType, Map<String, Object> additional information about how to encode hints)Overrides default org. Encode an Object of type T to a data buffer. |
| public Function | |
| private static Class | |
| private Marshaller | |
| public void | setMarshallerProcessor(Function<Marshaller, Marshaller>
the function to use processor)Configure a processor function to customize Marshaller instances. |
| jaxbContexts | back to summary |
|---|---|
| private final JaxbContextContainer jaxbContexts | |
| marshallerProcessor | back to summary |
|---|---|
| private Function<Marshaller, Marshaller> marshallerProcessor | |
| Jaxb2XmlEncoder | back to summary |
|---|---|
| public Jaxb2XmlEncoder() | |
| canEncode | back to summary |
|---|---|
| public boolean canEncode(ResolvableType elementType, MimeType mimeType) Overrides org. Implements org. Doc from org. Whether the encoder supports the given source element type and the MIME type for the output stream.
| |
| encode | back to summary |
|---|---|
| protected Flux Implements abstract org. Doc from org. Encode
| |
| encodeValue | back to summary |
|---|---|
| public DataBuffer encodeValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Overrides default org. Doc from org. Encode an Object of type T to a data buffer. This is useful for scenarios, that distinct messages (or events) are encoded and handled individually, in fully aggregated form. By default this method raises
| |
| getMarshallerProcessor | back to summary |
|---|---|
| public Function Return the configured processor for customizing Marshaller instances.
| |
| getMarshallerType | back to summary |
|---|---|
| private static Class | |
| initMarshaller | back to summary |
|---|---|
| private Marshaller initMarshaller(Class<?> clazz) throws CodecException, JAXBException | |
| setMarshallerProcessor | back to summary |
|---|---|
| public void setMarshallerProcessor(Function<Marshaller, Marshaller> processor) Configure a processor function to customize Marshaller instances.
| |