public class OverridePathSlingRequestWrapper
extends org.apache.sling.api.wrappers.SlingHttpServletRequestWrapper
| Constructor and Description |
|---|
OverridePathSlingRequestWrapper(org.apache.sling.api.SlingHttpServletRequest request,
String path)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<AdapterType> |
adaptTo(Class<AdapterType> type)
Overriding `adaptTo` to avoid using the original request as the adaptable.
|
Object |
getAttribute(String name) |
org.apache.sling.api.resource.Resource |
getResource() |
getCookie, getRequestDispatcher, getRequestDispatcher, getRequestDispatcher, getRequestParameter, getRequestParameterList, getRequestParameterMap, getRequestParameters, getRequestPathInfo, getRequestProgressTracker, getResourceBundle, getResourceBundle, getResourceResolver, getResponseContentType, getResponseContentTypes, getSlingRequestauthenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgradegetAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgradegetAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncpublic OverridePathSlingRequestWrapper(org.apache.sling.api.SlingHttpServletRequest request,
String path)
request - A valid sling request.path - Path to represent by this request wrapper.public Object getAttribute(String name)
getAttribute in interface javax.servlet.ServletRequestgetAttribute in class javax.servlet.ServletRequestWrapperpublic org.apache.sling.api.resource.Resource getResource()
getResource in interface org.apache.sling.api.SlingHttpServletRequestgetResource in class org.apache.sling.api.wrappers.SlingHttpServletRequestWrapperpublic <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
adaptTo in interface org.apache.sling.api.adapter.AdaptableadaptTo in class org.apache.sling.api.wrappers.SlingHttpServletRequestWrapperCopyright © 2013–2020 Adobe. All rights reserved.