Package | Description |
---|---|
org.apache.sling.api.request | |
org.apache.sling.api.request.builder | |
org.apache.sling.api.scripting | |
org.apache.sling.api.servlets | |
org.apache.sling.api.uri | |
org.apache.sling.api.wrappers | |
org.apache.sling.caconfig.spi |
SPI for applications hooking into the configuration infrastructure for parameterizing and customizing.
|
org.apache.sling.engine.servlets | |
org.apache.sling.i18n | |
org.apache.sling.jcr.jackrabbit.accessmanager.post | |
org.apache.sling.models.factory | |
org.apache.sling.scripting.core | |
org.apache.sling.scripting.sightly.engine |
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.
|
org.apache.sling.servlets.post |
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 |
SlingHttpServletRequestBuilder.build()
Builds the request.
|
Modifier and Type | Method and Description |
---|---|
@NotNull SlingHttpServletRequestBuilder |
SlingHttpServletRequestBuilder.useRequestDispatcherFrom(@NotNull SlingHttpServletRequest request)
Uses the request dispatcher from the provided request.
|
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 | Method and Description |
---|---|
static @NotNull SlingUriBuilder |
SlingUriBuilder.createFrom(@NotNull SlingHttpServletRequest request)
Creates a builder from a 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
|
Modifier and Type | Method and Description |
---|---|
@Nullable Resource |
ConfigurationInjectResourceDetectionStrategy.detectResource(@NotNull SlingHttpServletRequest request)
Detects the resource that is associated with the given request.
|
Modifier and Type | Method and Description |
---|---|
void |
ErrorHandler.handleError(int status,
java.lang.String message,
SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called to render a response for a HTTP status code.
|
void |
ErrorHandler.handleError(java.lang.Throwable throwable,
SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called to render a response for an uncaught
Throwable . |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.Locale> |
LocaleResolver.resolveLocale(SlingHttpServletRequest request)
Deprecated.
Return a non-
null but possiby empty list of
Locale instances to consider for localization of the current
request. |
java.util.List<java.util.Locale> |
DefaultLocaleResolver.resolveLocale(SlingHttpServletRequest request)
Return the Locales provided by the
ServletRequest.getLocales() method collected in a
List . |
Modifier and Type | Method and Description |
---|---|
protected AbstractPostResponse |
AbstractAccessPostServlet.createHtmlResponse(SlingHttpServletRequest req)
Deprecated.
|
protected void |
AbstractGetAclServlet.doGet(SlingHttpServletRequest request,
SlingHttpServletResponse response) |
protected void |
AbstractAccessPostServlet.doPost(SlingHttpServletRequest request,
SlingHttpServletResponse httpResponse) |
protected java.lang.String |
AbstractAccessPostServlet.externalizePath(SlingHttpServletRequest request,
java.lang.String path)
Returns an external form of the given path prepending the context path
and appending a display extension.
|
protected java.lang.String |
AbstractAccessPostServlet.getItemPath(SlingHttpServletRequest request)
Returns the path of the resource of the request as the item path.
|
protected void |
AbstractAccessPostServlet.handleOperation(SlingHttpServletRequest request,
AbstractPostResponse response,
java.util.List<Modification> changes)
Deprecated.
|
protected void |
ModifyAceServlet.handleOperation(SlingHttpServletRequest request,
PostResponse response,
java.util.List<Modification> changes) |
protected void |
DeleteAcesServlet.handleOperation(SlingHttpServletRequest request,
PostResponse htmlResponse,
java.util.List<Modification> changes) |
protected abstract void |
AbstractAccessPostServlet.handleOperation(SlingHttpServletRequest request,
PostResponse response,
java.util.List<Modification> changes)
Extending Servlet should implement this operation to do the work
|
protected boolean |
AbstractAccessPostServlet.isSetStatus(SlingHttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
<T> T |
ModelFactory.exportModelForRequest(@NotNull SlingHttpServletRequest request,
@NotNull java.lang.String exporterName,
@NotNull java.lang.Class<T> targetClass,
@NotNull java.util.Map<java.lang.String,java.lang.String> options)
Export the model object registered to the request's resource's type using the defined target class using the named exporter.
|
@NotNull java.lang.Object |
ModelFactory.getModelFromRequest(@NotNull SlingHttpServletRequest request)
Obtain an adapted model class based on the resource type of the request's resource.
|
<T> T |
ModelFactory.getModelFromWrappedRequest(@NotNull SlingHttpServletRequest request,
@NotNull Resource resource,
@NotNull java.lang.Class<T> targetClass)
Create a wrapped request object with the specified resource and (try to) adapt the request object into the specified class.
|
boolean |
ModelFactory.isModelAvailableForRequest(@NotNull SlingHttpServletRequest request)
Determine is a model class is available for the request's resource's resource type.
|
Modifier and Type | Method and Description |
---|---|
SlingHttpServletRequest |
ScriptHelper.getRequest() |
Constructor and Description |
---|
ScriptHelper(org.osgi.framework.BundleContext ctx,
SlingScript script,
SlingHttpServletRequest request,
SlingHttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
static Resource |
ResourceResolution.getResourceForRequest(ResourceResolver resolver,
SlingHttpServletRequest request)
Resolves the resource accessed by a
request . |
Modifier and Type | Method and Description |
---|---|
PostResponse |
PostResponseCreator.createPostResponse(SlingHttpServletRequest req) |
PostResponse |
PostResponseWithErrorHandling.createPostResponse(SlingHttpServletRequest request)
Deprecated.
|
protected abstract void |
AbstractSlingPostOperation.doRun(SlingHttpServletRequest request,
HtmlResponse response,
java.util.List<Modification> changes)
Deprecated.
|
protected void |
AbstractSlingPostOperation.doRun(SlingHttpServletRequest request,
PostResponse response,
java.util.List<Modification> changes)
Deprecated.
Implementation of the
AbstractPostOperation.doRun(SlingHttpServletRequest, PostResponse, List)
method calling our own
AbstractSlingPostOperation.run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])
meethod with a proxy for the Sling API HtmlResponse . |
protected abstract void |
AbstractPostOperation.doRun(SlingHttpServletRequest request,
PostResponse response,
java.util.List<Modification> changes)
Deprecated.
Actually performs the desired operation filling progress into the
changes list and preparing and further information in the
response . |
protected java.lang.String |
AbstractPostOperation.externalizePath(SlingHttpServletRequest request,
java.lang.String path)
Deprecated.
Returns an external form of the given path prepending the context path
and appending a display extension.
|
protected java.util.Iterator<Resource> |
AbstractPostOperation.getApplyToResources(SlingHttpServletRequest request)
Deprecated.
Returns an iterator on
Resource instances addressed in the
SlingPostConstants.RP_APPLY_TO request parameter. |
protected java.lang.String |
AbstractPostOperation.getItemPath(SlingHttpServletRequest request)
Deprecated.
Returns the path of the resource of the request as the item path.
|
java.lang.String |
NodeNameGenerator.getNodeName(SlingHttpServletRequest request,
java.lang.String parentPath,
boolean requirePrefix,
NodeNameGenerator defaultNodeNameGenerator)
Get the to-be-created node name from the request.
|
protected VersioningConfiguration |
AbstractPostOperation.getVersioningConfiguration(SlingHttpServletRequest request)
Deprecated.
Get the versioning configuration.
|
protected boolean |
PostResponseWithErrorHandling.isSendError(SlingHttpServletRequest request)
Deprecated.
|
protected boolean |
AbstractPostOperation.isSessionSaveRequired(javax.jcr.Session session,
SlingHttpServletRequest request)
Deprecated.
Check whether commit to the resource resolver should be called.
|
protected boolean |
AbstractPostOperation.isSkipCheckin(SlingHttpServletRequest request)
Deprecated.
Check if checkin should be skipped
|
protected boolean |
AbstractPostOperation.isSkipSessionHandling(SlingHttpServletRequest request)
Deprecated.
Check whether changes should be written back
|
protected void |
AbstractPostOperation.orderNode(SlingHttpServletRequest request,
javax.jcr.Item item,
java.util.List<Modification> changes)
Deprecated.
Orders the given node according to the specified command.
|
void |
SlingPostProcessor.process(SlingHttpServletRequest request,
java.util.List<Modification> changes)
Process the current request.
|
protected boolean |
AbstractPostOperation.requireItemPathPrefix(SlingHttpServletRequest request)
Deprecated.
Returns true if any of the request parameters starts with
./ . |
void |
AbstractSlingPostOperation.run(SlingHttpServletRequest request,
HtmlResponse response,
SlingPostProcessor[] processors)
Deprecated.
Implementation of the
SlingPostOperation.run(SlingHttpServletRequest, HtmlResponse, SlingPostProcessor[])
API method calling the
PostOperation.run(SlingHttpServletRequest, PostResponse, SlingPostProcessor[])
with a proxy around the Sling API HtmlResponse provided. |
void |
SlingPostOperation.run(SlingHttpServletRequest request,
HtmlResponse response,
SlingPostProcessor[] processors)
Deprecated.
Executes the operation provided by this service implementation.
|
void |
AbstractPostOperation.run(SlingHttpServletRequest request,
PostResponse response,
SlingPostProcessor[] processors)
Deprecated.
Prepares and finalizes the actual operation.
|
void |
PostOperation.run(SlingHttpServletRequest request,
PostResponse response,
SlingPostProcessor[] processors)
Executes the operation provided by this service implementation.
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.