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
-
-
Constructor Summary
Constructors Constructor Description PentahoWadlGeneratorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.sun.jersey.api.wadl.config.WadlGeneratorDescription>
configure()
protected com.sun.jersey.api.wadl.config.WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder
getBuilder(String plugin)
Gets the WadlGeneratorConfigDescriptionBuilder that is used to extend the wadl.protected JAXRSPluginServlet
getJAXRSPluginServlet()
Gets the JAXRSPluginServlet for api that stores the the original request for the wadlprotected String
getOriginalRequest()
Gets the original request used to obtain the wadl.protected List<org.pentaho.platform.api.util.IWadlDocumentResource>
getWadlDocumentResources()
Returns the list of the wadl extension declared beans
-
-
-
Method Detail
-
configure
public List<com.sun.jersey.api.wadl.config.WadlGeneratorDescription> configure()
- Specified by:
configure
in classcom.sun.jersey.api.wadl.config.WadlGeneratorConfig
-
getOriginalRequest
protected String 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
protected JAXRSPluginServlet getJAXRSPluginServlet()
Gets the JAXRSPluginServlet for api that stores the the original request for the wadl- Returns:
- JAXRSPluginServlet with the stored original request
-
getWadlDocumentResources
protected List<org.pentaho.platform.api.util.IWadlDocumentResource> getWadlDocumentResources()
Returns the list of the wadl extension declared beans- Returns:
- List
with the declared beans
-
-