public final class MockSlingScriptHelper extends 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,
String requestDispatcherOptions) |
void |
forward(@NotNull String path) |
void |
forward(@NotNull String path,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
forward(@NotNull String path,
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 Class<ServiceType> serviceType) |
<ServiceType> |
getServices(@NotNull Class<ServiceType> serviceType,
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,
String requestDispatcherOptions) |
void |
include(@NotNull String path) |
void |
include(@NotNull String path,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
include(@NotNull String path,
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.SlingScriptHelperpublic <ServiceType> ServiceType getService(@NotNull
@NotNull Class<ServiceType> serviceType)
getService in interface org.apache.sling.api.scripting.SlingScriptHelperpublic <ServiceType> ServiceType[] getServices(@NotNull
@NotNull Class<ServiceType> serviceType,
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.SlingScriptHelperpublic void setScript(@NotNull
@NotNull org.apache.sling.api.scripting.SlingScript script)
public void dispose()
dispose in interface org.apache.sling.api.scripting.SlingScriptHelperpublic void forward(@NotNull
@NotNull String path,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
forward in interface org.apache.sling.api.scripting.SlingScriptHelperpublic void forward(@NotNull
@NotNull String path,
String requestDispatcherOptions)
forward in interface org.apache.sling.api.scripting.SlingScriptHelperpublic void forward(@NotNull
@NotNull String path)
forward in interface org.apache.sling.api.scripting.SlingScriptHelperpublic void forward(@NotNull
@NotNull org.apache.sling.api.resource.Resource resource)
forward in interface org.apache.sling.api.scripting.SlingScriptHelperpublic void forward(@NotNull
@NotNull org.apache.sling.api.resource.Resource resource,
String requestDispatcherOptions)
forward in interface org.apache.sling.api.scripting.SlingScriptHelperpublic 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.SlingScriptHelperpublic void include(@NotNull
@NotNull String path,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
include in interface org.apache.sling.api.scripting.SlingScriptHelperpublic void include(@NotNull
@NotNull String path,
String requestDispatcherOptions)
include in interface org.apache.sling.api.scripting.SlingScriptHelperpublic void include(@NotNull
@NotNull String path)
include in interface org.apache.sling.api.scripting.SlingScriptHelperpublic void include(@NotNull
@NotNull org.apache.sling.api.resource.Resource resource)
include in interface org.apache.sling.api.scripting.SlingScriptHelperpublic void include(@NotNull
@NotNull org.apache.sling.api.resource.Resource resource,
String requestDispatcherOptions)
include in interface org.apache.sling.api.scripting.SlingScriptHelperpublic 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.SlingScriptHelperCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.