Class WadlApplicationContextImpl

    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
      • WADL_JERSEY_NAMESPACE

        static final java.lang.String WADL_JERSEY_NAMESPACE
        Jersey WADL extension XML namespace.
        See Also:
        Constant Field Values
      • EXTENDED_ELEMENT

        static final javax.xml.bind.JAXBElement EXTENDED_ELEMENT
        Jersey WADL extension XML element.
      • jaxbContext

        private final javax.xml.bind.JAXBContext jaxbContext
      • wadlGenerationEnabled

        private volatile boolean wadlGenerationEnabled
    • Constructor Detail

      • WadlApplicationContextImpl

        @Inject
        public WadlApplicationContextImpl​(InjectionManager injectionManager,
                                          javax.ws.rs.core.Configuration configuration,
                                          ExtendedResourceContext resourceContext)
        Injection constructor.
        Parameters:
        injectionManager - injection manager.
        configuration - runtime application configuration.
        resourceContext - extended resource context.
    • Method Detail

      • getApplication

        public ApplicationDescription getApplication​(javax.ws.rs.core.UriInfo uriInfo,
                                                     boolean detailedWadl)
        Description copied from interface: WadlApplicationContext
        Get a new instance of a ApplicationDescription corresponding to all the root resource classes, and configure the base URI.
        Specified by:
        getApplication in interface WadlApplicationContext
        Parameters:
        uriInfo - the URI information from which the base URI is set on the WADL application.
        detailedWadl - flag indicating whether or not detailed WADL should be generated.
        Returns:
        the application description, the contents may be modified.
      • getApplication

        public Application getApplication​(javax.ws.rs.core.UriInfo info,
                                          Resource resource,
                                          boolean detailedWadl)
        Description copied from interface: WadlApplicationContext
        Get a new instance of Application for a particular resource.
        Specified by:
        getApplication in interface WadlApplicationContext
        Parameters:
        info - the URI information from which the base URI is set on the WADL application.
        resource - the resource to build the Application for
        detailedWadl - flag indicating whether or not detailed WADL should be generated.
        Returns:
        the application for this resource
      • getWadlBuilder

        private WadlBuilder getWadlBuilder​(boolean detailedWadl,
                                           javax.ws.rs.core.UriInfo uriInfo)
      • attachExternalGrammar

        private void attachExternalGrammar​(Application application,
                                           ApplicationDescription applicationDescription,
                                           java.net.URI requestURI)
        Update the application object to include the generated grammar objects.