Klasse MockSlingScriptHelper

java.lang.Object
org.apache.sling.testing.mock.sling.MockSlingScriptHelper
Alle implementierten Schnittstellen:
org.apache.sling.api.scripting.SlingScriptHelper

public final class MockSlingScriptHelper extends Object implements org.apache.sling.api.scripting.SlingScriptHelper
Mock SlingScriptHelper implementation.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    MockSlingScriptHelper(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @NotNull org.osgi.framework.BundleContext bundleContext)
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
     
    void
    forward(@NotNull String path)
     
    void
    forward(@NotNull String path, String requestDispatcherOptions)
     
    void
    forward(@NotNull String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
     
    void
    forward(@NotNull org.apache.sling.api.resource.Resource resource)
     
    void
    forward(@NotNull org.apache.sling.api.resource.Resource resource, String requestDispatcherOptions)
     
    void
    forward(@NotNull org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
     
    @NotNull org.apache.sling.api.SlingHttpServletRequest
     
    @NotNull org.apache.sling.api.SlingHttpServletResponse
     
    @NotNull org.apache.sling.api.scripting.SlingScript
     
    <ServiceType>
    ServiceType
    getService(@NotNull Class<ServiceType> serviceType)
     
    <ServiceType>
    ServiceType[]
    getServices(@NotNull Class<ServiceType> serviceType, String filter)
     
    void
    include(@NotNull String path)
     
    void
    include(@NotNull String path, String requestDispatcherOptions)
     
    void
    include(@NotNull String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
     
    void
    include(@NotNull org.apache.sling.api.resource.Resource resource)
     
    void
    include(@NotNull org.apache.sling.api.resource.Resource resource, String requestDispatcherOptions)
     
    void
    include(@NotNull org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
     
    void
    setScript(@NotNull org.apache.sling.api.scripting.SlingScript script)
     

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • MockSlingScriptHelper

      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)
      Parameter:
      request - Sling HTTP servlet request
      response - Sling HTTP servlet response
      bundleContext - OSGi bundle context
  • Methodendetails

    • getRequest

      @NotNull public @NotNull org.apache.sling.api.SlingHttpServletRequest getRequest()
      Angegeben von:
      getRequest in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • getResponse

      @NotNull public @NotNull org.apache.sling.api.SlingHttpServletResponse getResponse()
      Angegeben von:
      getResponse in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • getService

      @Nullable public <ServiceType> ServiceType getService(@NotNull @NotNull Class<ServiceType> serviceType)
      Angegeben von:
      getService in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • getServices

      @Nullable public <ServiceType> ServiceType[] getServices(@NotNull @NotNull Class<ServiceType> serviceType, String filter)
      Angegeben von:
      getServices in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • getScript

      @NotNull public @NotNull org.apache.sling.api.scripting.SlingScript getScript()
      Angegeben von:
      getScript in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • setScript

      public void setScript(@NotNull @NotNull org.apache.sling.api.scripting.SlingScript script)
      Parameter:
      script - Script
    • dispose

      public void dispose()
      Angegeben von:
      dispose in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • forward

      public void forward(@NotNull @NotNull String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
      Angegeben von:
      forward in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • forward

      public void forward(@NotNull @NotNull String path, String requestDispatcherOptions)
      Angegeben von:
      forward in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • forward

      public void forward(@NotNull @NotNull String path)
      Angegeben von:
      forward in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • forward

      public void forward(@NotNull @NotNull org.apache.sling.api.resource.Resource resource)
      Angegeben von:
      forward in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • forward

      public void forward(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, String requestDispatcherOptions)
      Angegeben von:
      forward in Schnittstelle org.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)
      Angegeben von:
      forward in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • include

      public void include(@NotNull @NotNull String path, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
      Angegeben von:
      include in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • include

      public void include(@NotNull @NotNull String path, String requestDispatcherOptions)
      Angegeben von:
      include in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • include

      public void include(@NotNull @NotNull String path)
      Angegeben von:
      include in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • include

      public void include(@NotNull @NotNull org.apache.sling.api.resource.Resource resource)
      Angegeben von:
      include in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper
    • include

      public void include(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, String requestDispatcherOptions)
      Angegeben von:
      include in Schnittstelle org.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)
      Angegeben von:
      include in Schnittstelle org.apache.sling.api.scripting.SlingScriptHelper