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>
  • Constructor Details

  • Method Details

    • createXMLInputFactory

      protected final XMLInputFactory createXMLInputFactory() throws FactoryConfigurationError
      Throws:
      FactoryConfigurationError
    • createXMLOutputFactory

      protected final XMLOutputFactory createXMLOutputFactory() throws FactoryConfigurationError
      Throws:
      FactoryConfigurationError
    • readFromSource

      protected Object readFromSource(Class<?> clazz, org.springframework.http.HttpHeaders headers, Source source)
      Specified by:
      readFromSource in class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<Object>
    • unmarshal

      protected javax.xml.bind.JAXBElement unmarshal(javax.xml.bind.Unmarshaller unmarshaller, Class<?> clazz, org.springframework.http.HttpHeaders headers, Source source)
    • createUnmarshaller

      public javax.xml.bind.Unmarshaller createUnmarshaller(Class<?> clazz)
    • createUnmarshaller

      public javax.xml.bind.Unmarshaller createUnmarshaller(Class<?> wrappedClazz, Class<?> clazz)
    • writeToResult

      protected void writeToResult(Object o, org.springframework.http.HttpHeaders headers, Result result) throws IOException
      Specified by:
      writeToResult in class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<Object>
      Throws:
      IOException
    • marshal

      protected void marshal(org.springframework.http.HttpHeaders headers, Result result, Object input, Class clazz, javax.xml.bind.Marshaller marshaller)
    • createMarshaller

      public javax.xml.bind.Marshaller createMarshaller(Class<?> clazz)
    • createMarshaller

      public javax.xml.bind.Marshaller createMarshaller(Class<?> wrappedClazz, Class<?> clazz)
    • getJaxbContext

      public final javax.xml.bind.JAXBContext getJaxbContext(Class<?> wrappedClazz, Class<?> clazz)
    • supports

      protected boolean supports(Class<?> clazz)
      Specified by:
      supports in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>
    • createXMLStreamReader

      protected XMLStreamReader createXMLStreamReader(Source source) throws XMLStreamException
      Throws:
      XMLStreamException
    • createXMLStreamWriter

      protected XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
      Throws:
      XMLStreamException
    • getJaxbContextFactory

      public JaxbContextFactory getJaxbContextFactory()
    • setJaxbContextFactory

      public void setJaxbContextFactory(JaxbContextFactory jaxbContextFactory)
    • getMarshallerProperties

      public Map<String,?> getMarshallerProperties()
    • setMarshallerProperties

      public void setMarshallerProperties(Map<String,?> marshallerProperties)
    • getUnmarshallerProperties

      public Map<String,?> getUnmarshallerProperties()
    • setUnmarshallerProperties

      public void setUnmarshallerProperties(Map<String,?> unmarshallerProperties)
    • setJaxbWrapperSupport

      public void setJaxbWrapperSupport(JaxbWrapperSupport jaxbWrapperSupport)
    • getJaxbWrapperSupport

      public JaxbWrapperSupport getJaxbWrapperSupport()