public final class MockSlingScriptHelper extends Object implements org.apache.sling.api.scripting.SlingScriptHelper
SlingScriptHelper
implementation.Constructor and Description |
---|
MockSlingScriptHelper(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
forward(org.apache.sling.api.resource.Resource resource) |
void |
forward(org.apache.sling.api.resource.Resource resource,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
forward(org.apache.sling.api.resource.Resource resource,
String requestDispatcherOptions) |
void |
forward(String path) |
void |
forward(String path,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
forward(String path,
String requestDispatcherOptions) |
org.apache.sling.api.SlingHttpServletRequest |
getRequest() |
org.apache.sling.api.SlingHttpServletResponse |
getResponse() |
org.apache.sling.api.scripting.SlingScript |
getScript() |
<ServiceType> |
getService(Class<ServiceType> serviceType) |
<ServiceType> |
getServices(Class<ServiceType> serviceType,
String filter) |
void |
include(org.apache.sling.api.resource.Resource resource) |
void |
include(org.apache.sling.api.resource.Resource resource,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
include(org.apache.sling.api.resource.Resource resource,
String requestDispatcherOptions) |
void |
include(String path) |
void |
include(String path,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
include(String path,
String requestDispatcherOptions) |
void |
setScript(org.apache.sling.api.scripting.SlingScript script) |
public MockSlingScriptHelper(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, org.osgi.framework.BundleContext bundleContext)
public org.apache.sling.api.SlingHttpServletRequest getRequest()
getRequest
in interface org.apache.sling.api.scripting.SlingScriptHelper
public org.apache.sling.api.SlingHttpServletResponse getResponse()
getResponse
in interface org.apache.sling.api.scripting.SlingScriptHelper
public <ServiceType> ServiceType getService(Class<ServiceType> serviceType)
getService
in interface org.apache.sling.api.scripting.SlingScriptHelper
public <ServiceType> ServiceType[] getServices(Class<ServiceType> serviceType, String filter)
getServices
in interface org.apache.sling.api.scripting.SlingScriptHelper
public org.apache.sling.api.scripting.SlingScript getScript()
getScript
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void setScript(org.apache.sling.api.scripting.SlingScript script)
public void dispose()
dispose
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(String path, String requestDispatcherOptions)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(String path)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(org.apache.sling.api.resource.Resource resource)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(org.apache.sling.api.resource.Resource resource, String requestDispatcherOptions)
forward
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void forward(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(String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(String path, String requestDispatcherOptions)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(String path)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(org.apache.sling.api.resource.Resource resource)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(org.apache.sling.api.resource.Resource resource, String requestDispatcherOptions)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
public void include(org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
include
in interface org.apache.sling.api.scripting.SlingScriptHelper
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.