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) |
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, getPart, getParts, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, login, logoutgetAsyncContext, 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, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, login, logoutgetAsyncContext, 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, startAsyncpublic 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.Adaptablepublic org.apache.sling.api.resource.Resource getResource()
getResource in interface org.apache.sling.api.SlingHttpServletRequestpublic org.apache.sling.api.resource.ResourceResolver getResourceResolver()
getResourceResolver in interface org.apache.sling.api.SlingHttpServletRequestpublic org.apache.sling.api.request.RequestProgressTracker getRequestProgressTracker()
getRequestProgressTracker in interface org.apache.sling.api.SlingHttpServletRequestpublic javax.servlet.RequestDispatcher getRequestDispatcher(org.apache.sling.api.resource.Resource resource)
null if resource is null.getRequestDispatcher in interface org.apache.sling.api.SlingHttpServletRequestpublic 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.SlingHttpServletRequestpublic javax.servlet.RequestDispatcher getRequestDispatcher(String path)
null if path is null.getRequestDispatcher in interface javax.servlet.ServletRequestgetRequestDispatcher in class javax.servlet.ServletRequestWrapperpublic 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.SlingHttpServletRequestpublic String getParameter(String name)
getParameter in interface javax.servlet.ServletRequestgetParameter in class javax.servlet.ServletRequestWrapperServletRequestWrapper.getParameter(java.lang.String)public Map<String,String[]> getParameterMap()
getParameterMap in interface javax.servlet.ServletRequestgetParameterMap in class javax.servlet.ServletRequestWrapperServletRequestWrapper.getParameterMap()public Enumeration<String> getParameterNames()
getParameterNames in interface javax.servlet.ServletRequestgetParameterNames in class javax.servlet.ServletRequestWrapperServletRequestWrapper.getParameterNames()public String[] getParameterValues(String name)
getParameterValues in interface javax.servlet.ServletRequestgetParameterValues in class javax.servlet.ServletRequestWrapperServletRequestWrapper.getParameterValues(java.lang.String)public org.apache.sling.api.request.RequestParameter getRequestParameter(String name)
getRequestParameter in interface org.apache.sling.api.SlingHttpServletRequestSlingHttpServletRequest.getRequestParameter(java.lang.String)public org.apache.sling.api.request.RequestParameter[] getRequestParameters(String name)
getRequestParameters in interface org.apache.sling.api.SlingHttpServletRequestSlingHttpServletRequest.getRequestParameters(java.lang.String)public org.apache.sling.api.request.RequestParameterMap getRequestParameterMap()
getRequestParameterMap in interface org.apache.sling.api.SlingHttpServletRequestSlingHttpServletRequest.getRequestParameterMap()public List<org.apache.sling.api.request.RequestParameter> getRequestParameterList()
getRequestParameterList in interface org.apache.sling.api.SlingHttpServletRequestSlingHttpServletRequest.getRequestParameterList()public javax.servlet.http.Cookie getCookie(String name)
getCookie in interface org.apache.sling.api.SlingHttpServletRequestSlingHttpServletRequest.getCookie(java.lang.String)public org.apache.sling.api.request.RequestPathInfo getRequestPathInfo()
getRequestPathInfo in interface org.apache.sling.api.SlingHttpServletRequestSlingHttpServletRequest.getRequestPathInfo()public ResourceBundle getResourceBundle(Locale locale)
getResourceBundle in interface org.apache.sling.api.SlingHttpServletRequestSlingHttpServletRequest.getResourceBundle(java.util.Locale)public ResourceBundle getResourceBundle(String baseName, Locale locale)
getResourceBundle in interface org.apache.sling.api.SlingHttpServletRequestSlingHttpServletRequest.getResourceBundle(String, Locale)public String getResponseContentType()
getResponseContentType in interface org.apache.sling.api.SlingHttpServletRequestSlingHttpServletRequest.getResponseContentType()public Enumeration<String> getResponseContentTypes()
getResponseContentTypes in interface org.apache.sling.api.SlingHttpServletRequestSlingHttpServletRequest.getResponseContentTypes()public javax.servlet.ServletInputStream getInputStream()
throws IOException
getInputStream in interface javax.servlet.ServletRequestgetInputStream in class javax.servlet.ServletRequestWrapperIOExceptionServletRequestWrapper.getInputStream()public BufferedReader getReader() throws UnsupportedEncodingException, IOException
getReader in interface javax.servlet.ServletRequestgetReader in class javax.servlet.ServletRequestWrapperUnsupportedEncodingExceptionIOExceptionServletRequestWrapper.getReader()public Principal getUserPrincipal()
getUserPrincipal in interface javax.servlet.http.HttpServletRequestgetUserPrincipal in class javax.servlet.http.HttpServletRequestWrapperHttpServletRequestWrapper.getUserPrincipal()public boolean isUserInRole(String role)
isUserInRole in interface javax.servlet.http.HttpServletRequestisUserInRole in class javax.servlet.http.HttpServletRequestWrapperHttpServletRequestWrapper.isUserInRole(String)public String getServletPath()
getServletPath in interface javax.servlet.http.HttpServletRequestgetServletPath in class javax.servlet.http.HttpServletRequestWrapperpublic String getPathInfo()
getPathInfo in interface javax.servlet.http.HttpServletRequestgetPathInfo in class javax.servlet.http.HttpServletRequestWrapperCopyright © 2007–2014 The Apache Software Foundation. All rights reserved.