Interface DataSourceBuilder
-
public interface DataSourceBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDataSource(org.apache.sling.api.SlingHttpServletRequest slingRequest, List<DataSourceOption> options)Create and add a DataSource to the the HTTP Request.voidwriteDataSourceOptions(org.apache.sling.api.SlingHttpServletRequest slingRequest, org.apache.sling.api.SlingHttpServletResponse slingResponse)Print the DataSourceOptions out in a JSON format to the response.
-
-
-
Field Detail
-
TEXT
static final String TEXT
- See Also:
- Constant Field Values
-
VALUE
static final String VALUE
- See Also:
- Constant Field Values
-
-
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 tooptions- the DataSource options
-
writeDataSourceOptions
void writeDataSourceOptions(org.apache.sling.api.SlingHttpServletRequest slingRequest, org.apache.sling.api.SlingHttpServletResponse slingResponse) throws IOExceptionPrint the DataSourceOptions out in a JSON format to the response.- Parameters:
slingRequest- the slingRequestslingResponse- the slingResponse- Throws:
IOException
-
-