Class NamespaceServletRequest

Object
javax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
com.liferay.portal.kernel.servlet.DynamicServletRequest
com.liferay.portal.servlet.NamespaceServletRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class NamespaceServletRequest extends com.liferay.portal.kernel.servlet.DynamicServletRequest

This class ensures that portlet attributes and parameters are private to the portlet.

Author:
Brian Myunghun Kim
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static Set<String>
     

    Fields inherited from class com.liferay.portal.kernel.servlet.DynamicServletRequest

    DYNAMIC_QUERY_STRING

    Fields inherited from interface javax.servlet.http.HttpServletRequest

    BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    NamespaceServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest, String attrNamespace, String paramNamespace)
     
    NamespaceServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest, String attrNamespace, String paramNamespace, boolean inherit)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    protected void
    injectInto(com.liferay.portal.kernel.servlet.DynamicServletRequest dynamicServletRequest)
     
    void
     
    void
    setAttribute(String name, Object value)
     
    void
    setAttribute(String name, Object value, boolean privateRequestAttribute)
     

    Methods inherited from class com.liferay.portal.kernel.servlet.DynamicServletRequest

    addQueryString, addQueryString, addQueryString, addQueryString, appendParameter, getDynamicParameterMap, getParameterMap, getParameterNames, getParameterValues, setParameter, setParameterValues

    Methods inherited from class javax.servlet.http.HttpServletRequestWrapper

    authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgrade

    Methods inherited from class javax.servlet.ServletRequestWrapper

    getAsyncContext, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, setCharacterEncoding, setRequest, startAsync, startAsync

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javax.servlet.ServletRequest

    getAsyncContext, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, setCharacterEncoding, startAsync, startAsync
  • Field Details

    • reservedAttrs

      public static Set<String> reservedAttrs
  • Constructor Details

    • NamespaceServletRequest

      public NamespaceServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest, String attrNamespace, String paramNamespace)
    • NamespaceServletRequest

      public NamespaceServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest, String attrNamespace, String paramNamespace, boolean inherit)
  • Method Details

    • getAttribute

      public Object getAttribute(String name)
      Specified by:
      getAttribute in interface javax.servlet.ServletRequest
      Overrides:
      getAttribute in class javax.servlet.ServletRequestWrapper
    • getAttributeNames

      public Enumeration<String> getAttributeNames()
      Specified by:
      getAttributeNames in interface javax.servlet.ServletRequest
      Overrides:
      getAttributeNames in class javax.servlet.ServletRequestWrapper
    • getParameter

      public String getParameter(String name)
      Specified by:
      getParameter in interface javax.servlet.ServletRequest
      Overrides:
      getParameter in class com.liferay.portal.kernel.servlet.DynamicServletRequest
    • removeAttribute

      public void removeAttribute(String name)
      Specified by:
      removeAttribute in interface javax.servlet.ServletRequest
      Overrides:
      removeAttribute in class javax.servlet.ServletRequestWrapper
    • setAttribute

      public void setAttribute(String name, Object value)
      Specified by:
      setAttribute in interface javax.servlet.ServletRequest
      Overrides:
      setAttribute in class javax.servlet.ServletRequestWrapper
    • setAttribute

      public void setAttribute(String name, Object value, boolean privateRequestAttribute)
    • injectInto

      protected void injectInto(com.liferay.portal.kernel.servlet.DynamicServletRequest dynamicServletRequest)
      Overrides:
      injectInto in class com.liferay.portal.kernel.servlet.DynamicServletRequest