Package org.glassfish.jersey.server.wadl
Interface WadlApplicationContext
-
- All Known Implementing Classes:
WadlApplicationContextImpl
public interface WadlApplicationContextA context to obtain WADL-based information.- Author:
- Paul Sandoz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationDescriptiongetApplication(UriInfo ui, boolean detailedWadl)Get a new instance of aApplicationDescriptioncorresponding to all the root resource classes, and configure the base URI.ApplicationgetApplication(UriInfo info, Resource resource, boolean detailedWadl)Get a new instance ofApplicationfor a particular resource.jakarta.xml.bind.JAXBContextgetJAXBContext()Get the default JAXB context associated with theWadlGeneratorfor the Web application.booleanisWadlGenerationEnabled()Get WADL generation status.voidsetWadlGenerationEnabled(boolean wadlGenerationEnabled)Enable/disable WADL generation.
-
-
-
Method Detail
-
getApplication
ApplicationDescription getApplication(UriInfo ui, boolean detailedWadl)
Get a new instance of aApplicationDescriptioncorresponding to all the root resource classes, and configure the base URI.- Parameters:
ui- the URI information from which the base URI is set on the WADL application.detailedWadl- flag indicating whether or not detailed WADL should be generated.- Returns:
- the application description, the contents may be modified.
-
getApplication
Application getApplication(UriInfo info, Resource resource, boolean detailedWadl)
Get a new instance ofApplicationfor a particular resource.- Parameters:
info- the URI information from which the base URI is set on the WADL application.resource- the resource to build the Application fordetailedWadl- flag indicating whether or not detailed WADL should be generated.- Returns:
- the application for this resource
-
getJAXBContext
jakarta.xml.bind.JAXBContext getJAXBContext()
Get the default JAXB context associated with theWadlGeneratorfor the Web application.- Returns:
- the default JAXB context.
-
setWadlGenerationEnabled
void setWadlGenerationEnabled(boolean wadlGenerationEnabled)
Enable/disable WADL generation.- Parameters:
wadlGenerationEnabled- if wadlGenerationEnabled is true andServerProperties.WADL_FEATURE_DISABLEis false, WADL generation is enabled. In all other cases is disabled.
-
isWadlGenerationEnabled
boolean isWadlGenerationEnabled()
Get WADL generation status.- Returns:
- true when WADL generation is enabled. Does not take
ServerProperties.WADL_FEATURE_DISABLE
-
-