Class Jaxb2HttpMessageConverter
- java.lang.Object
-
- org.springframework.http.converter.AbstractHttpMessageConverter<T>
-
- org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<java.lang.Object>
-
- de.hybris.platform.webservicescommons.jaxb.Jaxb2HttpMessageConverter
-
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<java.lang.Object>
- Direct Known Subclasses:
CmsJaxb2HttpMessageConverter,CmsJaxb2HttpMessageConverter,Jaxb2HttpErrorConverter
public class Jaxb2HttpMessageConverter extends org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description Jaxb2HttpMessageConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.bind.MarshallercreateMarshaller(java.lang.Class<?> clazz)javax.xml.bind.MarshallercreateMarshaller(java.lang.Class<?> wrappedClazz, java.lang.Class<?> clazz)javax.xml.bind.UnmarshallercreateUnmarshaller(java.lang.Class<?> clazz)javax.xml.bind.UnmarshallercreateUnmarshaller(java.lang.Class<?> wrappedClazz, java.lang.Class<?> clazz)protected javax.xml.stream.XMLInputFactorycreateXMLInputFactory()protected javax.xml.stream.XMLOutputFactorycreateXMLOutputFactory()protected javax.xml.stream.XMLStreamReadercreateXMLStreamReader(javax.xml.transform.Source source)protected javax.xml.stream.XMLStreamWritercreateXMLStreamWriter(javax.xml.transform.Result result)javax.xml.bind.JAXBContextgetJaxbContext(java.lang.Class<?> wrappedClazz, java.lang.Class<?> clazz)JaxbContextFactorygetJaxbContextFactory()JaxbWrapperSupportgetJaxbWrapperSupport()java.util.Map<java.lang.String,?>getMarshallerProperties()java.util.Map<java.lang.String,?>getUnmarshallerProperties()protected voidmarshal(org.springframework.http.HttpHeaders headers, javax.xml.transform.Result result, java.lang.Object input, java.lang.Class clazz, javax.xml.bind.Marshaller marshaller)protected java.lang.ObjectreadFromSource(java.lang.Class<?> clazz, org.springframework.http.HttpHeaders headers, javax.xml.transform.Source source)voidsetJaxbContextFactory(JaxbContextFactory jaxbContextFactory)voidsetJaxbWrapperSupport(JaxbWrapperSupport jaxbWrapperSupport)voidsetMarshallerProperties(java.util.Map<java.lang.String,?> marshallerProperties)voidsetUnmarshallerProperties(java.util.Map<java.lang.String,?> unmarshallerProperties)protected booleansupports(java.lang.Class<?> clazz)protected javax.xml.bind.JAXBElementunmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Class<?> clazz, org.springframework.http.HttpHeaders headers, javax.xml.transform.Source source)protected voidwriteToResult(java.lang.Object o, org.springframework.http.HttpHeaders headers, javax.xml.transform.Result result)-
Methods inherited from class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter
readInternal, transform, writeInternal
-
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
-
-
-
-
Method Detail
-
createXMLInputFactory
protected final javax.xml.stream.XMLInputFactory createXMLInputFactory() throws javax.xml.stream.FactoryConfigurationError- Throws:
javax.xml.stream.FactoryConfigurationError
-
createXMLOutputFactory
protected final javax.xml.stream.XMLOutputFactory createXMLOutputFactory() throws javax.xml.stream.FactoryConfigurationError- Throws:
javax.xml.stream.FactoryConfigurationError
-
readFromSource
protected java.lang.Object readFromSource(java.lang.Class<?> clazz, org.springframework.http.HttpHeaders headers, javax.xml.transform.Source source)- Specified by:
readFromSourcein classorg.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<java.lang.Object>
-
unmarshal
protected javax.xml.bind.JAXBElement unmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Class<?> clazz, org.springframework.http.HttpHeaders headers, javax.xml.transform.Source source)
-
createUnmarshaller
public javax.xml.bind.Unmarshaller createUnmarshaller(java.lang.Class<?> clazz)
-
createUnmarshaller
public javax.xml.bind.Unmarshaller createUnmarshaller(java.lang.Class<?> wrappedClazz, java.lang.Class<?> clazz)
-
writeToResult
protected void writeToResult(java.lang.Object o, org.springframework.http.HttpHeaders headers, javax.xml.transform.Result result) throws java.io.IOException- Specified by:
writeToResultin classorg.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<java.lang.Object>- Throws:
java.io.IOException
-
marshal
protected void marshal(org.springframework.http.HttpHeaders headers, javax.xml.transform.Result result, java.lang.Object input, java.lang.Class clazz, javax.xml.bind.Marshaller marshaller)
-
createMarshaller
public javax.xml.bind.Marshaller createMarshaller(java.lang.Class<?> clazz)
-
createMarshaller
public javax.xml.bind.Marshaller createMarshaller(java.lang.Class<?> wrappedClazz, java.lang.Class<?> clazz)
-
getJaxbContext
public final javax.xml.bind.JAXBContext getJaxbContext(java.lang.Class<?> wrappedClazz, java.lang.Class<?> clazz)
-
supports
protected boolean supports(java.lang.Class<?> clazz)
- Specified by:
supportsin classorg.springframework.http.converter.AbstractHttpMessageConverter<java.lang.Object>
-
createXMLStreamReader
protected javax.xml.stream.XMLStreamReader createXMLStreamReader(javax.xml.transform.Source source) throws javax.xml.stream.XMLStreamException- Throws:
javax.xml.stream.XMLStreamException
-
createXMLStreamWriter
protected javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result) throws javax.xml.stream.XMLStreamException- Throws:
javax.xml.stream.XMLStreamException
-
getJaxbContextFactory
public JaxbContextFactory getJaxbContextFactory()
-
setJaxbContextFactory
public void setJaxbContextFactory(JaxbContextFactory jaxbContextFactory)
-
getMarshallerProperties
public java.util.Map<java.lang.String,?> getMarshallerProperties()
-
setMarshallerProperties
public void setMarshallerProperties(java.util.Map<java.lang.String,?> marshallerProperties)
-
getUnmarshallerProperties
public java.util.Map<java.lang.String,?> getUnmarshallerProperties()
-
setUnmarshallerProperties
public void setUnmarshallerProperties(java.util.Map<java.lang.String,?> unmarshallerProperties)
-
setJaxbWrapperSupport
public void setJaxbWrapperSupport(JaxbWrapperSupport jaxbWrapperSupport)
-
getJaxbWrapperSupport
public JaxbWrapperSupport getJaxbWrapperSupport()
-
-