@Unstable public class ScriptXWikiServletRequest extends WrappingXWikiRequest
XWikiRequest
with security related checks.request
Constructor and Description |
---|
ScriptXWikiServletRequest(XWikiRequest request,
ContextualAuthorizationManager authorization) |
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSession |
getSession() |
javax.servlet.http.HttpSession |
getSession(boolean create) |
authenticate, changeSessionId, get, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getContextPath, getCookie, getCookies, getDateHeader, getDispatcherType, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletPath, getUserPrincipal, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync, upgrade
public ScriptXWikiServletRequest(XWikiRequest request, ContextualAuthorizationManager authorization)
request
- the wrapped requestauthorization
- used to check rights of the current authorpublic javax.servlet.ServletContext getServletContext()
Only allowed to author with programming right because it contains very sensitive data.
getServletContext
in interface javax.servlet.ServletRequest
getServletContext
in class WrappingXWikiRequest
ServletRequestWrapper.getServletContext()
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
Only allowed to author with programming right because it contains very sensitive data.
getHttpServletRequest
in interface XWikiRequest
getHttpServletRequest
in class WrappingXWikiRequest
XWikiServletRequest.getHttpServletRequest()
public javax.servlet.http.HttpSession getSession()
Return a protected version of the session.
getSession
in interface javax.servlet.http.HttpServletRequest
getSession
in class WrappingXWikiRequest
HttpServletRequestWrapper.getSession()
public javax.servlet.http.HttpSession getSession(boolean create)
Return a protected version of the session.
getSession
in interface javax.servlet.http.HttpServletRequest
getSession
in class WrappingXWikiRequest
HttpServletRequestWrapper.getSession(boolean)
Copyright © 2004–2021 XWiki. All rights reserved.