public class MockSlingHttpServletRequest
extends org.apache.sling.servlethelpers.MockSlingHttpServletRequest
SlingHttpServletRequest
implementation.Constructor and Description |
---|
MockSlingHttpServletRequest(@NotNull org.osgi.framework.BundleContext bundleContext)
Instantiate with default resource resolver
|
MockSlingHttpServletRequest(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver,
@NotNull org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
ResourceBundle |
getResourceBundle(String baseName,
Locale locale) |
protected @NotNull MockHttpSession |
newMockHttpSession() |
protected @NotNull MockRequestPathInfo |
newMockRequestPathInfo() |
addCookie, addDateHeader, addHeader, addIntHeader, addRequestParameter, addRequestParameter, addRequestParameter, authenticate, changeSessionId, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentLengthLong, 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, setResponseContentType, setScheme, setServerName, setServerPort, setServletPath, startAsync, startAsync, upgrade
adaptTo, setAdapterManager, unsetAdapterManager
public MockSlingHttpServletRequest(@NotNull @NotNull org.osgi.framework.BundleContext bundleContext)
bundleContext
- Bundle contextpublic MockSlingHttpServletRequest(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull org.osgi.framework.BundleContext bundleContext)
resourceResolver
- Resource resolverbundleContext
- Bundle context@NotNull protected @NotNull MockRequestPathInfo newMockRequestPathInfo()
newMockRequestPathInfo
in class org.apache.sling.servlethelpers.MockSlingHttpServletRequest
@NotNull protected @NotNull 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–2019 The Apache Software Foundation. All rights reserved.