public final class WadlApplicationContextImpl extends Object implements WadlApplicationContext
| Constructor and Description |
|---|
WadlApplicationContextImpl(InjectionManager injectionManager,
Configuration configuration,
ExtendedResourceContext resourceContext)
Injection constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationDescription |
getApplication(UriInfo uriInfo,
boolean detailedWadl)
Get a new instance of a
ApplicationDescription corresponding to all
the root resource classes, and configure the base URI. |
Application |
getApplication(UriInfo info,
Resource resource,
boolean detailedWadl)
Get a new instance of
Application for a particular resource. |
jakarta.xml.bind.JAXBContext |
getJAXBContext()
Get the default JAXB context associated with the
WadlGenerator
for the Web application. |
static jakarta.xml.bind.JAXBContext |
getJAXBContextFromWadlGenerator(WadlGenerator wadlGenerator) |
static boolean |
isJaxbImplAvailable() |
boolean |
isWadlGenerationEnabled()
Get WADL generation status.
|
void |
setWadlGenerationEnabled(boolean wadlGenerationEnabled)
Enable/disable WADL generation.
|
@Inject public WadlApplicationContextImpl(InjectionManager injectionManager, Configuration configuration, ExtendedResourceContext resourceContext)
injectionManager - injection manager.configuration - runtime application configuration.resourceContext - extended resource context.public static jakarta.xml.bind.JAXBContext getJAXBContextFromWadlGenerator(WadlGenerator wadlGenerator) throws jakarta.xml.bind.JAXBException
jakarta.xml.bind.JAXBExceptionpublic ApplicationDescription getApplication(UriInfo uriInfo, boolean detailedWadl)
WadlApplicationContextApplicationDescription corresponding to all
the root resource classes, and configure the base URI.getApplication in interface WadlApplicationContexturiInfo - 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.public Application getApplication(UriInfo info, Resource resource, boolean detailedWadl)
WadlApplicationContextApplication for a particular resource.getApplication in interface WadlApplicationContextinfo - the URI information from which the base URI is set on the
WADL application.resource - the resource to build the Application fordetailedWadl - flag indicating whether or not detailed WADL should be generated.public jakarta.xml.bind.JAXBContext getJAXBContext()
WadlApplicationContextWadlGenerator
for the Web application.getJAXBContext in interface WadlApplicationContextpublic void setWadlGenerationEnabled(boolean wadlGenerationEnabled)
WadlApplicationContextsetWadlGenerationEnabled in interface WadlApplicationContextwadlGenerationEnabled - if wadlGenerationEnabled is true and
ServerProperties.WADL_FEATURE_DISABLE
is false, WADL generation is enabled. In all other cases is disabled.public boolean isWadlGenerationEnabled()
WadlApplicationContextisWadlGenerationEnabled in interface WadlApplicationContextServerProperties.WADL_FEATURE_DISABLEpublic static boolean isJaxbImplAvailable()
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.