public interface WadlApplicationContext
Modifier and Type | Method and Description |
---|---|
ApplicationDescription |
getApplication(UriInfo ui,
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. |
JAXBContext |
getJAXBContext()
Get the default JAXB context associated with the
WadlGenerator
for the Web application. |
boolean |
isWadlGenerationEnabled()
Get WADL generation status.
|
void |
setWadlGenerationEnabled(boolean wadlGenerationEnabled)
Enable/disable WADL generation.
|
ApplicationDescription getApplication(UriInfo ui, boolean detailedWadl)
ApplicationDescription
corresponding to all
the root resource classes, and configure the base URI.ui
- 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.Application getApplication(UriInfo info, Resource resource, boolean detailedWadl)
Application
for a particular resource.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.JAXBContext getJAXBContext()
WadlGenerator
for the Web application.void setWadlGenerationEnabled(boolean wadlGenerationEnabled)
wadlGenerationEnabled
- if wadlGenerationEnabled is true and
ServerProperties.WADL_FEATURE_DISABLE
is false, WADL generation is enabled. In all other cases is disabled.boolean isWadlGenerationEnabled()
ServerProperties.WADL_FEATURE_DISABLE
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.