public class ServletInternalRequest extends InternalRequest
SlingInternalRequest
variant, but less faithful to the way Sling processes HTTP
requests.Modifier and Type | Field and Description |
---|---|
protected org.apache.sling.api.servlets.ServletResolver |
servletResolver |
contentType, DEFAULT_METHOD, extension, log, MDC_KEY, path, requestMethod, resourceResolver, selectorString
Constructor and Description |
---|
ServletInternalRequest(@NotNull org.apache.sling.api.servlets.ServletResolver servletResolver,
@NotNull org.apache.sling.api.resource.Resource resource)
Setup an internal request to the supplied Resource, using
the supplied servlet/script resolver.
|
Modifier and Type | Method and Description |
---|---|
protected void |
delegateExecute(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
org.apache.sling.api.resource.ResourceResolver resourceResolver)
Execute the supplied Request
|
protected org.apache.sling.api.resource.Resource |
getExecutionResource()
Provide the Resource to use to execute the request
|
java.lang.String |
toString()
Return essential request info, used to set the logging MDC
|
assertRequestExecuted, checkNotNull, checkNotNull, checkResponseContentType, checkStatus, execute, getResponse, getResponseAsString, getStatus, withBody, withContentType, withExtension, withParameter, withParameters, withRequestMethod, withSelectors
protected final org.apache.sling.api.servlets.ServletResolver servletResolver
public ServletInternalRequest(@NotNull @NotNull org.apache.sling.api.servlets.ServletResolver servletResolver, @NotNull @NotNull org.apache.sling.api.resource.Resource resource)
public java.lang.String toString()
toString
in class java.lang.Object
protected org.apache.sling.api.resource.Resource getExecutionResource()
InternalRequest
getExecutionResource
in class InternalRequest
protected void delegateExecute(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws javax.servlet.ServletException, java.io.IOException
InternalRequest
delegateExecute
in class InternalRequest
javax.servlet.ServletException
java.io.IOException
Copyright © 2014–2021 wcm.io. All rights reserved.