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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<com.sun.jersey.api.wadl.config.WadlGeneratorDescription>
     
    protected com.sun.jersey.api.wadl.config.WadlGeneratorConfig.WadlGeneratorConfigDescriptionBuilder
    Gets the WadlGeneratorConfigDescriptionBuilder that is used to extend the wadl.
    Gets the JAXRSPluginServlet for api that stores the the original request for the wadl
    protected 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 beans

    Methods inherited from class com.sun.jersey.api.wadl.config.WadlGeneratorConfig

    createWadlGenerator, generator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PentahoWadlGeneratorConfig

      public PentahoWadlGeneratorConfig()
  • Method Details

    • configure

      public List<com.sun.jersey.api.wadl.config.WadlGeneratorDescription> configure()
      Specified by:
      configure in class com.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