org.apache.jetspeed.mockobjects.portlet
Class MockPortletRequest
java.lang.Object
org.apache.jetspeed.mockobjects.portlet.MockPortletRequest
- All Implemented Interfaces:
- javax.portlet.PortletRequest
public class MockPortletRequest
- extends java.lang.Object
- implements javax.portlet.PortletRequest
A mock portlet request, useful for unit testing and offline utilities
- Version:
- $Id: MockPortletRequest.java 705396 2008-10-16 23:01:57Z ate $
- Author:
- David Sean Taylor
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest |
javax.portlet.PortletRequest.P3PUserInfos |
Fields inherited from interface javax.portlet.PortletRequest |
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockPortletRequest
public MockPortletRequest()
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
getAttribute
public java.lang.Object getAttribute(java.lang.String arg0)
- Specified by:
getAttribute
in interface javax.portlet.PortletRequest
getAttributeNames
public java.util.Enumeration<java.lang.String> getAttributeNames()
- Specified by:
getAttributeNames
in interface javax.portlet.PortletRequest
getAuthType
public java.lang.String getAuthType()
- Specified by:
getAuthType
in interface javax.portlet.PortletRequest
getContextPath
public java.lang.String getContextPath()
- Specified by:
getContextPath
in interface javax.portlet.PortletRequest
getCookies
public javax.servlet.http.Cookie[] getCookies()
- Specified by:
getCookies
in interface javax.portlet.PortletRequest
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in interface javax.portlet.PortletRequest
getLocales
public java.util.Enumeration<java.util.Locale> getLocales()
- Specified by:
getLocales
in interface javax.portlet.PortletRequest
getParameter
public java.lang.String getParameter(java.lang.String arg0)
- Specified by:
getParameter
in interface javax.portlet.PortletRequest
getParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
- Specified by:
getParameterMap
in interface javax.portlet.PortletRequest
getParameterNames
public java.util.Enumeration<java.lang.String> getParameterNames()
- Specified by:
getParameterNames
in interface javax.portlet.PortletRequest
getParameterValues
public java.lang.String[] getParameterValues(java.lang.String arg0)
- 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.PortletRequest
getPreferences
public javax.portlet.PortletPreferences getPreferences()
- Specified by:
getPreferences
in interface javax.portlet.PortletRequest
getPrivateParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getPrivateParameterMap()
- Specified by:
getPrivateParameterMap
in interface javax.portlet.PortletRequest
getProperties
public java.util.Enumeration<java.lang.String> getProperties(java.lang.String arg0)
- Specified by:
getProperties
in interface javax.portlet.PortletRequest
getProperty
public java.lang.String getProperty(java.lang.String arg0)
- Specified by:
getProperty
in interface javax.portlet.PortletRequest
getPropertyNames
public java.util.Enumeration<java.lang.String> getPropertyNames()
- Specified by:
getPropertyNames
in interface javax.portlet.PortletRequest
getPublicParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getPublicParameterMap()
- Specified by:
getPublicParameterMap
in interface javax.portlet.PortletRequest
getRemoteUser
public java.lang.String getRemoteUser()
- Specified by:
getRemoteUser
in interface javax.portlet.PortletRequest
getRequestedSessionId
public java.lang.String getRequestedSessionId()
- Specified by:
getRequestedSessionId
in interface javax.portlet.PortletRequest
getResponseContentType
public java.lang.String getResponseContentType()
- Specified by:
getResponseContentType
in interface javax.portlet.PortletRequest
getResponseContentTypes
public java.util.Enumeration<java.lang.String> getResponseContentTypes()
- Specified by:
getResponseContentTypes
in interface javax.portlet.PortletRequest
getScheme
public java.lang.String getScheme()
- Specified by:
getScheme
in interface javax.portlet.PortletRequest
getServerName
public java.lang.String getServerName()
- Specified by:
getServerName
in interface javax.portlet.PortletRequest
getServerPort
public int getServerPort()
- Specified by:
getServerPort
in interface javax.portlet.PortletRequest
getUserPrincipal
public java.security.Principal getUserPrincipal()
- Specified by:
getUserPrincipal
in interface javax.portlet.PortletRequest
getWindowID
public java.lang.String getWindowID()
- Specified by:
getWindowID
in interface javax.portlet.PortletRequest
getWindowState
public javax.portlet.WindowState getWindowState()
- Specified by:
getWindowState
in interface javax.portlet.PortletRequest
isPortletModeAllowed
public boolean isPortletModeAllowed(javax.portlet.PortletMode arg0)
- 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(java.lang.String arg0)
- Specified by:
isUserInRole
in interface javax.portlet.PortletRequest
isWindowStateAllowed
public boolean isWindowStateAllowed(javax.portlet.WindowState arg0)
- Specified by:
isWindowStateAllowed
in interface javax.portlet.PortletRequest
removeAttribute
public void removeAttribute(java.lang.String arg0)
- Specified by:
removeAttribute
in interface javax.portlet.PortletRequest
setAttribute
public void setAttribute(java.lang.String arg0,
java.lang.Object arg1)
- Specified by:
setAttribute
in interface javax.portlet.PortletRequest
Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.