public class JaxbMarshallingHttpMessageConverter extends org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<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(JAXBContext jaxbContext) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
readFromSource(Class<?> clazz,
org.springframework.http.HttpHeaders headers,
Source source) |
boolean |
supports(Class<?> clazz) |
protected void |
writeToResult(Object o,
org.springframework.http.HttpHeaders headers,
Result result) |
readInternal, transform, writeInternalpublic JaxbMarshallingHttpMessageConverter(JAXBContext jaxbContext)
public boolean supports(Class<?> clazz)
supports in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>protected Object readFromSource(Class<?> clazz, org.springframework.http.HttpHeaders headers, Source source) throws IOException
readFromSource in class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<Object>IOExceptionprotected void writeToResult(Object o, org.springframework.http.HttpHeaders headers, Result result) throws IOException
writeToResult in class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<Object>IOExceptionCopyright © 2015 Jasig. All Rights Reserved.