public class WadlApplicationContextImpl extends Object implements WadlApplicationContext
Constructor and Description |
---|
WadlApplicationContextImpl(Set<AbstractResource> rootResources,
ResourceConfig resourceConfig) |
Modifier and Type | Method and Description |
---|---|
ApplicationDescription |
getApplication(javax.ws.rs.core.UriInfo uriInfo)
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.
|
public WadlApplicationContextImpl(Set<AbstractResource> rootResources, ResourceConfig resourceConfig)
public ApplicationDescription getApplication(javax.ws.rs.core.UriInfo uriInfo)
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.public Application getApplication(javax.ws.rs.core.UriInfo info, AbstractResource resource, String path)
WadlApplicationContext
Application
for a particular resourcegetApplication
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 forpath
- the path to this resourcepublic 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
ResourceConfig.FEATURE_DISABLE_WADL
is false, WADL generation is enabled. In all other cases is disabled.public boolean isWadlGenerationEnabled()
WadlApplicationContext
isWadlGenerationEnabled
in interface WadlApplicationContext
ResourceConfig.FEATURE_DISABLE_WADL
Copyright © 2013 Oracle Corporation. All rights reserved.