Class Jaxb2HttpMessageConverter

    • Field Summary

      • Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.xml.bind.Marshaller createMarshaller​(java.lang.Class<?> clazz)  
      javax.xml.bind.Marshaller createMarshaller​(java.lang.Class<?> wrappedClazz, java.lang.Class<?> clazz)  
      javax.xml.bind.Unmarshaller createUnmarshaller​(java.lang.Class<?> clazz)  
      javax.xml.bind.Unmarshaller createUnmarshaller​(java.lang.Class<?> wrappedClazz, java.lang.Class<?> clazz)  
      protected javax.xml.stream.XMLInputFactory createXMLInputFactory()  
      protected javax.xml.stream.XMLOutputFactory createXMLOutputFactory()  
      protected javax.xml.stream.XMLStreamReader createXMLStreamReader​(javax.xml.transform.Source source)  
      protected javax.xml.stream.XMLStreamWriter createXMLStreamWriter​(javax.xml.transform.Result result)  
      javax.xml.bind.JAXBContext getJaxbContext​(java.lang.Class<?> wrappedClazz, java.lang.Class<?> clazz)  
      JaxbContextFactory getJaxbContextFactory()  
      JaxbWrapperSupport getJaxbWrapperSupport()  
      java.util.Map<java.lang.String,​?> getMarshallerProperties()  
      java.util.Map<java.lang.String,​?> getUnmarshallerProperties()  
      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)  
      protected java.lang.Object readFromSource​(java.lang.Class<?> clazz, org.springframework.http.HttpHeaders headers, javax.xml.transform.Source source)  
      void setJaxbContextFactory​(JaxbContextFactory jaxbContextFactory)  
      void setJaxbWrapperSupport​(JaxbWrapperSupport jaxbWrapperSupport)  
      void setMarshallerProperties​(java.util.Map<java.lang.String,​?> marshallerProperties)  
      void setUnmarshallerProperties​(java.util.Map<java.lang.String,​?> unmarshallerProperties)  
      protected boolean supports​(java.lang.Class<?> clazz)  
      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)  
      protected void writeToResult​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Jaxb2HttpMessageConverter

        public Jaxb2HttpMessageConverter()
                                  throws javax.xml.stream.FactoryConfigurationError
        Throws:
        javax.xml.stream.FactoryConfigurationError
    • 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:
        readFromSource in class org.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:
        writeToResult in class org.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:
        supports in class org.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
      • 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)