Class MockSlingScriptHelper
- java.lang.Object
-
- org.apache.sling.testing.mock.sling.MockSlingScriptHelper
-
- All Implemented Interfaces:
org.apache.sling.api.scripting.SlingScriptHelper
public final class MockSlingScriptHelper extends Object implements org.apache.sling.api.scripting.SlingScriptHelper
MockSlingScriptHelperimplementation.
-
-
Constructor Summary
Constructors Constructor Description MockSlingScriptHelper(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @NotNull org.osgi.framework.BundleContext bundleContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()voidforward(@NotNull String path)voidforward(@NotNull String path, String requestDispatcherOptions)voidforward(@NotNull String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)voidforward(@NotNull org.apache.sling.api.resource.Resource resource)voidforward(@NotNull org.apache.sling.api.resource.Resource resource, String requestDispatcherOptions)voidforward(@NotNull org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)@NotNull org.apache.sling.api.SlingHttpServletRequestgetRequest()@NotNull org.apache.sling.api.SlingHttpServletResponsegetResponse()@NotNull org.apache.sling.api.scripting.SlingScriptgetScript()<ServiceType>
ServiceTypegetService(@NotNull Class<ServiceType> serviceType)<ServiceType>
ServiceType[]getServices(@NotNull Class<ServiceType> serviceType, String filter)voidinclude(@NotNull String path)voidinclude(@NotNull String path, String requestDispatcherOptions)voidinclude(@NotNull String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)voidinclude(@NotNull org.apache.sling.api.resource.Resource resource)voidinclude(@NotNull org.apache.sling.api.resource.Resource resource, String requestDispatcherOptions)voidinclude(@NotNull org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)voidsetScript(@NotNull org.apache.sling.api.scripting.SlingScript script)
-
-
-
Method Detail
-
getRequest
@NotNull public @NotNull org.apache.sling.api.SlingHttpServletRequest getRequest()
- Specified by:
getRequestin interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
getResponse
@NotNull public @NotNull org.apache.sling.api.SlingHttpServletResponse getResponse()
- Specified by:
getResponsein interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
getService
public <ServiceType> ServiceType getService(@NotNull @NotNull Class<ServiceType> serviceType)- Specified by:
getServicein interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
getServices
public <ServiceType> ServiceType[] getServices(@NotNull @NotNull Class<ServiceType> serviceType, String filter)- Specified by:
getServicesin interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
getScript
@NotNull public @NotNull org.apache.sling.api.scripting.SlingScript getScript()
- Specified by:
getScriptin interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
setScript
public void setScript(@NotNull @NotNull org.apache.sling.api.scripting.SlingScript script)
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
forward
public void forward(@NotNull @NotNull String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)- Specified by:
forwardin interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
forward
public void forward(@NotNull @NotNull String path, String requestDispatcherOptions)- Specified by:
forwardin interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
forward
public void forward(@NotNull @NotNull String path)- Specified by:
forwardin interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
forward
public void forward(@NotNull @NotNull org.apache.sling.api.resource.Resource resource)- Specified by:
forwardin interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
forward
public void forward(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, String requestDispatcherOptions)- Specified by:
forwardin interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
forward
public void forward(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)- Specified by:
forwardin interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
include
public void include(@NotNull @NotNull String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)- Specified by:
includein interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
include
public void include(@NotNull @NotNull String path, String requestDispatcherOptions)- Specified by:
includein interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
include
public void include(@NotNull @NotNull String path)- Specified by:
includein interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
include
public void include(@NotNull @NotNull org.apache.sling.api.resource.Resource resource)- Specified by:
includein interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
include
public void include(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, String requestDispatcherOptions)- Specified by:
includein interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
include
public void include(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)- Specified by:
includein interfaceorg.apache.sling.api.scripting.SlingScriptHelper
-
-