public interface WadlApplicationContext
Modifier and Type | Method and Description |
---|---|
ApplicationDescription |
getApplication(javax.ws.rs.core.UriInfo ui)
Get a new instance of a
ApplicationDescription corresponding to all
the root resource classes, and configure the base URI. |
Application |
getApplication(javax.ws.rs.core.UriInfo info,
AbstractResource resource,
String path)
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(javax.ws.rs.core.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.Application getApplication(javax.ws.rs.core.UriInfo info, AbstractResource resource, 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 resourceJAXBContext 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 © 2013 Oracle Corporation. All rights reserved.