public interface WadlApplicationContext
Modifier and Type | Method and Description |
---|---|
ApplicationDescription |
getApplication(UriInfo ui)
Get a new instance of a
ApplicationDescription corresponding to all
the root resource classes, and configure the base URI. |
com.sun.research.ws.wadl.Application |
getApplication(UriInfo info,
AbstractResource resource,
java.lang.String path)
Get a new instance of
Application for a particular resource |
javax.xml.bind.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)
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.com.sun.research.ws.wadl.Application getApplication(UriInfo info, AbstractResource resource, java.lang.String path)
Application
for a particular resourceinfo
- the URI information from which the base URI is set on the
WADL application.resource
- the resource to build the Application forpath
- the path to this resourcejavax.xml.bind.JAXBContext getJAXBContext()
WadlGenerator
for the Web application.void setWadlGenerationEnabled(boolean wadlGenerationEnabled)
wadlGenerationEnabled
- if wadlGenerationEnabled is true and
ResourceConfig.FEATURE_DISABLE_WADL
is false, WADL generation is enabled. In all other cases is disabled.boolean isWadlGenerationEnabled()
ResourceConfig.FEATURE_DISABLE_WADL
Copyright © 2016 Oracle Corporation. All Rights Reserved.