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.JAXBException
public ApplicationDescription getApplication(UriInfo uriInfo, boolean detailedWadl)
WadlApplicationContext
ApplicationDescription
corresponding to all
the root resource classes, and configure the base URI.getApplication
in interface WadlApplicationContext
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.public Application getApplication(UriInfo info, Resource resource, boolean detailedWadl)
WadlApplicationContext
Application
for a particular resource.getApplication
in interface WadlApplicationContext
info
- 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()
WadlApplicationContext
WadlGenerator
for the Web application.getJAXBContext
in interface WadlApplicationContext
public void setWadlGenerationEnabled(boolean wadlGenerationEnabled)
WadlApplicationContext
setWadlGenerationEnabled
in interface WadlApplicationContext
wadlGenerationEnabled
- if wadlGenerationEnabled is true and
ServerProperties.WADL_FEATURE_DISABLE
is false, WADL generation is enabled. In all other cases is disabled.public boolean isWadlGenerationEnabled()
WadlApplicationContext
isWadlGenerationEnabled
in interface WadlApplicationContext
ServerProperties.WADL_FEATURE_DISABLE
public static boolean isJaxbImplAvailable()
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.