Class ScriptXWikiServletRequest

  • All Implemented Interfaces:
    XWikiRequest, javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

    public class ScriptXWikiServletRequest
    extends WrappingXWikiRequest
    A wrapper around XWikiRequest with security related checks.
    Since:
    12.3RC1, 12.2.1, 11.10.5
    Version:
    $Id: e107730fe30b55dd85c40044556706e990b60bde $
    • Constructor Detail

      • ScriptXWikiServletRequest

        public ScriptXWikiServletRequest​(XWikiRequest request,
                                         ContextualAuthorizationManager authorization)
        Parameters:
        request - the wrapped request
        authorization - 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 interface javax.servlet.ServletRequest
        Overrides:
        getServletContext in class WrappingXWikiRequest
        See Also:
        ServletRequestWrapper.getServletContext()
      • getSession

        public javax.servlet.http.HttpSession getSession()

        Return a protected version of the session.

        Specified by:
        getSession in interface javax.servlet.http.HttpServletRequest
        Overrides:
        getSession in class WrappingXWikiRequest
        See Also:
        HttpServletRequestWrapper.getSession()
      • getSession

        public javax.servlet.http.HttpSession getSession​(boolean create)

        Return a protected version of the session.

        Specified by:
        getSession in interface javax.servlet.http.HttpServletRequest
        Overrides:
        getSession in class WrappingXWikiRequest
        See Also:
        HttpServletRequestWrapper.getSession(boolean)