Package org.apache.sling.servlets.post
Class AbstractSlingPostOperation
- java.lang.Object
-
- org.apache.sling.servlets.post.AbstractPostOperation
-
- org.apache.sling.servlets.post.AbstractSlingPostOperation
-
- All Implemented Interfaces:
PostOperation,SlingPostOperation
public abstract class AbstractSlingPostOperation extends AbstractPostOperation implements SlingPostOperation
Deprecated.as of 2.0.8 (Bundle version 2.2.0) and replaced byAbstractPostOperation.TheAbstractSlingPostOperationis the abstract base class implementation of theSlingPostOperationinterface extending the newAbstractPostOperation.This class exists for backwards compatibility. Existing implementations are advised to migrate to the new
AbstractPostOperation.
-
-
Field Summary
-
Fields inherited from interface org.apache.sling.servlets.post.PostOperation
PROP_OPERATION_NAME, SERVICE_NAME
-
Fields inherited from interface org.apache.sling.servlets.post.SlingPostOperation
PROP_OPERATION_NAME, SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description AbstractSlingPostOperation()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidrun(SlingHttpServletRequest request, HtmlResponse response, SlingPostProcessor[] processors)Deprecated.Implementation of theSlingPostOperation.run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])API method calling thePostOperation.run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[])with a proxy around the Sling APIHtmlResponseprovided.-
Methods inherited from class org.apache.sling.servlets.post.AbstractPostOperation
run
-
-
-
-
Method Detail
-
run
public void run(SlingHttpServletRequest request, HtmlResponse response, SlingPostProcessor[] processors) throws org.apache.sling.servlets.post.exceptions.PreconditionViolatedPersistenceException, org.apache.sling.servlets.post.exceptions.TemporaryPersistenceException
Deprecated.Implementation of theSlingPostOperation.run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])API method calling thePostOperation.run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[])with a proxy around the Sling APIHtmlResponseprovided.- Specified by:
runin interfaceSlingPostOperation- Parameters:
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.- Throws:
org.apache.sling.servlets.post.exceptions.PreconditionViolatedPersistenceException- 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.servlets.post.exceptions.TemporaryPersistenceException- May be thrown if an error occurs during the operation, for which it makes sense to retry it with the same parameters
-
-