public abstract class AbstractOptionsDataSourceServlet extends AbstractComponentServlet
@SlingServlet(resourceTypes = "projectname/datasources/colors")
annotation. The
resource type attribute is an arbitrary relative path that can be referenced by dialog elements using the data
source. The implementing class determines how these options are retrieved from the repository (or external provider,
such as a web service).DEFAULT_DATE_FORMAT
Constructor and Description |
---|
AbstractOptionsDataSourceServlet() |
Modifier and Type | Method and Description |
---|---|
protected abstract List<Option> |
getOptions(ComponentServletRequest request)
Get a list of "options" (text/value pairs) for rendering in an authoring dialog.
|
protected void |
processGet(ComponentServletRequest request)
Process a GET request.
|
doDelete, doGet, doPost, doPut, processDelete, processPost, processPut
writeJsonResponse, writeJsonResponse, writeJsonResponse, writeJsonResponse
getAllowedRequestMethods, isMethodValid, mayService
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
protected abstract List<Option> getOptions(ComponentServletRequest request)
request
- component servlet requestprotected final void processGet(ComponentServletRequest request) throws javax.servlet.ServletException, IOException
AbstractComponentServlet
processGet
in class AbstractComponentServlet
request
- component requestjavax.servlet.ServletException
- if servlet error occursIOException
- if I/O error occursCopyright © 2019 ICF Next. All rights reserved.