Package com.composum.sling.core
Class RequestHandle
- java.lang.Object
- 
- javax.servlet.ServletRequestWrapper
- 
- javax.servlet.http.HttpServletRequestWrapper
- 
- org.apache.sling.api.wrappers.SlingHttpServletRequestWrapper
- 
- com.composum.sling.core.RequestHandle
 
 
 
 
- 
- All Implemented Interfaces:
- javax.servlet.http.HttpServletRequest,- javax.servlet.ServletRequest,- org.apache.sling.api.adapter.Adaptable,- org.apache.sling.api.SlingHttpServletRequest
 
 public class RequestHandle extends org.apache.sling.api.wrappers.SlingHttpServletRequestWrapperWrapper that extends the functionality ofSlingHttpServletRequest.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedRequestHandle(org.apache.sling.api.SlingHttpServletRequest request)Creates a new wrapper instance delegating all method calls to the givenrequest.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExtension()Returns the request extension with a leading '.' if present.StringgetSelectors()Returns all request selectors with a leading '.' if selectors are present.StringgetSelectors(StringFilter filter)StringgetSelectors(String[] prepend, StringFilter filter, String[] append)static RequestHandleuse(org.apache.sling.api.SlingHttpServletRequest request)- 
Methods inherited from class org.apache.sling.api.wrappers.SlingHttpServletRequestWrapperadaptTo, getCookie, getRequestDispatcher, getRequestDispatcher, getRequestDispatcher, getRequestParameter, getRequestParameterList, getRequestParameterMap, getRequestParameters, getRequestPathInfo, getRequestProgressTracker, getResource, getResourceBundle, getResourceBundle, getResourceResolver, getResponseContentType, getResponseContentTypes, getSlingRequest
 - 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapperauthenticate, 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, upgrade
 - 
Methods inherited from class javax.servlet.ServletRequestWrappergetAsyncContext, getAttribute, 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, startAsync
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface javax.servlet.http.HttpServletRequestauthenticate, 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, upgrade
 - 
Methods inherited from interface javax.servlet.ServletRequestgetAsyncContext, getAttribute, 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, startAsync
 
- 
 
- 
- 
- 
Method Detail- 
usepublic static RequestHandle use(org.apache.sling.api.SlingHttpServletRequest request) 
 - 
getSelectorspublic String getSelectors() Returns all request selectors with a leading '.' if selectors are present.
 - 
getSelectorspublic String getSelectors(StringFilter filter) 
 - 
getSelectorspublic String getSelectors(String[] prepend, StringFilter filter, String[] append) 
 - 
getExtensionpublic String getExtension() Returns the request extension with a leading '.' if present.
 
- 
 
-