Modifier and Type | Method and Description |
---|---|
SlingHttpServletResponse |
SlingScriptHelper.getResponse()
Returns the
SlingHttpServletResponse representing the output of
the request. |
SlingHttpServletResponse |
SlingBindings.getResponse()
|
Modifier and Type | Method and Description |
---|---|
void |
SlingBindings.setResponse(SlingHttpServletResponse response)
|
Modifier and Type | Method and Description |
---|---|
protected void |
SlingAllMethodsServlet.doDelete(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called by the
SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP DELETE request. |
protected void |
SlingSafeMethodsServlet.doGeneric(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called by the
SlingSafeMethodsServlet.service(SlingHttpServletRequest, SlingHttpServletResponse)
method to handle a request for an HTTP method, which is not known and
handled by this class or its extension. |
protected void |
SlingSafeMethodsServlet.doGet(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called by the
SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP GET request. |
protected void |
SlingSafeMethodsServlet.doHead(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Handles the HEAD method.
|
protected void |
SlingSafeMethodsServlet.doOptions(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Handles the OPTIONS method by setting the HTTP
Allow header on the response depending on the methods
declared in this class. |
protected void |
SlingAllMethodsServlet.doPost(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called by the
SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP POST request. |
protected void |
SlingAllMethodsServlet.doPut(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called by the
SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP PUT request. |
protected void |
SlingSafeMethodsServlet.doTrace(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Handles the TRACE method by just returning the list of all
header values in the response body.
|
protected void |
SlingSafeMethodsServlet.handleMethodNotImplemented(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Helper method which causes an appropriate HTTP response to be sent for an
unhandled HTTP request method.
|
protected boolean |
SlingSafeMethodsServlet.mayService(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Tries to handle the request by calling a Java method implemented for the
respective HTTP request method.
|
protected boolean |
SlingAllMethodsServlet.mayService(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Tries to handle the request by calling a Java method implemented for the
respective HTTP request method.
|
protected void |
SlingSafeMethodsServlet.service(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called by the
SlingSafeMethodsServlet.service(ServletRequest, ServletResponse) method to
handle the HTTP request. |
Modifier and Type | Class and Description |
---|---|
class |
SlingHttpServletResponseWrapper
The
SlingHttpServletResponseWrapper class is a default wrapper
class around a SlingHttpServletResponse which may be extended to
amend the functionality of the original response object. |
Modifier and Type | Method and Description |
---|---|
SlingHttpServletResponse |
SlingHttpServletResponseWrapper.getSlingResponse()
Return the original
SlingHttpServletResponse object wrapped by
this. |
Constructor and Description |
---|
SlingHttpServletResponseWrapper(SlingHttpServletResponse wrappedResponse)
Create a wrapper for the supplied wrappedRequest
|
Modifier and Type | Method and Description |
---|---|
void |
ErrorHandler.handleError(int status,
String message,
SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called to render a response for a HTTP status code.
|
void |
ErrorHandler.handleError(Throwable throwable,
SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called to render a response for an uncaught
Throwable . |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractGetAclServlet.doGet(SlingHttpServletRequest request,
SlingHttpServletResponse response) |
protected void |
AbstractAccessPostServlet.doPost(SlingHttpServletRequest request,
SlingHttpServletResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
SlingHttpServletResponse |
ScriptHelper.getResponse() |
Constructor and Description |
---|
ScriptHelper(org.osgi.framework.BundleContext ctx,
SlingScript script,
SlingHttpServletRequest request,
SlingHttpServletResponse response) |
Copyright © 2015 The Apache Software Foundation. All rights reserved.