Interface DataSourceBuilder


public interface DataSourceBuilder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Method Summary

    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.
  • Field Details

  • Method Details

    • 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