类 AbstractJaxb2HttpMessageConverter<T>

    • 方法详细资料

      • createMarshaller

        protected final Marshaller createMarshaller​(Class<?> clazz)
        Create a new Marshaller for the given class.
        参数:
        clazz - the class to create the marshaller for
        返回:
        the Marshaller
        抛出:
        HttpMessageConversionException - in case of JAXB errors
      • customizeMarshaller

        protected void customizeMarshaller​(Marshaller marshaller)
        Customize the Marshaller created by this message converter before using it to write the object to the output.
        参数:
        marshaller - the marshaller to customize
        从以下版本开始:
        4.0.3
        另请参阅:
        createMarshaller(Class)
      • createUnmarshaller

        protected final Unmarshaller createUnmarshaller​(Class<?> clazz)
        Create a new Unmarshaller for the given class.
        参数:
        clazz - the class to create the unmarshaller for
        返回:
        the Unmarshaller
        抛出:
        HttpMessageConversionException - in case of JAXB errors
      • customizeUnmarshaller

        protected void customizeUnmarshaller​(Unmarshaller unmarshaller)
        Customize the Unmarshaller created by this message converter before using it to read the object from the input.
        参数:
        unmarshaller - the unmarshaller to customize
        从以下版本开始:
        4.0.3
        另请参阅:
        createUnmarshaller(Class)
      • getJaxbContext

        protected final JAXBContext getJaxbContext​(Class<?> clazz)
        Return a JAXBContext for the given class.
        参数:
        clazz - the class to return the context for
        返回:
        the JAXBContext
        抛出:
        HttpMessageConversionException - in case of JAXB errors