Interface DataSourceBuilder


  • public interface DataSourceBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addDataSource​(org.apache.sling.api.SlingHttpServletRequest slingRequest, List<DataSourceOption> options)
      Create and add a DataSource to the the HTTP Request.
      void writeDataSourceOptions​(org.apache.sling.api.SlingHttpServletRequest slingRequest, org.apache.sling.api.SlingHttpServletResponse slingResponse)
      Print the DataSourceOptions out in a JSON format to the response.
    • Method Detail

      • addDataSource

        void addDataSource​(org.apache.sling.api.SlingHttpServletRequest slingRequest,
                           List<DataSourceOption> options)
        Create and add a DataSource to the the HTTP Request.
        Parameters:
        slingRequest - the Sling HTTP Servlet Request object to add the DataSource to
        options - the DataSource options
      • writeDataSourceOptions

        void writeDataSourceOptions​(org.apache.sling.api.SlingHttpServletRequest slingRequest,
                                    org.apache.sling.api.SlingHttpServletResponse slingResponse)
                             throws IOException
        Print the DataSourceOptions out in a JSON format to the response.
        Parameters:
        slingRequest - the slingRequest
        slingResponse - the slingResponse
        Throws:
        IOException