|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.http.HttpServletRequestWrapper
com.ibm.wps.pe.pc.legacy.cmpf.PortletRequestWrapper
public class PortletRequestWrapper
Provides a convenient implementation of the PortletRequest interface that can be subclassed by developers who wish to wrap the request to a Portlet. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped request object.
PortletRequest
Constructor Summary | |
---|---|
PortletRequestWrapper(PortletRequest portletRequest)
Creates a PortletRequest adaptor wrapping the specified request object. |
Method Summary | |
---|---|
Client |
getClient()
|
protected ClientWrapper |
getClientWrapper()
Use this method to return a wrapped client instead of the getClient method |
PortletData |
getData()
|
Portlet.Mode |
getMode()
|
protected PortletRequest |
getPortletRequest()
Returns the wrapped ServletRequest object. |
PortletSession |
getPortletSession()
|
PortletSession |
getPortletSession(boolean create)
|
PortletSettings |
getPortletSettings()
|
Portlet.Mode |
getPreviousMode()
|
User |
getUser()
|
PortletWindow |
getWindow()
|
void |
invalidateCache()
|
void |
setModeModifier(Portlet.ModeModifier modeModifier)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortletRequestWrapper(PortletRequest portletRequest)
portletRequest
- the portlet request
java.lang.IllegalArgumentException
- if the request is nullMethod Detail |
---|
protected PortletRequest getPortletRequest()
public Portlet.Mode getMode()
public Portlet.Mode getPreviousMode()
public void setModeModifier(Portlet.ModeModifier modeModifier) throws AccessDeniedException
AccessDeniedException
public final Client getClient()
protected ClientWrapper getClientWrapper()
Client
public PortletWindow getWindow()
public PortletData getData()
public User getUser()
public PortletSession getPortletSession()
public PortletSession getPortletSession(boolean create)
public PortletSettings getPortletSettings()
public void invalidateCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |