@ProviderType
public interface Operation
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_CMD |
static String |
PROP_DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(org.apache.sling.api.SlingHttpServletRequest slingRequest,
Command cmd)
Checks if the Operation should handle the Command/Request.
|
String |
getCmd()
Returns the command operation this Operation is registered for.
|
Collection<Result> |
getResults(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
Command cmd)
Returns a list of Results.
|
static final String PROP_CMD
static final String PROP_DESCRIPTION
boolean accepts(org.apache.sling.api.SlingHttpServletRequest slingRequest,
Command cmd)
slingRequest - the Request objectcmd - the CommandCollection<Result> getResults(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, Command cmd)
request - the Request objectresponse - the Response objectcmd - the CommandJSONExceptionString getCmd()
Copyright © 2013–2020 Adobe. All rights reserved.