Package org.pentaho.platform.web.servlet
Class PentahoWadlGeneratorConfig
java.lang.Object
com.sun.jersey.api.wadl.config.WadlGeneratorConfig
org.pentaho.platform.web.servlet.PentahoWadlGeneratorConfig
public class PentahoWadlGeneratorConfig
extends com.sun.jersey.api.wadl.config.WadlGeneratorConfig
The wadl configurator class that extends in run time the wadl pointing to a file that adds pre-computed information
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.jersey.api.wadl.config.WadlGeneratorConfig
com.sun.jersey.api.wadl.config.WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<com.sun.jersey.api.wadl.config.WadlGeneratorDescription>
protected com.sun.jersey.api.wadl.config.WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder
getBuilder
(String plugin) Gets the WadlGeneratorConfigDescriptionBuilder that is used to extend the wadl.protected JAXRSPluginServlet
Gets the JAXRSPluginServlet for api that stores the the original request for the wadlprotected String
Gets the original request used to obtain the wadl.protected List<org.pentaho.platform.api.util.IWadlDocumentResource>
Returns the list of the wadl extension declared beansMethods inherited from class com.sun.jersey.api.wadl.config.WadlGeneratorConfig
createWadlGenerator, generator
-
Constructor Details
-
PentahoWadlGeneratorConfig
public PentahoWadlGeneratorConfig()
-
-
Method Details
-
configure
- Specified by:
configure
in classcom.sun.jersey.api.wadl.config.WadlGeneratorConfig
-
getOriginalRequest
Gets the original request used to obtain the wadl. The wadl request is for plugins is changed so we need to retrieve its original form to be able to get the plugin and point to the right wadl extension file.- Returns:
- String with the original url request
-
getBuilder
protected com.sun.jersey.api.wadl.config.WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder getBuilder(String plugin) Gets the WadlGeneratorConfigDescriptionBuilder that is used to extend the wadl. It was a property pointing to the InputStream of the file- Parameters:
plugin
- String with the plugin that is requesting the wadl extension- Returns:
- WadlGeneratorConfigDescriptionBuilder that is used to extend the wadl.
-
getJAXRSPluginServlet
Gets the JAXRSPluginServlet for api that stores the the original request for the wadl- Returns:
- JAXRSPluginServlet with the stored original request
-
getWadlDocumentResources
Returns the list of the wadl extension declared beans- Returns:
- List
with the declared beans
-