| Package | Description |
|---|---|
| org.apache.sling.api.request | |
| org.apache.sling.api.scripting | |
| org.apache.sling.api.servlets | |
| org.apache.sling.api.wrappers |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RequestUtil.handleIfModifiedSince(@NotNull SlingHttpServletRequest req,
@NotNull javax.servlet.http.HttpServletResponse resp)
Checks if the request contains a if-last-modified-since header and if the the
request's underlying resource has a jcr:lastModified property.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull SlingHttpServletRequest |
SlingScriptHelper.getRequest()
Returns the
SlingHttpServletRequest representing the input of the
request. |
@Nullable SlingHttpServletRequest |
SlingBindings.getRequest()
|
| Modifier and Type | Method and Description |
|---|---|
void |
SlingBindings.setRequest(SlingHttpServletRequest request)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
OptingServlet.accepts(@NotNull SlingHttpServletRequest request)
Examines the request, and return
true if this servlet is
willing to handle the request. |
protected void |
SlingAllMethodsServlet.doDelete(@NotNull SlingHttpServletRequest request,
@NotNull SlingHttpServletResponse response)
Called by the
SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP DELETE request. |
protected void |
SlingSafeMethodsServlet.doGeneric(@NotNull SlingHttpServletRequest request,
@NotNull 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(@NotNull SlingHttpServletRequest request,
@NotNull SlingHttpServletResponse response)
Called by the
SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP GET request. |
protected void |
SlingSafeMethodsServlet.doHead(@NotNull SlingHttpServletRequest request,
@NotNull SlingHttpServletResponse response)
Handles the HEAD method.
|
protected void |
SlingSafeMethodsServlet.doOptions(@NotNull SlingHttpServletRequest request,
@NotNull 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(@NotNull SlingHttpServletRequest request,
@NotNull SlingHttpServletResponse response)
Called by the
SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP POST request. |
protected void |
SlingAllMethodsServlet.doPut(@NotNull SlingHttpServletRequest request,
@NotNull SlingHttpServletResponse response)
Called by the
SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP PUT request. |
protected void |
SlingSafeMethodsServlet.doTrace(@NotNull SlingHttpServletRequest request,
@NotNull SlingHttpServletResponse response)
Handles the TRACE method by just returning the list of all
header values in the response body.
|
protected void |
SlingSafeMethodsServlet.handleMethodNotImplemented(@NotNull SlingHttpServletRequest request,
@NotNull SlingHttpServletResponse response)
Helper method which causes an appropriate HTTP response to be sent for an
unhandled HTTP request method.
|
protected boolean |
SlingSafeMethodsServlet.mayService(@NotNull SlingHttpServletRequest request,
@NotNull SlingHttpServletResponse response)
Tries to handle the request by calling a Java method implemented for the
respective HTTP request method.
|
protected boolean |
SlingAllMethodsServlet.mayService(@NotNull SlingHttpServletRequest request,
@NotNull SlingHttpServletResponse response)
Tries to handle the request by calling a Java method implemented for the
respective HTTP request method.
|
@Nullable javax.servlet.Servlet |
ServletResolver.resolveServlet(@NotNull SlingHttpServletRequest request)
Resolves a
javax.servlet.Servlet whose
service method may be used to handle the given
request. |
protected void |
SlingSafeMethodsServlet.service(@NotNull SlingHttpServletRequest request,
@NotNull SlingHttpServletResponse response)
Called by the
SlingSafeMethodsServlet.service(ServletRequest, ServletResponse) method to
handle the HTTP request. |
| Modifier and Type | Class and Description |
|---|---|
class |
SlingHttpServletRequestWrapper
The
SlingHttpServletRequestWrapper class is a default wrapper
class around a SlingHttpServletRequest which may be extended to amend
the functionality of the original request object. |
| Modifier and Type | Method and Description |
|---|---|
SlingHttpServletRequest |
SlingHttpServletRequestWrapper.getSlingRequest()
Return the original
SlingHttpServletRequest object wrapped by
this. |
| Constructor and Description |
|---|
SlingHttpServletRequestWrapper(SlingHttpServletRequest wrappedRequest)
Create a wrapper for the supplied wrappedRequest
|
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.