Class NopOperation
java.lang.Object
org.apache.sling.servlets.post.impl.operations.NopOperation
- All Implemented Interfaces:
PostOperation
The
NopOperation
class implements no operation at all. It just
sets the response status according to the :nopstatus parameter if
availables. Otherwise the status is set as 200/OK.-
Field Summary
Fields inherited from interface org.apache.sling.servlets.post.PostOperation
PROP_OPERATION_NAME, SERVICE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(SlingHttpServletRequest request, PostResponse response, SlingPostProcessor[] processors) Executes the operation provided by this service implementation.
-
Constructor Details
-
NopOperation
public NopOperation()
-
-
Method Details
-
run
public void run(SlingHttpServletRequest request, PostResponse response, SlingPostProcessor[] processors) throws PreconditionViolatedPersistenceException, TemporaryPersistenceException Description copied from interface:PostOperation
Executes the operation provided by this service implementation. This method is called by the Sling POST servlet.- Specified by:
run
in interfacePostOperation
- Parameters:
request
- TheSlingHttpServletRequest
object providing the request input for the operation.response
- TheHtmlResponse
into which the operation steps should be recorded.processors
- TheSlingPostProcessor
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.
-