Package io.wcm.siteapi.processor
Interface SlingHttpServletProcessor
- All Superinterfaces:
io.wcm.sling.commons.caservice.ContextAwareService
,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 Summary
Modifier and TypeMethodDescriptionvoid
process
(@NotNull ProcessorRequestContext context, @NotNull org.apache.sling.api.SlingHttpServletResponse response) Process request.
-
Method Details
-
process
void process(@NotNull @NotNull ProcessorRequestContext context, @NotNull @NotNull org.apache.sling.api.SlingHttpServletResponse response) throws javax.servlet.ServletException, IOException Process request.- Parameters:
context
- Request context objectsresponse
- Sling response- Throws:
javax.servlet.ServletException
- Servlet exceptionIOException
- I/O exception
-