public interface PostOperation
PostOperationinterface defines the service API to be implemented by service providers extending the Sling POST servlet. Service providers may register OSGi services of this type to be used by the Sling default POST servlet to handle specific operations.
PostOperation service must be registered with a
PROP_OPERATION_NAME registration property giving the name(s) of the
operations supported by the service. The names will be used to find the
actual operation from the
The Sling POST servlet itself provides various operations (see the
OPERATION_ constants in the
interface.These names should not be used by
Implementors of this interface are advised to extend the
AbstractPostOperation class to benefit from various precossings
implemented by that abstract class.
|Modifier and Type||Field and Description|
The name of the service registration property indicating the name(s) of the operation provided by the operation implementation.
The name of the Sling POST operation service.
static final String SERVICE_NAME
static final String PROP_OPERATION_NAME
java.util.Collectionof Strings. If multiple strings are defined, the service is registered for all operation names.
void run(SlingHttpServletRequest request, PostResponse response, SlingPostProcessor processors)
SlingHttpServletRequestobject providing the request input for the operation.
HtmlResponseinto which the operation steps should be recorded.
SlingPostProcessorservices to be called after applying the operation. This may be
nullif there are none.
ResourceNotFoundException- May be thrown if the operation requires an existing request resource. If this exception is thrown the Sling POST servlet sends back a
404/NOT FOUNDresponse to the client.
SlingException- May be thrown if an error occurrs running the operation.
"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"