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()
ProcessingContext
getContentType
in interface ProcessingContext
ProcessingContext.getContentType()
public org.apache.sling.api.SlingHttpServletRequest getRequest()
ProcessingContext
getRequest
in interface ProcessingContext
ProcessingContext.getRequest()
public org.apache.sling.api.SlingHttpServletResponse getResponse()
ProcessingContext
getResponse
in interface ProcessingContext
ProcessingContext.getResponse()
public PrintWriter getWriter() throws IOException
ProcessingContext
getWriter
in interface ProcessingContext
IOException
ProcessingContext.getWriter()
public OutputStream getOutputStream() throws IOException
ProcessingContext
getOutputStream
in interface ProcessingContext
IOException
ProcessingContext.getOutputStream()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.