Class MockPortletRequest

java.lang.Object
org.apache.commons.chain.web.portlet.MockPortletRequest
All Implemented Interfaces:
javax.portlet.PortletRequest, javax.portlet.RenderState

public class MockPortletRequest extends Object implements javax.portlet.PortletRequest
Mock Object for PortletRequest
  • Constructor Details

  • Method Details

    • addParameter

      public void addParameter(String name, String value)
    • addProperty

      public void addProperty(String name, String value)
    • addCookie

      public void addCookie(String name, String value)
    • addCookie

      public void addCookie(javax.servlet.http.Cookie cookie)
    • setAuthType

      public void setAuthType(String authType)
    • setContextPath

      public void setContextPath(String contextPath)
    • setLocale

      public void setLocale(Locale locale)
    • setPortalContext

      public void setPortalContext(javax.portlet.PortalContext portalContext)
    • setPortletContext

      public void setPortletContext(javax.portlet.PortletContext context)
    • setPortletMode

      public void setPortletMode(javax.portlet.PortletMode portletMode)
    • setPortletPreferences

      public void setPortletPreferences(javax.portlet.PortletPreferences portletPreferences)
    • setPortletSession

      public void setPortletSession(javax.portlet.PortletSession session)
    • setScheme

      public void setScheme(String scheme)
    • setServerName

      public void setServerName(String serverName)
    • setServerPort

      public void setServerPort(int serverPort)
    • setUserPrincipal

      public void setUserPrincipal(Principal principal)
    • setUserPrincipal

      public void setUserPrincipal(javax.portlet.WindowState windowState)
    • getAttribute

      public Object getAttribute(String name)
      Specified by:
      getAttribute in interface javax.portlet.PortletRequest
    • getAttributeNames

      Specified by:
      getAttributeNames in interface javax.portlet.PortletRequest
    • getAuthType

      public String getAuthType()
      Specified by:
      getAuthType in interface javax.portlet.PortletRequest
    • getContextPath

      Specified by:
      getContextPath in interface javax.portlet.PortletRequest
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface javax.portlet.PortletRequest
    • getLocales

      Specified by:
      getLocales in interface javax.portlet.PortletRequest
    • getParameter

      Deprecated.
      Specified by:
      getParameter in interface javax.portlet.PortletRequest
    • getParameterMap

      Deprecated.
      Specified by:
      getParameterMap in interface javax.portlet.PortletRequest
    • getParameterNames

      Deprecated.
      Specified by:
      getParameterNames in interface javax.portlet.PortletRequest
    • getParameterValues

      Deprecated.
      Specified by:
      getParameterValues in interface javax.portlet.PortletRequest
    • getPortalContext

      public javax.portlet.PortalContext getPortalContext()
      Specified by:
      getPortalContext in interface javax.portlet.PortletRequest
    • getPortletMode

      public javax.portlet.PortletMode getPortletMode()
      Specified by:
      getPortletMode in interface javax.portlet.RenderState
    • getPortletSession

      public javax.portlet.PortletSession getPortletSession()
      Specified by:
      getPortletSession in interface javax.portlet.PortletRequest
    • getPortletSession

      public javax.portlet.PortletSession getPortletSession(boolean create)
      Specified by:
      getPortletSession in interface javax.portlet.PortletRequest
    • getPreferences

      public javax.portlet.PortletPreferences getPreferences()
      Specified by:
      getPreferences in interface javax.portlet.PortletRequest
    • getProperties

      Specified by:
      getProperties in interface javax.portlet.PortletRequest
    • getProperty

      public String getProperty(String name)
      Specified by:
      getProperty in interface javax.portlet.PortletRequest
    • getPropertyNames

      Specified by:
      getPropertyNames in interface javax.portlet.PortletRequest
    • getRemoteUser

      Specified by:
      getRemoteUser in interface javax.portlet.PortletRequest
    • getRequestedSessionId

      Specified by:
      getRequestedSessionId in interface javax.portlet.PortletRequest
    • getResponseContentType

      Specified by:
      getResponseContentType in interface javax.portlet.PortletRequest
    • getResponseContentTypes

      Specified by:
      getResponseContentTypes in interface javax.portlet.PortletRequest
    • getScheme

      public String getScheme()
      Specified by:
      getScheme in interface javax.portlet.PortletRequest
    • getServerName

      Specified by:
      getServerName in interface javax.portlet.PortletRequest
    • getServerPort

      public int getServerPort()
      Specified by:
      getServerPort in interface javax.portlet.PortletRequest
    • getUserPrincipal

      Specified by:
      getUserPrincipal in interface javax.portlet.PortletRequest
    • getWindowState

      public javax.portlet.WindowState getWindowState()
      Specified by:
      getWindowState in interface javax.portlet.RenderState
    • isPortletModeAllowed

      public boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
      Specified by:
      isPortletModeAllowed in interface javax.portlet.PortletRequest
    • isRequestedSessionIdValid

      public boolean isRequestedSessionIdValid()
      Specified by:
      isRequestedSessionIdValid in interface javax.portlet.PortletRequest
    • isSecure

      public boolean isSecure()
      Specified by:
      isSecure in interface javax.portlet.PortletRequest
    • isUserInRole

      public boolean isUserInRole(String role)
      Specified by:
      isUserInRole in interface javax.portlet.PortletRequest
    • isWindowStateAllowed

      public boolean isWindowStateAllowed(javax.portlet.WindowState state)
      Specified by:
      isWindowStateAllowed in interface javax.portlet.PortletRequest
    • removeAttribute

      public void removeAttribute(String name)
      Specified by:
      removeAttribute in interface javax.portlet.PortletRequest
    • setAttribute

      public void setAttribute(String name, Object value)
      Specified by:
      setAttribute in interface javax.portlet.PortletRequest
    • getRenderParameters

      public javax.portlet.RenderParameters getRenderParameters()
      Specified by:
      getRenderParameters in interface javax.portlet.RenderState
    • getPortletContext

      public javax.portlet.PortletContext getPortletContext()
      Specified by:
      getPortletContext in interface javax.portlet.PortletRequest
    • getWindowID

      public String getWindowID()
      Specified by:
      getWindowID in interface javax.portlet.PortletRequest
    • getCookies

      public javax.servlet.http.Cookie[] getCookies()
      Specified by:
      getCookies in interface javax.portlet.PortletRequest
    • getPrivateParameterMap

      Deprecated.
      Specified by:
      getPrivateParameterMap in interface javax.portlet.PortletRequest
    • getPublicParameterMap

      Deprecated.
      Specified by:
      getPublicParameterMap in interface javax.portlet.PortletRequest
    • getUserAgent

      public String getUserAgent()
      Specified by:
      getUserAgent in interface javax.portlet.PortletRequest