public class MockSlingHttpServletRequest
extends org.apache.sling.servlethelpers.MockSlingHttpServletRequest
SlingHttpServletRequest
implementation.Constructor and Description |
---|
MockSlingHttpServletRequest()
Deprecated.
Please use
MockSlingHttpServletRequest(BundleContext)
and shutdown the bundle context after usage. |
MockSlingHttpServletRequest(org.osgi.framework.BundleContext bundleContext)
Instantiate with default resource resolver
|
MockSlingHttpServletRequest(org.apache.sling.api.resource.ResourceResolver resourceResolver)
Deprecated.
Please use
MockSlingHttpServletRequest(ResourceResolver, BundleContext)
and shutdown the bundle context after usage. |
MockSlingHttpServletRequest(org.apache.sling.api.resource.ResourceResolver resourceResolver,
org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
ResourceBundle |
getResourceBundle(String baseName,
Locale locale) |
protected MockHttpSession |
newMockHttpSession() |
protected MockRequestPathInfo |
newMockRequestPathInfo() |
addCookie, addDateHeader, addHeader, addIntHeader, authenticate, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentType, getContextPath, getCookie, getCookies, getDateHeader, getDispatcherType, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestDispatcher, getRequestDispatcher, getRequestDispatcher, getRequestedSessionId, getRequestParameter, getRequestParameterList, getRequestParameterMap, getRequestParameters, getRequestPathInfo, getRequestProgressTracker, getRequestURI, getRequestURL, getResource, getResourceBundle, getResourceResolver, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getUserPrincipal, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAttribute, setAttribute, setAuthType, setCharacterEncoding, setContent, setContentType, setContextPath, setDateHeader, setHeader, setIntHeader, setLocale, setMethod, setParameterMap, setPathInfo, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRemoteUser, setRequestDispatcherFactory, setResource, setScheme, setServerName, setServerPort, setServletPath, startAsync, startAsync
adaptTo, setAdapterManager, unsetAdapterManager
@Deprecated public MockSlingHttpServletRequest()
MockSlingHttpServletRequest(BundleContext)
and shutdown the bundle context after usage.public MockSlingHttpServletRequest(org.osgi.framework.BundleContext bundleContext)
bundleContext
- Bundle context@Deprecated public MockSlingHttpServletRequest(org.apache.sling.api.resource.ResourceResolver resourceResolver)
MockSlingHttpServletRequest(ResourceResolver, BundleContext)
and shutdown the bundle context after usage.resourceResolver
- Resource resolverpublic MockSlingHttpServletRequest(org.apache.sling.api.resource.ResourceResolver resourceResolver, org.osgi.framework.BundleContext bundleContext)
resourceResolver
- Resource resolverbundleContext
- Bundle contextprotected MockRequestPathInfo newMockRequestPathInfo()
newMockRequestPathInfo
in class org.apache.sling.servlethelpers.MockSlingHttpServletRequest
protected MockHttpSession newMockHttpSession()
newMockHttpSession
in class org.apache.sling.servlethelpers.MockSlingHttpServletRequest
public ResourceBundle getResourceBundle(String baseName, Locale locale)
getResourceBundle
in interface org.apache.sling.api.SlingHttpServletRequest
getResourceBundle
in class org.apache.sling.servlethelpers.MockSlingHttpServletRequest
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.