Interface SlingHttpServletProcessor

  • All Superinterfaces:
    io.wcm.sling.commons.caservice.ContextAwareService, Processor

    @ConsumerType
    public interface SlingHttpServletProcessor
    extends Processor
    Processes Site API requests. Directly writes output to SlingHttpServletResponse;

    To be implemented as OSGi service registered to Processor with mandatory property ProcessorConstants.PROPERTY_SUFFIX to find the processor matching the current request.

    This is a "lowlevel" interface if you need full control about request and response processes. Most processors should extends the "high-level" JsonObjectProcessor class instead.

    • Field Summary

      • Fields inherited from interface io.wcm.sling.commons.caservice.ContextAwareService

        PROPERTY_ACCEPTS_CONTEXT_PATH_EMPTY, PROPERTY_CONTEXT_PATH_BLACKLIST_PATTERN, PROPERTY_CONTEXT_PATH_PATTERN
    • Method Detail

      • process

        void process​(@NotNull
                     @NotNull ProcessorRequestContext context,
                     @NotNull
                     @NotNull org.apache.sling.api.SlingHttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
        Process request.
        Parameters:
        context - Request context objects
        response - Sling response
        Throws:
        javax.servlet.ServletException - Servlet exception
        java.io.IOException - I/O exception