public class MockSlingHttpServletRequest extends MockSlingHttpServletRequest
SlingHttpServletRequest implementation.EMPTY_RESOURCE_BUNDLE| 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 |
|---|---|
java.util.ResourceBundle |
getResourceBundle(java.lang.String baseName,
java.util.Locale locale) |
protected @NotNull MockHttpSession |
newMockHttpSession() |
protected @NotNull MockRequestPathInfo |
newMockRequestPathInfo() |
adaptTo, 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, upgradepublic 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 MockSlingHttpServletRequest@NotNull protected @NotNull MockHttpSession newMockHttpSession()
newMockHttpSession in class MockSlingHttpServletRequestpublic java.util.ResourceBundle getResourceBundle(java.lang.String baseName,
java.util.Locale locale)
getResourceBundle in interface org.apache.sling.api.SlingHttpServletRequestgetResourceBundle in class MockSlingHttpServletRequestCopyright © 2014–2021 wcm.io. All rights reserved.