public class WadlApplicationContextImpl extends Object implements WadlApplicationContext
| Modifier and Type | Field and Description |
|---|---|
static JAXBElement |
extendedElement |
| Constructor and Description |
|---|
WadlApplicationContextImpl(Configuration configuration,
org.glassfish.hk2.api.ServiceLocator serviceLocator) |
| Modifier and Type | Method and Description |
|---|---|
ApplicationDescription |
getApplication(UriInfo uriInfo,
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.
|
public static final JAXBElement extendedElement
public WadlApplicationContextImpl(@Context Configuration configuration, @Context org.glassfish.hk2.api.ServiceLocator serviceLocator)
public ApplicationDescription getApplication(UriInfo uriInfo, boolean detailedWadl)
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(UriInfo info, Resource resource, boolean detailedWadl)
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-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.