public class SlingHttpServletRequestImpl
extends javax.servlet.http.HttpServletRequestWrapper
implements org.apache.sling.api.SlingHttpServletRequest
Constructor and Description |
---|
SlingHttpServletRequestImpl(RequestData requestData,
javax.servlet.http.HttpServletRequest servletRequest) |
Modifier and Type | Method and Description |
---|---|
<AdapterType> |
adaptTo(Class<AdapterType> type) |
javax.servlet.http.Cookie |
getCookie(String name) |
javax.servlet.ServletInputStream |
getInputStream() |
String |
getParameter(String name) |
Map<String,String[]> |
getParameterMap() |
Enumeration<String> |
getParameterNames() |
String[] |
getParameterValues(String name) |
javax.servlet.http.Part |
getPart(String name) |
Collection<javax.servlet.http.Part> |
getParts() |
String |
getPathInfo()
Returns the part of the request URL without the leading servlet context
path.
|
BufferedReader |
getReader() |
RequestData |
getRequestData() |
javax.servlet.RequestDispatcher |
getRequestDispatcher(org.apache.sling.api.resource.Resource resource)
Returns
null if resource is null . |
javax.servlet.RequestDispatcher |
getRequestDispatcher(org.apache.sling.api.resource.Resource resource,
org.apache.sling.api.request.RequestDispatcherOptions options)
Returns
null if resource is null . |
javax.servlet.RequestDispatcher |
getRequestDispatcher(String path)
Returns
null if path is null . |
javax.servlet.RequestDispatcher |
getRequestDispatcher(String path,
org.apache.sling.api.request.RequestDispatcherOptions options)
Returns
null if path is null . |
org.apache.sling.api.request.RequestParameter |
getRequestParameter(String name) |
List<org.apache.sling.api.request.RequestParameter> |
getRequestParameterList() |
org.apache.sling.api.request.RequestParameterMap |
getRequestParameterMap() |
org.apache.sling.api.request.RequestParameter[] |
getRequestParameters(String name) |
org.apache.sling.api.request.RequestPathInfo |
getRequestPathInfo() |
org.apache.sling.api.request.RequestProgressTracker |
getRequestProgressTracker() |
org.apache.sling.api.resource.Resource |
getResource() |
ResourceBundle |
getResourceBundle(Locale locale) |
ResourceBundle |
getResourceBundle(String baseName,
Locale locale) |
org.apache.sling.api.resource.ResourceResolver |
getResourceResolver() |
String |
getResponseContentType() |
Enumeration<String> |
getResponseContentTypes() |
String |
getServletPath()
Always returns the empty string since the actual servlet registered with
the servlet container (the HttpService actually) is registered as if
the servlet path is "/*".
|
Principal |
getUserPrincipal() |
boolean |
isUserInRole(String role) |
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, login, logout
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, login, logout
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public SlingHttpServletRequestImpl(RequestData requestData, javax.servlet.http.HttpServletRequest servletRequest)
public final RequestData getRequestData()
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
adaptTo
in interface org.apache.sling.api.adapter.Adaptable
public org.apache.sling.api.resource.Resource getResource()
getResource
in interface org.apache.sling.api.SlingHttpServletRequest
public org.apache.sling.api.resource.ResourceResolver getResourceResolver()
getResourceResolver
in interface org.apache.sling.api.SlingHttpServletRequest
public org.apache.sling.api.request.RequestProgressTracker getRequestProgressTracker()
getRequestProgressTracker
in interface org.apache.sling.api.SlingHttpServletRequest
public javax.servlet.RequestDispatcher getRequestDispatcher(org.apache.sling.api.resource.Resource resource)
null
if resource
is null
.getRequestDispatcher
in interface org.apache.sling.api.SlingHttpServletRequest
public javax.servlet.RequestDispatcher getRequestDispatcher(org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestDispatcherOptions options)
null
if resource
is null
.getRequestDispatcher
in interface org.apache.sling.api.SlingHttpServletRequest
public javax.servlet.RequestDispatcher getRequestDispatcher(String path)
null
if path
is null
.getRequestDispatcher
in interface javax.servlet.ServletRequest
getRequestDispatcher
in class javax.servlet.ServletRequestWrapper
public javax.servlet.RequestDispatcher getRequestDispatcher(String path, org.apache.sling.api.request.RequestDispatcherOptions options)
null
if path
is null
.getRequestDispatcher
in interface org.apache.sling.api.SlingHttpServletRequest
public String getParameter(String name)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class javax.servlet.ServletRequestWrapper
ServletRequestWrapper.getParameter(java.lang.String)
public Map<String,String[]> getParameterMap()
getParameterMap
in interface javax.servlet.ServletRequest
getParameterMap
in class javax.servlet.ServletRequestWrapper
ServletRequestWrapper.getParameterMap()
public Enumeration<String> getParameterNames()
getParameterNames
in interface javax.servlet.ServletRequest
getParameterNames
in class javax.servlet.ServletRequestWrapper
ServletRequestWrapper.getParameterNames()
public String[] getParameterValues(String name)
getParameterValues
in interface javax.servlet.ServletRequest
getParameterValues
in class javax.servlet.ServletRequestWrapper
ServletRequestWrapper.getParameterValues(java.lang.String)
public org.apache.sling.api.request.RequestParameter getRequestParameter(String name)
getRequestParameter
in interface org.apache.sling.api.SlingHttpServletRequest
SlingHttpServletRequest.getRequestParameter(java.lang.String)
public org.apache.sling.api.request.RequestParameter[] getRequestParameters(String name)
getRequestParameters
in interface org.apache.sling.api.SlingHttpServletRequest
SlingHttpServletRequest.getRequestParameters(java.lang.String)
public org.apache.sling.api.request.RequestParameterMap getRequestParameterMap()
getRequestParameterMap
in interface org.apache.sling.api.SlingHttpServletRequest
SlingHttpServletRequest.getRequestParameterMap()
public List<org.apache.sling.api.request.RequestParameter> getRequestParameterList()
getRequestParameterList
in interface org.apache.sling.api.SlingHttpServletRequest
SlingHttpServletRequest.getRequestParameterList()
public javax.servlet.http.Cookie getCookie(String name)
getCookie
in interface org.apache.sling.api.SlingHttpServletRequest
SlingHttpServletRequest.getCookie(java.lang.String)
public org.apache.sling.api.request.RequestPathInfo getRequestPathInfo()
getRequestPathInfo
in interface org.apache.sling.api.SlingHttpServletRequest
SlingHttpServletRequest.getRequestPathInfo()
public ResourceBundle getResourceBundle(Locale locale)
getResourceBundle
in interface org.apache.sling.api.SlingHttpServletRequest
SlingHttpServletRequest.getResourceBundle(java.util.Locale)
public ResourceBundle getResourceBundle(String baseName, Locale locale)
getResourceBundle
in interface org.apache.sling.api.SlingHttpServletRequest
SlingHttpServletRequest.getResourceBundle(String, Locale)
public String getResponseContentType()
getResponseContentType
in interface org.apache.sling.api.SlingHttpServletRequest
SlingHttpServletRequest.getResponseContentType()
public Enumeration<String> getResponseContentTypes()
getResponseContentTypes
in interface org.apache.sling.api.SlingHttpServletRequest
SlingHttpServletRequest.getResponseContentTypes()
public javax.servlet.ServletInputStream getInputStream() throws IOException
getInputStream
in interface javax.servlet.ServletRequest
getInputStream
in class javax.servlet.ServletRequestWrapper
IOException
ServletRequestWrapper.getInputStream()
public BufferedReader getReader() throws UnsupportedEncodingException, IOException
getReader
in interface javax.servlet.ServletRequest
getReader
in class javax.servlet.ServletRequestWrapper
UnsupportedEncodingException
IOException
ServletRequestWrapper.getReader()
public Principal getUserPrincipal()
getUserPrincipal
in interface javax.servlet.http.HttpServletRequest
getUserPrincipal
in class javax.servlet.http.HttpServletRequestWrapper
HttpServletRequestWrapper.getUserPrincipal()
public boolean isUserInRole(String role)
isUserInRole
in interface javax.servlet.http.HttpServletRequest
isUserInRole
in class javax.servlet.http.HttpServletRequestWrapper
HttpServletRequestWrapper.isUserInRole(String)
public String getServletPath()
getServletPath
in interface javax.servlet.http.HttpServletRequest
getServletPath
in class javax.servlet.http.HttpServletRequestWrapper
public String getPathInfo()
getPathInfo
in interface javax.servlet.http.HttpServletRequest
getPathInfo
in class javax.servlet.http.HttpServletRequestWrapper
public javax.servlet.http.Part getPart(String name)
getPart
in interface javax.servlet.http.HttpServletRequest
getPart
in class javax.servlet.http.HttpServletRequestWrapper
public Collection<javax.servlet.http.Part> getParts()
getParts
in interface javax.servlet.http.HttpServletRequest
getParts
in class javax.servlet.http.HttpServletRequestWrapper
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.