public class MockSlingHttpServletRequest
extends org.apache.sling.servlethelpers.MockSlingHttpServletRequest
SlingHttpServletRequest implementation.| Constructor and Description |
|---|
MockSlingHttpServletRequest(org.osgi.framework.BundleContext bundleContext)
Instantiate with default resource resolver
|
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, 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, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRemoteUser, setRequestDispatcherFactory, setResource, setScheme, setServerName, setServerPort, setServletPath, startAsync, startAsync, upgradeadaptTo, setAdapterManager, unsetAdapterManagerpublic MockSlingHttpServletRequest(org.osgi.framework.BundleContext bundleContext)
bundleContext - Bundle contextpublic 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.MockSlingHttpServletRequestprotected MockHttpSession newMockHttpSession()
newMockHttpSession in class org.apache.sling.servlethelpers.MockSlingHttpServletRequestpublic ResourceBundle getResourceBundle(String baseName, Locale locale)
getResourceBundle in interface org.apache.sling.api.SlingHttpServletRequestgetResourceBundle in class org.apache.sling.servlethelpers.MockSlingHttpServletRequestCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.