Interface DataSourceBuilder
public interface DataSourceBuilder
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataSource(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 Details
-
TEXT
- See Also:
-
VALUE
- See Also:
-
-
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 tooptions- 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 slingRequestslingResponse- the slingResponse- Throws:
IOException
-