Class JavaxToJakartaPostOperation
java.lang.Object
org.apache.sling.servlets.post.impl.wrapper.JavaxToJakartaPostOperation
- All Implemented Interfaces:
JakartaPostOperation
-
Field Summary
Fields inherited from interface org.apache.sling.servlets.post.JakartaPostOperation
PROP_OPERATION_NAME, SERVICE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(org.apache.sling.api.SlingJakartaHttpServletRequest request, JakartaPostResponse response, SlingJakartaPostProcessor[] processors) Executes the operation provided by this service implementation.
-
Constructor Details
-
JavaxToJakartaPostOperation
-
-
Method Details
-
run
public void run(org.apache.sling.api.SlingJakartaHttpServletRequest request, JakartaPostResponse response, SlingJakartaPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException, org.apache.sling.api.resource.PersistenceException Description copied from interface:JakartaPostOperation
Executes the operation provided by this service implementation. This method is called by the Sling POST servlet.- Specified by:
run
in interfaceJakartaPostOperation
- Parameters:
request
- TheSlingJakartaHttpServletRequest
object providing the request input for the operation.response
- TheJakartaPostResponse
into which the operation steps should be recorded.processors
- TheSlingJakartaPostProcessor
services to be called after applying the operation. This may benull
if there are none.- Throws:
PreconditionViolatedPersistenceException
- when a necessary precondition failed, and a retry without further changes doesn't make sense.TemporaryPersistenceException
- when a commit failed, but a retry could make the operation work successfully.org.apache.sling.api.resource.PersistenceException
- when the commit fails
-