public class JaxbMarshallingHttpMessageConverter
extends org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<java.lang.Object>
JAXBContext directly. The Class specified to readFromSource(Class, HttpHeaders, Source)
is passed to the Unmarshaller.unmarshal(Source, Class) method to help with parsing of XML that doesn't include namespace information.
Note that supports(Class) returns true for ALL Classes so this converter should only be used in a limited scope| Constructor and Description |
|---|
JaxbMarshallingHttpMessageConverter(javax.xml.bind.JAXBContext jaxbContext) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
readFromSource(java.lang.Class<?> clazz,
org.springframework.http.HttpHeaders headers,
javax.xml.transform.Source source) |
boolean |
supports(java.lang.Class<?> clazz) |
protected void |
writeToResult(java.lang.Object o,
org.springframework.http.HttpHeaders headers,
javax.xml.transform.Result result) |
readInternal, transform, writeInternalpublic JaxbMarshallingHttpMessageConverter(javax.xml.bind.JAXBContext jaxbContext)
public boolean supports(java.lang.Class<?> clazz)
supports in class org.springframework.http.converter.AbstractHttpMessageConverter<java.lang.Object>protected java.lang.Object readFromSource(java.lang.Class<?> clazz,
org.springframework.http.HttpHeaders headers,
javax.xml.transform.Source source)
throws java.io.IOException
readFromSource in class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<java.lang.Object>java.io.IOExceptionprotected void writeToResult(java.lang.Object o,
org.springframework.http.HttpHeaders headers,
javax.xml.transform.Result result)
throws java.io.IOException
writeToResult in class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<java.lang.Object>java.io.IOExceptionCopyright © 2018 Jasig. All Rights Reserved.