|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.test.mock.MockPortletRequest
public class MockPortletRequest
Mock implementation of PortletRequest
.
Field Summary |
---|
Fields inherited from interface javax.portlet.PortletRequest |
---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO |
Constructor Summary | |
---|---|
MockPortletRequest()
|
|
MockPortletRequest(javax.portlet.PortletSession session)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockPortletRequest()
public MockPortletRequest(javax.portlet.PortletSession session)
Method Detail |
---|
public void addParameter(String name, String value)
Add a request parameter for this request.
name
- Parameter namevalue
- Parameter valuepublic void setPortletSession(javax.portlet.PortletSession session)
Set the PortletSession
associated with this request.
session
- The new sessionpublic void setLocale(Locale locale)
Set the Locale
associated with this request.
locale
- The new localepublic void setUserPrincipal(Principal principal)
Set the Principal
associated with this request.
principal
- The new Principalpublic String getAuthType()
getAuthType
in interface javax.portlet.PortletRequest
public String getContextPath()
getContextPath
in interface javax.portlet.PortletRequest
public Object getAttribute(String name)
getAttribute
in interface javax.portlet.PortletRequest
public Enumeration getAttributeNames()
getAttributeNames
in interface javax.portlet.PortletRequest
public Locale getLocale()
getLocale
in interface javax.portlet.PortletRequest
public Enumeration getLocales()
getLocales
in interface javax.portlet.PortletRequest
public String getParameter(String name)
getParameter
in interface javax.portlet.PortletRequest
public Map getParameterMap()
getParameterMap
in interface javax.portlet.PortletRequest
public Enumeration getParameterNames()
getParameterNames
in interface javax.portlet.PortletRequest
public String[] getParameterValues(String name)
getParameterValues
in interface javax.portlet.PortletRequest
public javax.portlet.PortalContext getPortalContext()
getPortalContext
in interface javax.portlet.PortletRequest
public javax.portlet.PortletMode getPortletMode()
getPortletMode
in interface javax.portlet.PortletRequest
public javax.portlet.PortletSession getPortletSession()
getPortletSession
in interface javax.portlet.PortletRequest
public javax.portlet.PortletSession getPortletSession(boolean create)
getPortletSession
in interface javax.portlet.PortletRequest
public javax.portlet.PortletPreferences getPreferences()
getPreferences
in interface javax.portlet.PortletRequest
public Enumeration getProperties(String arg0)
getProperties
in interface javax.portlet.PortletRequest
public String getProperty(String arg0)
getProperty
in interface javax.portlet.PortletRequest
public Enumeration getPropertyNames()
getPropertyNames
in interface javax.portlet.PortletRequest
public String getRemoteUser()
getRemoteUser
in interface javax.portlet.PortletRequest
public String getRequestedSessionId()
getRequestedSessionId
in interface javax.portlet.PortletRequest
public String getResponseContentType()
getResponseContentType
in interface javax.portlet.PortletRequest
public Enumeration getResponseContentTypes()
getResponseContentTypes
in interface javax.portlet.PortletRequest
public String getScheme()
getScheme
in interface javax.portlet.PortletRequest
public String getServerName()
getServerName
in interface javax.portlet.PortletRequest
public int getServerPort()
getServerPort
in interface javax.portlet.PortletRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface javax.portlet.PortletRequest
public javax.portlet.WindowState getWindowState()
getWindowState
in interface javax.portlet.PortletRequest
public boolean isPortletModeAllowed(javax.portlet.PortletMode arg0)
isPortletModeAllowed
in interface javax.portlet.PortletRequest
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid
in interface javax.portlet.PortletRequest
public boolean isSecure()
isSecure
in interface javax.portlet.PortletRequest
public boolean isUserInRole(String arg0)
isUserInRole
in interface javax.portlet.PortletRequest
public boolean isWindowStateAllowed(javax.portlet.WindowState arg0)
isWindowStateAllowed
in interface javax.portlet.PortletRequest
public void removeAttribute(String name)
removeAttribute
in interface javax.portlet.PortletRequest
public void setAttribute(String name, Object value)
setAttribute
in interface javax.portlet.PortletRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |