Class Jaxb2HttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<T>
org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<Object>
de.hybris.platform.webservicescommons.jaxb.Jaxb2HttpMessageConverter
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<Object>
- Direct Known Subclasses:
CmsJaxb2HttpMessageConverter,CmsJaxb2HttpMessageConverter,Jaxb2HttpErrorConverter
public class Jaxb2HttpMessageConverter
extends org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<Object>
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.xml.bind.MarshallercreateMarshaller(Class<?> clazz) javax.xml.bind.MarshallercreateMarshaller(Class<?> wrappedClazz, Class<?> clazz) javax.xml.bind.UnmarshallercreateUnmarshaller(Class<?> clazz) javax.xml.bind.UnmarshallercreateUnmarshaller(Class<?> wrappedClazz, Class<?> clazz) protected final XMLInputFactoryprotected final XMLOutputFactoryprotected XMLStreamReadercreateXMLStreamReader(Source source) protected XMLStreamWritercreateXMLStreamWriter(Result result) final javax.xml.bind.JAXBContextgetJaxbContext(Class<?> wrappedClazz, Class<?> clazz) protected voidmarshal(org.springframework.http.HttpHeaders headers, Result result, Object input, Class clazz, javax.xml.bind.Marshaller marshaller) protected ObjectreadFromSource(Class<?> clazz, org.springframework.http.HttpHeaders headers, Source source) voidsetJaxbContextFactory(JaxbContextFactory jaxbContextFactory) voidsetJaxbWrapperSupport(JaxbWrapperSupport jaxbWrapperSupport) voidsetMarshallerProperties(Map<String, ?> marshallerProperties) voidsetUnmarshallerProperties(Map<String, ?> unmarshallerProperties) protected booleanprotected javax.xml.bind.JAXBElementunmarshal(javax.xml.bind.Unmarshaller unmarshaller, Class<?> clazz, org.springframework.http.HttpHeaders headers, Source source) protected voidwriteToResult(Object o, org.springframework.http.HttpHeaders headers, Result result) Methods inherited from class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter
readInternal, transform, writeInternalMethods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
Constructor Details
-
Jaxb2HttpMessageConverter
- Throws:
FactoryConfigurationError
-
-
Method Details
-
createXMLInputFactory
- Throws:
FactoryConfigurationError
-
createXMLOutputFactory
- Throws:
FactoryConfigurationError
-
readFromSource
protected Object readFromSource(Class<?> clazz, org.springframework.http.HttpHeaders headers, Source source) - Specified by:
readFromSourcein classorg.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<Object>
-
unmarshal
-
createUnmarshaller
-
createUnmarshaller
-
writeToResult
protected void writeToResult(Object o, org.springframework.http.HttpHeaders headers, Result result) throws IOException - Specified by:
writeToResultin classorg.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<Object>- Throws:
IOException
-
marshal
-
createMarshaller
-
createMarshaller
-
getJaxbContext
-
supports
- Specified by:
supportsin classorg.springframework.http.converter.AbstractHttpMessageConverter<Object>
-
createXMLStreamReader
- Throws:
XMLStreamException
-
createXMLStreamWriter
- Throws:
XMLStreamException
-
getJaxbContextFactory
-
setJaxbContextFactory
-
getMarshallerProperties
-
setMarshallerProperties
-
getUnmarshallerProperties
-
setUnmarshallerProperties
-
setJaxbWrapperSupport
-
getJaxbWrapperSupport
-