public final class MockSlingScriptHelper
extends java.lang.Object
implements org.apache.sling.api.scripting.SlingScriptHelper
SlingScriptHelper
implementation.Constructor and Description |
---|
MockSlingScriptHelper(@NotNull org.apache.sling.api.SlingHttpServletRequest request,
@NotNull org.apache.sling.api.SlingHttpServletResponse response,
@NotNull org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
forward(@NotNull org.apache.sling.api.resource.Resource resource) |
void |
forward(@NotNull org.apache.sling.api.resource.Resource resource,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
forward(@NotNull org.apache.sling.api.resource.Resource resource,
java.lang.String requestDispatcherOptions) |
void |
forward(@NotNull java.lang.String path) |
void |
forward(@NotNull java.lang.String path,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
forward(@NotNull java.lang.String path,
java.lang.String requestDispatcherOptions) |
@NotNull org.apache.sling.api.SlingHttpServletRequest |
getRequest() |
@NotNull org.apache.sling.api.SlingHttpServletResponse |
getResponse() |
@NotNull org.apache.sling.api.scripting.SlingScript |
getScript() |
<ServiceType> |
getService(@NotNull java.lang.Class<ServiceType> serviceType) |
<ServiceType> |
getServices(@NotNull java.lang.Class<ServiceType> serviceType,
java.lang.String filter) |
void |
include(@NotNull org.apache.sling.api.resource.Resource resource) |
void |
include(@NotNull org.apache.sling.api.resource.Resource resource,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
include(@NotNull org.apache.sling.api.resource.Resource resource,
java.lang.String requestDispatcherOptions) |
void |
include(@NotNull java.lang.String path) |
void |
include(@NotNull java.lang.String path,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
include(@NotNull java.lang.String path,
java.lang.String requestDispatcherOptions) |
void |
setScript(@NotNull org.apache.sling.api.scripting.SlingScript script) |
public MockSlingScriptHelper(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull @NotNull org.apache.sling.api.SlingHttpServletResponse response, @NotNull @NotNull org.osgi.framework.BundleContext bundleContext)
@NotNull public @NotNull org.apache.sling.api.SlingHttpServletRequest getRequest()
getRequest
in interface org.apache.sling.api.scripting.SlingScriptHelper
@NotNull public @NotNull org.apache.sling.api.SlingHttpServletResponse getResponse()
getResponse
in interface org.apache.sling.api.scripting.SlingScriptHelper
public <ServiceType> ServiceType getService(@NotNull @NotNull java.lang.Class<ServiceType> serviceType)
getService
in interface org.apache.sling.api.scripting.SlingScriptHelper
public <ServiceType> ServiceType[] getServices(@NotNull @NotNull java.lang.Class<ServiceType> serviceType, java.lang.String filter)
getServices
in interface org.apache.sling.api.scripting.SlingScriptHelper
@NotNull public @NotNull org.apache.sling.api.scripting.SlingScript getScript()
getScript
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void setScript(@NotNull @NotNull org.apache.sling.api.scripting.SlingScript script)
public void dispose()
dispose
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(@NotNull @NotNull java.lang.String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(@NotNull @NotNull java.lang.String path, java.lang.String requestDispatcherOptions)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(@NotNull @NotNull java.lang.String path)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(@NotNull @NotNull org.apache.sling.api.resource.Resource resource)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, java.lang.String requestDispatcherOptions)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(@NotNull @NotNull java.lang.String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(@NotNull @NotNull java.lang.String path, java.lang.String requestDispatcherOptions)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(@NotNull @NotNull java.lang.String path)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(@NotNull @NotNull org.apache.sling.api.resource.Resource resource)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, java.lang.String requestDispatcherOptions)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
Copyright © 2014–2021 wcm.io. All rights reserved.