org.displaytag.portlet
Class PortletRequestHelper
java.lang.Object
org.displaytag.portlet.PortletRequestHelper
- All Implemented Interfaces:
- RequestHelper
public class PortletRequestHelper
- extends java.lang.Object
- implements RequestHelper
Reads parameters and generates URLs using javax.portlet APIs. The PageContext passed into
the constructor must provide the PortletRequest via an attribute named
JAVAX_PORTLET_REQUEST and RenderResponse via an attribute named
JAVAX_PORTLET_RESPONSE.
If the pluto portlet container is being used these objects should be setup appropriatly already.
- Version:
- $Id: PortletRequestHelper.java 996 2006-01-06 15:34:08Z fgiust $
- Author:
- Eric Dalquist dalquist@gmail.com
|
Constructor Summary |
PortletRequestHelper(javax.servlet.jsp.PageContext pageContext)
Creates a new request helper for the specified PageContext. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAVAX_PORTLET_RESPONSE
public static final java.lang.String JAVAX_PORTLET_RESPONSE
- See Also:
- Constant Field Values
JAVAX_PORTLET_REQUEST
public static final java.lang.String JAVAX_PORTLET_REQUEST
- See Also:
- Constant Field Values
PortletRequestHelper
public PortletRequestHelper(javax.servlet.jsp.PageContext pageContext)
- Creates a new request helper for the specified PageContext. Retrieves the PortletRequest and RenderResponse from
the PageContext.
- Parameters:
pageContext - Current JSP context.
- Throws:
java.lang.IllegalStateException - If the PortletRequest or RenderResponse are not found in the PageContext.
getHref
public Href getHref()
- Specified by:
getHref in interface RequestHelper
- See Also:
RequestHelper.getHref()
getParameter
public java.lang.String getParameter(java.lang.String key)
- Specified by:
getParameter in interface RequestHelper
- See Also:
RequestHelper.getParameter(java.lang.String)
getIntParameter
public java.lang.Integer getIntParameter(java.lang.String key)
- Specified by:
getIntParameter in interface RequestHelper
- See Also:
RequestHelper.getIntParameter(java.lang.String)
getParameterMap
public java.util.Map getParameterMap()
- Specified by:
getParameterMap in interface RequestHelper
- See Also:
RequestHelper.getParameterMap()
Copyright © 2002-2010 the Displaytag team. All Rights Reserved.