HttpMessageConverters
that convert from/to XML.
By default, subclasses of this converter support text/xml, application/xml, and application/*+xml. This can be overridden by setting the supportedMediaTypes property.
| Modifier and Type | Field and Description |
|---|---|
| private final TransformerFactory |
| Access | Constructor and Description |
|---|---|
| protected | AbstractXmlHttpMessageConverter()
Protected constructor that sets the |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract T | Returns: the converted objectthe type of object to return clazz, HttpHeaders the HTTP input headers headers, Source the HTTP input body source)Abstract template method called from |
| public final T | readInternal(Class<? extends T>
the type of object to return clazz, HttpInputMessage the HTTP input message to read from inputMessage)Implements abstract org. Abstract template method that reads the actual object. |
| protected void | |
| protected final void | writeInternal(T
the object to write to the output message t, HttpOutputMessage the HTTP output message to write to outputMessage)Implements abstract org. Abstract template method that writes the actual body. |
| protected abstract void | writeToResult(T
the object to write to the output message t, HttpHeaders the HTTP output headers headers, Result the HTTP output body result)Abstract template method called from |
| transformerFactory | back to summary |
|---|---|
| private final TransformerFactory transformerFactory | |
| AbstractXmlHttpMessageConverter | back to summary |
|---|---|
| protected AbstractXmlHttpMessageConverter() Protected constructor that sets the | |
| readFromSource | back to summary |
|---|---|
| protected abstract T readFromSource(Class<? extends T> clazz, HttpHeaders headers, Source source) throws Exception Abstract template method called from
| |
| readInternal | back to summary |
|---|---|
| public final T readInternal(Class<? extends T> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException Implements abstract org. Doc from org. Abstract template method that reads the actual object. Invoked from
| |
| transform | back to summary |
|---|---|
| protected void transform(Source source, Result result) throws TransformerException Transforms the given
| |
| writeInternal | back to summary |
|---|---|
| protected final void writeInternal(T t, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException Implements abstract org. Doc from org. Abstract template method that writes the actual body. Invoked from
| |
| writeToResult | back to summary |
|---|---|
| protected abstract void writeToResult(T t, HttpHeaders headers, Result result) throws Exception Abstract template method called from
| |