org.jasig.portal.portlet.container.properties
Class BaseRequestPropertiesManager
java.lang.Object
org.jasig.portal.portlet.container.properties.BaseRequestPropertiesManager
- All Implemented Interfaces:
- IRequestPropertiesManager
- Direct Known Subclasses:
- CacheRequestPropertiesManager, HttpRequestPropertiesManager
public abstract class BaseRequestPropertiesManager
- extends Object
- implements IRequestPropertiesManager
Do nothing base class for IRequestPropertiesManager impls. getRequestProperties(HttpServletRequest, IPortletWindow)
returns Collections.emptyList()
- Version:
- $Revision$
- Author:
- Eric Dalquist
|
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
|
Method Summary |
void |
addResponseProperty(HttpServletRequest portletRequest,
IPortletWindow portletWindow,
String property,
String value)
Called when a portlet sets a property via PortletResponse.addProperty(String, String). |
Map<String,String[]> |
getRequestProperties(HttpServletRequest portletRequest,
IPortletWindow portletWindow)
Called when a portlet gets the request properties via PortletRequest.getProperties(String),
PortletRequest.getProperty(String), or PortletRequest.getPropertyNames(). |
void |
setResponseProperty(HttpServletRequest portletRequest,
IPortletWindow portletWindow,
String property,
String value)
Called when a portlet sets a property via PortletResponse.setProperty(String, String). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
BaseRequestPropertiesManager
public BaseRequestPropertiesManager()
addResponseProperty
public void addResponseProperty(HttpServletRequest portletRequest,
IPortletWindow portletWindow,
String property,
String value)
- Description copied from interface:
IRequestPropertiesManager
- Called when a portlet sets a property via
PortletResponse.addProperty(String, String). This
method should follow the same rules as the PortletResponse method and add the value to any existing property of
the same name.
- Specified by:
addResponseProperty in interface IRequestPropertiesManager
- Parameters:
portletRequest - The request the addProperty call was made duringportletWindow - The PortletWindow representing the portlet calling addPropertyproperty - The name of the property to add, will not be null.value - The value of the property to add, may be null.
getRequestProperties
public Map<String,String[]> getRequestProperties(HttpServletRequest portletRequest,
IPortletWindow portletWindow)
- Description copied from interface:
IRequestPropertiesManager
- Called when a portlet gets the request properties via
PortletRequest.getProperties(String),
PortletRequest.getProperty(String), or PortletRequest.getPropertyNames().
- Specified by:
getRequestProperties in interface IRequestPropertiesManager
- Parameters:
portletRequest - The request the call was made duringportletWindow - The PortletWindow representing the portlet requesting properties.
- Returns:
- A Map of properties to present to the portlet, must not be null.
setResponseProperty
public void setResponseProperty(HttpServletRequest portletRequest,
IPortletWindow portletWindow,
String property,
String value)
- Description copied from interface:
IRequestPropertiesManager
- Called when a portlet sets a property via
PortletResponse.setProperty(String, String). This
method should follow the same rules as the PortletResponse method and overwrite any existing property of the same
name.
- Specified by:
setResponseProperty in interface IRequestPropertiesManager
- Parameters:
portletRequest - The request the setProperty call was made duringportletWindow - The PortletWindow representing the portlet calling setPropertyproperty - The name of the property to set, will not be null.value - The value of the property to set, may be null.
Copyright © 2010 Jasig. All Rights Reserved.