public class ServletProcessingContext extends Object implements ProcessingContext
| Constructor and Description |
|---|
ServletProcessingContext(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
org.apache.sling.api.SlingHttpServletResponse originalResponse,
String contentType)
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
The content type of the response.
|
OutputStream |
getOutputStream()
The output stream.
|
org.apache.sling.api.SlingHttpServletRequest |
getRequest()
The current request.
|
org.apache.sling.api.SlingHttpServletResponse |
getResponse()
The current response.
|
PrintWriter |
getWriter()
The writer.
|
public ServletProcessingContext(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
org.apache.sling.api.SlingHttpServletResponse originalResponse,
String contentType)
public String getContentType()
ProcessingContextgetContentType in interface ProcessingContextProcessingContext.getContentType()public org.apache.sling.api.SlingHttpServletRequest getRequest()
ProcessingContextgetRequest in interface ProcessingContextProcessingContext.getRequest()public org.apache.sling.api.SlingHttpServletResponse getResponse()
ProcessingContextgetResponse in interface ProcessingContextProcessingContext.getResponse()public PrintWriter getWriter() throws IOException
ProcessingContextgetWriter in interface ProcessingContextIOExceptionProcessingContext.getWriter()public OutputStream getOutputStream() throws IOException
ProcessingContextgetOutputStream in interface ProcessingContextIOExceptionProcessingContext.getOutputStream()Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.