Package com.xpn.xwiki.render
Class ScriptXWikiServletRequest
- java.lang.Object
-
- com.xpn.xwiki.web.WrappingXWikiRequest
-
- com.xpn.xwiki.render.ScriptXWikiServletRequest
-
- All Implemented Interfaces:
XWikiRequest
,javax.servlet.http.HttpServletRequest
,javax.servlet.ServletRequest
public class ScriptXWikiServletRequest extends WrappingXWikiRequest
A wrapper aroundXWikiRequest
with security related checks.- Since:
- 12.3RC1, 12.2.1, 11.10.5
- Version:
- $Id: e107730fe30b55dd85c40044556706e990b60bde $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.web.WrappingXWikiRequest
request
-
-
Constructor Summary
Constructors Constructor Description ScriptXWikiServletRequest(XWikiRequest request, ContextualAuthorizationManager authorization)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpServletRequest
getHttpServletRequest()
javax.servlet.ServletContext
getServletContext()
javax.servlet.http.HttpSession
getSession()
javax.servlet.http.HttpSession
getSession(boolean create)
-
Methods inherited from class com.xpn.xwiki.web.WrappingXWikiRequest
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
-
-
-
-
Constructor Detail
-
ScriptXWikiServletRequest
public ScriptXWikiServletRequest(XWikiRequest request, ContextualAuthorizationManager authorization)
- Parameters:
request
- the wrapped requestauthorization
- used to check rights of the current author
-
-
Method Detail
-
getServletContext
public javax.servlet.ServletContext getServletContext()
Only allowed to author with programming right because it contains very sensitive data.
- Specified by:
getServletContext
in interfacejavax.servlet.ServletRequest
- Overrides:
getServletContext
in classWrappingXWikiRequest
- See Also:
ServletRequestWrapper.getServletContext()
-
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
Only allowed to author with programming right because it contains very sensitive data.
- Specified by:
getHttpServletRequest
in interfaceXWikiRequest
- Overrides:
getHttpServletRequest
in classWrappingXWikiRequest
- See Also:
XWikiServletRequest.getHttpServletRequest()
-
getSession
public javax.servlet.http.HttpSession getSession()
Return a protected version of the session.
- Specified by:
getSession
in interfacejavax.servlet.http.HttpServletRequest
- Overrides:
getSession
in classWrappingXWikiRequest
- See Also:
HttpServletRequestWrapper.getSession()
-
getSession
public javax.servlet.http.HttpSession getSession(boolean create)
Return a protected version of the session.
- Specified by:
getSession
in interfacejavax.servlet.http.HttpServletRequest
- Overrides:
getSession
in classWrappingXWikiRequest
- See Also:
HttpServletRequestWrapper.getSession(boolean)
-
-