public class WadlApplicationContextImpl extends Object implements WadlApplicationContext
| Constructor and Description |
|---|
WadlApplicationContextImpl(javax.ws.rs.core.Configuration configuration,
org.glassfish.hk2.api.ServiceLocator serviceLocator) |
| 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,
Resource resource)
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(@Context
javax.ws.rs.core.Configuration configuration,
@Context
org.glassfish.hk2.api.ServiceLocator serviceLocator)
public ApplicationDescription getApplication(javax.ws.rs.core.UriInfo uriInfo)
WadlApplicationContextApplicationDescription corresponding to all
the root resource classes, and configure the base URI.getApplication in interface WadlApplicationContexturiInfo - the URI information from which the base URI is set on the
WADL application.public Application getApplication(javax.ws.rs.core.UriInfo info, Resource resource)
WadlApplicationContextApplication for a particular resource.getApplication in interface WadlApplicationContextinfo - the URI information from which the base URI is set on the
WADL application.resource - the resource to build the Application forpublic JAXBContext getJAXBContext()
WadlApplicationContextWadlGenerator
for the Web application.getJAXBContext in interface WadlApplicationContextpublic void setWadlGenerationEnabled(boolean wadlGenerationEnabled)
WadlApplicationContextsetWadlGenerationEnabled in interface WadlApplicationContextwadlGenerationEnabled - if wadlGenerationEnabled is true and
ServerProperties.WADL_FEATURE_DISABLE
is false, WADL generation is enabled. In all other cases is disabled.public boolean isWadlGenerationEnabled()
WadlApplicationContextisWadlGenerationEnabled in interface WadlApplicationContextServerProperties.WADL_FEATURE_DISABLECopyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.