public class SlingHttpServletRequestWrapper extends javax.servlet.http.HttpServletRequestWrapper implements SlingHttpServletRequest
SlingHttpServletRequestWrapper class is a default wrapper
 class around a SlingHttpServletRequest which may be extended to amend
 the functionality of the original request object.| Constructor and Description | 
|---|
| SlingHttpServletRequestWrapper(SlingHttpServletRequest wrappedRequest)Create a wrapper for the supplied wrappedRequest | 
| Modifier and Type | Method and Description | 
|---|---|
| <AdapterType> | adaptTo(java.lang.Class<AdapterType> type)Adapts the adaptable to another type. | 
| javax.servlet.http.Cookie | getCookie(java.lang.String name)Returns the named cookie from the HTTP request or  nullif
 no such cookie exists in the request. | 
| javax.servlet.RequestDispatcher | getRequestDispatcher(Resource resource)Same as  SlingHttpServletRequest.getRequestDispatcher(Resource,RequestDispatcherOptions)but using empty options. | 
| javax.servlet.RequestDispatcher | getRequestDispatcher(Resource resource,
                    RequestDispatcherOptions options)Returns a  RequestDispatcherobject that acts as a wrapper
 for the resource located at the given resource. | 
| javax.servlet.RequestDispatcher | getRequestDispatcher(java.lang.String path,
                    RequestDispatcherOptions options)Returns a  RequestDispatcherobject that acts as a wrapper
 for the resource located at the given path. | 
| RequestParameter | getRequestParameter(java.lang.String name)Returns the value of a request parameter as a  RequestParameter,
 ornullif the parameter does not exist. | 
| java.util.List<RequestParameter> | getRequestParameterList()Returns the request parameters as instances of the
  RequestParameterinterface in the order or the request where the
 query string parameters are first and the POST request parameters are
 second. | 
| RequestParameterMap | getRequestParameterMap()Returns a  Mapof the parameters of this request. | 
| RequestParameter[] | getRequestParameters(java.lang.String name)Returns an array of  RequestParameterobjects containing all of
 the values the given request parameter has, ornullif the
 parameter does not exist. | 
| RequestPathInfo | getRequestPathInfo()Returns the  RequestPathInfopertaining to this request. | 
| RequestProgressTracker | getRequestProgressTracker()Returns the  RequestProgressTrackerof this request. | 
| Resource | getResource()Returns the  Resourceobject on whose behalf the servlet acts. | 
| java.util.ResourceBundle | getResourceBundle(java.util.Locale locale)Returns the resource bundle for the given locale. | 
| java.util.ResourceBundle | getResourceBundle(java.lang.String baseName,
                 java.util.Locale locale)Returns the resource bundle of the given base name for the given locale. | 
| ResourceResolver | getResourceResolver()Returns the  ResourceResolverwhich resolved theresourceof this request. | 
| java.lang.String | getResponseContentType()Returns the framework preferred content type for the response. | 
| java.util.Enumeration<java.lang.String> | getResponseContentTypes()Gets a list of content types which the framework accepts for the
 response. | 
| SlingHttpServletRequest | getSlingRequest()Return the original  SlingHttpServletRequestobject wrapped by
 this. | 
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRolegetAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRolegetAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncodingpublic SlingHttpServletRequestWrapper(SlingHttpServletRequest wrappedRequest)
wrappedRequest - The request.public SlingHttpServletRequest getSlingRequest()
SlingHttpServletRequest object wrapped by
 this.public javax.servlet.http.Cookie getCookie(java.lang.String name)
SlingHttpServletRequestnull if
 no such cookie exists in the request.getCookie in interface SlingHttpServletRequestname - The name of the cookie to return.null if no such cookie exists.public RequestProgressTracker getRequestProgressTracker()
SlingHttpServletRequestRequestProgressTracker of this request.getRequestProgressTracker in interface SlingHttpServletRequestpublic javax.servlet.RequestDispatcher getRequestDispatcher(Resource resource)
SlingHttpServletRequestSlingHttpServletRequest.getRequestDispatcher(Resource,RequestDispatcherOptions)
 but using empty options.getRequestDispatcher in interface SlingHttpServletRequestresource - The Resource instance whose response content may
            be included by the returned dispatcher.RequestDispatcher object that acts as a wrapper
         for the resource or null if an
         error occurs preparing the dispatcher.public javax.servlet.RequestDispatcher getRequestDispatcher(Resource resource, RequestDispatcherOptions options)
SlingHttpServletRequestRequestDispatcher object that acts as a wrapper
 for the resource located at the given resource. A
 RequestDispatcher object can be used to include the
 resource in a response.
 
 Returns null if a RequestDispatcher cannot
 be returned for any reason.
getRequestDispatcher in interface SlingHttpServletRequestresource - The Resource instance whose response content may
            be included by the returned dispatcher.options - influence the rendering of the included ResourceRequestDispatcher object that acts as a wrapper
         for the resource or null if an
         error occurs preparing the dispatcher.public javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path,
                                                            RequestDispatcherOptions options)
