Package org.apache.sling.servlethelpers
Interface MockRequestDispatcherFactory
-
@ConsumerType public interface MockRequestDispatcherFactory
Interface to create a mockRequestDispatcher
when calling the getRequestDispatcher methods onMockSlingHttpServletRequest
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.servlet.RequestDispatcher
getRequestDispatcher(String path, org.apache.sling.api.request.RequestDispatcherOptions options)
Get request dispatcher for given path.javax.servlet.RequestDispatcher
getRequestDispatcher(org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions options)
Get request dispatcher for given resource.
-
-
-
Method Detail
-
getRequestDispatcher
javax.servlet.RequestDispatcher getRequestDispatcher(String path, org.apache.sling.api.request.RequestDispatcherOptions options)
Get request dispatcher for given path.- Parameters:
path
- Pathoptions
- Options. Null if no options are provided.- Returns:
- Request dispatcher
-
getRequestDispatcher
javax.servlet.RequestDispatcher getRequestDispatcher(org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions options)
Get request dispatcher for given resource.- Parameters:
resource
- Resourceoptions
- Options. Null if no options are provided.- Returns:
- Request dispatcher
-
-