Interface PostOperation

All Known Implementing Classes:
AbstractPostOperation, AbstractPostOperation, AbstractSlingPostOperation, CheckinOperation, CheckoutOperation, CopyOperation, DeleteOperation, ImportOperation, ModifyOperation, MoveOperation, NopOperation, RestoreOperation, StreamedUploadOperation

public interface PostOperation
The PostOperation interface 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.

The 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 :operation request parameter.

The Sling POST servlet itself provides various operations (see the OPERATION_ constants in the SlingPostConstants interface.These names should not be used by SlingPostOperation service providers.

This interface replaces the old SlingPostOperation service interface adding support for extensible responses by means of the PostResponse interface as well as operation postprocessing.

Implementors of this interface are advised to extend the AbstractPostOperation class to benefit from various processings implemented by that abstract class.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the service registration property indicating the name(s) of the operation provided by the operation implementation.
    static final String
    The name of the Sling POST operation service.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(SlingHttpServletRequest request, PostResponse response, SlingPostProcessor[] processors)
    Executes the operation provided by this service implementation.
  • Field Details

    • SERVICE_NAME

      static final String SERVICE_NAME
      The name of the Sling POST operation service.
      See Also:
    • PROP_OPERATION_NAME

      static final String PROP_OPERATION_NAME
      The name of the service registration property indicating the name(s) of the operation provided by the operation implementation. The value of this service property must be a single String or an array or java.util.Collection of Strings. If multiple strings are defined, the service is registered for all operation names.
      See Also:
  • Method Details