SlingHttpServletRequestRequestDispatcher object that acts as a wrapper
 for the resource located at the given path. A
 RequestDispatcher object can be used to include the
 resource in a response.
 
 Returns null if a RequestDispatcher cannot
 be returned for any reason.
getRequestDispatcher in interface SlingHttpServletRequestpath - a String specifying the pathname to the
            resource. If it is relative, it must be relative against the
            current servlet.options - influence the rendering of the included ResourceRequestDispatcher object that acts as a wrapper
         for the resource or null if an
         error occurs preparing the dispatcher.public RequestParameter getRequestParameter(java.lang.String name)
SlingHttpServletRequestRequestParameter,
 or null if the parameter does not exist.
 
 This method should only be used if the parameter has only one value. If
 the parameter might have more than one value, use
 SlingHttpServletRequest.getRequestParameters(String).
 
 If this method is used with a multivalued parameter, the value returned
 is equal to the first value in the array returned by
 getRequestParameters.
 
 This method is a shortcut for
 getRequestParameterMap().getValue(String).
getRequestParameter in interface SlingHttpServletRequestname - a String specifying the name of the parameterRequestParameter representing the single value of the
         parameterSlingHttpServletRequest.getRequestParameters(String), 
RequestParameterMap.getValue(String)public RequestParameterMap getRequestParameterMap()
SlingHttpServletRequestMap of the parameters of this request.
 
 The values in the returned Map are from type
 RequestParameter array (RequestParameter[]).
 
 If no parameters exist this method returns an empty Map.
getRequestParameterMap in interface SlingHttpServletRequestMap containing parameter names as
         keys and parameter values as map values, or an empty
         Map if no parameters exist. The keys in the
         parameter map are of type String. The values in the parameter map
         are of type RequestParameter array (RequestParameter[]).public java.util.List<RequestParameter> getRequestParameterList()
SlingHttpServletRequestRequestParameter interface in the order or the request where the
 query string parameters are first and the POST request parameters are
 second.getRequestParameterList in interface SlingHttpServletRequestRequestParameter in request declaration
         order.public RequestParameter[] getRequestParameters(java.lang.String name)
SlingHttpServletRequestRequestParameter objects containing all of
 the values the given request parameter has, or null if the
 parameter does not exist.
 If the parameter has a single value, the array has a length of 1.
 This method is a shortcut for
 getRequestParameterMap().getValues(String).
getRequestParameters in interface SlingHttpServletRequestname - a String containing the name of the parameter
            the value of which is requestedRequestParameter objects containing the
         parameter values.SlingHttpServletRequest.getRequestParameter(String), 
RequestParameterMap.getValues(String)public RequestPathInfo getRequestPathInfo()
SlingHttpServletRequestRequestPathInfo pertaining to this request.getRequestPathInfo in interface SlingHttpServletRequestpublic Resource getResource()
SlingHttpServletRequestResource object on whose behalf the servlet acts.getResource in interface SlingHttpServletRequestResource object of this request.public ResourceResolver getResourceResolver()
SlingHttpServletRequestResourceResolver which resolved the
 resource of this request.getResourceResolver in interface SlingHttpServletRequestpublic java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
SlingHttpServletRequestgetResourceBundle in interface SlingHttpServletRequestlocale - the locale for which to retrieve the resource bundle. If
            this is null, the locale returned by
            ServletRequest.getLocale() is used to select the resource bundle.public java.util.ResourceBundle getResourceBundle(java.lang.String baseName,
                                                  java.util.Locale locale)
SlingHttpServletRequestgetResourceBundle in interface SlingHttpServletRequestbaseName - The base name of the resource bundle to returned. If this
            parameter is null, the same resource bundle
            must be returned as if the SlingHttpServletRequest.getResourceBundle(Locale)
            method is called.locale - the locale for which to retrieve the resource bundle. If
            this is null, the locale returned by
            ServletRequest.getLocale() is used to select the resource bundle.public java.lang.String getResponseContentType()
SlingHttpServletRequest
 For included resources this method will returned the same string as
 returned by the ServletResponse.getContentType() without
 the character set.
getResponseContentType in interface SlingHttpServletRequestpublic java.util.Enumeration<java.lang.String> getResponseContentTypes()
SlingHttpServletRequest
 For included resources this method will returned an enumeration
 containing a single entry which is the same string as returned by the
 ServletResponse.getContentType() without the character
 set.
getResponseContentTypes in interface SlingHttpServletRequestpublic <AdapterType> AdapterType adaptTo(java.lang.Class<AdapterType> type)
Adaptable
 Please note that it is explicitly left as an implementation detail whether
 each call to this method with the same type yields the same
 object or a new object on each call.
 
Implementations of this method should document their adapted types as well as their behaviour with respect to returning newly created or same instances on each call.
adaptTo in interface AdaptableAdapterType - The generic type to which this object is adapted
            totype - The Class object of the target type, such as
            javax.jcr.Node.class or
            java.io.File.classnull if the object cannot
         adapt to the requested typeCopyright © 2018 The Apache Software Foundation. All rights reserved.