Class JAXBContextResolver

  • All Implemented Interfaces:
    javax.ws.rs.ext.ContextResolver<javax.xml.bind.JAXBContext>

    @Provider
    public class JAXBContextResolver
    extends java.lang.Object
    implements javax.ws.rs.ext.ContextResolver<javax.xml.bind.JAXBContext>
    This context resolver is used to configure the JSON output format of the classes DocumentStructure and ErrorResponse.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.xml.bind.JAXBContext getContext​(java.lang.Class<?> objectType)  
      • Methods inherited from class java.lang.Object

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

      • JAXBContextResolver

        public JAXBContextResolver()
      • JAXBContextResolver

        public JAXBContextResolver​(java.lang.Class<?>... additionalClasses)
                            throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
    • Method Detail

      • getContext

        public javax.xml.bind.JAXBContext getContext​(java.lang.Class<?> objectType)
        Specified by:
        getContext in interface javax.ws.rs.ext.ContextResolver<javax.xml.bind.JAXBContext>