Package io.wcm.siteapi.processor
Interface SlingHttpServletProcessor
-
- All Superinterfaces:
io.wcm.sling.commons.caservice.ContextAwareService
,Processor
@ConsumerType public interface SlingHttpServletProcessor extends Processor
Processes Site API requests. Directly writes output toSlingHttpServletResponse
;To be implemented as OSGi service registered to
Processor
with mandatory propertyProcessorConstants.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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
process(@NotNull ProcessorRequestContext context, @NotNull org.apache.sling.api.SlingHttpServletResponse response)
Process request.
-
-
-
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 objectsresponse
- Sling response- Throws:
javax.servlet.ServletException
- Servlet exceptionjava.io.IOException
- I/O exception
-
-