public class WadlApplicationContextImpl extends java.lang.Object implements WadlApplicationContext
| Constructor and Description |
|---|
WadlApplicationContextImpl(java.util.Set<AbstractResource> rootResources,
WadlGenerator wadlGenerator) |
| Modifier and Type | Method and Description |
|---|---|
Application |
getApplication()
Get a new instance of a JAXB WADL
Application corresponding to all
the root resource classes. |
Application |
getApplication(UriInfo ui)
Get a new instance of a JAXB WADL
Application corresponding to all
the root resource classes, and configure the base URI. |
javax.xml.bind.JAXBContext |
getJAXBContext()
Get the default JAXB context associated with the
WadlGenerator
for the Web application. |
java.lang.String |
getJAXBContextPath()
Get the default JAXB context path to create a
JAXBContext. |
WadlBuilder |
getWadlBuilder()
Get a WADL builder initiated with the configured
WadlGenerator
for the Web application. |
boolean |
isWadlGenerationEnabled()
Get WADL generation status.
|
void |
setWadlGenerationEnabled(boolean wadlGenerationEnabled)
Enable/disable WADL generation.
|
public WadlApplicationContextImpl(java.util.Set<AbstractResource> rootResources, WadlGenerator wadlGenerator)
public Application getApplication()
WadlApplicationContextApplication corresponding to all
the root resource classes.getApplication in interface WadlApplicationContextpublic Application getApplication(UriInfo ui)
WadlApplicationContextApplication corresponding to all
the root resource classes, and configure the base URI.getApplication in interface WadlApplicationContextui - the URI information from which the base URI is set on the
WADL application.public javax.xml.bind.JAXBContext getJAXBContext()
WadlApplicationContextWadlGenerator
for the Web application.getJAXBContext in interface WadlApplicationContextpublic java.lang.String getJAXBContextPath()
WadlApplicationContextJAXBContext.getJAXBContextPath in interface WadlApplicationContextpublic WadlBuilder getWadlBuilder()
WadlApplicationContextWadlGenerator
for the Web application.getWadlBuilder in interface WadlApplicationContextpublic void setWadlGenerationEnabled(boolean wadlGenerationEnabled)
WadlApplicationContextsetWadlGenerationEnabled in interface WadlApplicationContextwadlGenerationEnabled - if wadlGenerationEnabled is true and
ResourceConfig.FEATURE_DISABLE_WADL
is false, WADL generation is enabled. In all other cases is disabled.public boolean isWadlGenerationEnabled()
WadlApplicationContextisWadlGenerationEnabled in interface WadlApplicationContextResourceConfig.FEATURE_DISABLE_WADLCopyright © 2015 Oracle Corporation. All Rights Reserved.