Package org.apache.sling.servlets.post
Schnittstelle SlingPostOperation
- Alle bekannten Implementierungsklassen:
AbstractSlingPostOperation
Veraltet.
The
SlingPostOperation interface defines the service API to be
implemented by service providers extending the Sling default POST servlet.
Service providers may register OSGi services of this type to be used by the
Sling default POST servlet to handle specific operations.
The SlingPostOperation 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 :operation request parameter.
The Sling default POST servlet defines the copy,
move and delete operation names. These names should
not be used by SlingPostOperation service providers.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringVeraltet.The name of the service registration property indicating the name(s) of the operation provided by the operation implementation (value is "sling.post.operation").static final StringVeraltet.The name of the Sling POST operation service. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidrun(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.servlets.HtmlResponse response, SlingPostProcessor[] processors) Veraltet.Executes the operation provided by this service implementation.
-
Felddetails
-
SERVICE_NAME
Veraltet.The name of the Sling POST operation service.- Siehe auch:
-
PROP_OPERATION_NAME
Veraltet.The name of the service registration property indicating the name(s) of the operation provided by the operation implementation (value is "sling.post.operation"). The value of this service property must be a single String or an array orjava.util.Collectionof Strings. If multiple strings are defined, the service is registered for all operation names.- Siehe auch:
-
-
Methodendetails
-
run
void run(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.servlets.HtmlResponse response, SlingPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException Veraltet.Executes the operation provided by this service implementation. This method is called by the Sling default POST servlet.- Parameter:
request- TheSlingHttpServletRequestobject providing the request input for the operation.response- TheHtmlResponseinto which the operation steps should be recorded.processors- TheSlingPostProcessorservices to be called after applying the operation. This may benullif there are none.- Löst aus:
TemporaryPersistenceException- May be thrown if an error occurs during the operation, for which it makes sense to retry it with the same parametersPreconditionViolatedPersistenceException- May be thrown if an error occurrs during the operation because preconditions are not fulfilled. If the operation should be repeated with the same parameters, it will fail again.org.apache.sling.api.resource.ResourceNotFoundException- May be thrown if the operation requires an existing request resource. If this exception is thrown the Sling default POST servlet sends back a404/NOT FOUNDresponse to the client.org.apache.sling.api.SlingException- May be thrown if an error occurrs running the operation.
-
PostOperation.