|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.url.support.ChannelRequestParameterManager
public class ChannelRequestParameterManager
Manages access to channel request parameters using a request attribute.
| Field Summary | |
|---|---|
protected static String |
CHANNEL_PARAMETER_MAP_ATTRIBUTE
|
protected static Map<String,Map<String,Object[]>> |
NO_PARAMETERS
|
| Constructor Summary | |
|---|---|
ChannelRequestParameterManager()
|
|
| Method Summary | |
|---|---|
protected Map<String,Map<String,Object[]>> |
getAndCheckChannelParameterMaps(HttpServletRequest request)
Gets the Map of channel parameter Maps from the request, throws a RequestParameterProcessingIncompleteException if
no attribute exists in the request and returns null if the NO_PARAMETERS map has been set. |
Map<String,Object[]> |
getChannelParameters(HttpServletRequest request,
String channelId)
Gets the parameter Map for the specified channel Id for the request. |
protected Map<String,Map<String,Object[]>> |
getChannelParametersMap(HttpServletRequest request)
Get the Map of channel parameter Maps from the request, hiding the generics casting warning. |
Set<String> |
getTargetedChannelIds(HttpServletRequest request)
Get all channelIds that have had parameters associated with them for this request. |
void |
setChannelParameters(HttpServletRequest request,
String channelId,
Map<String,Object[]> parameters)
Associates the parameter Map with the specified channel ID for the request. |
void |
setNoChannelParameters(HttpServletRequest request)
Mark this request as not having any channel request parameters associated with it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String CHANNEL_PARAMETER_MAP_ATTRIBUTE
protected static final Map<String,Map<String,Object[]>> NO_PARAMETERS
| Constructor Detail |
|---|
public ChannelRequestParameterManager()
| Method Detail |
|---|
public Map<String,Object[]> getChannelParameters(HttpServletRequest request,
String channelId)
IChannelRequestParameterManager
getChannelParameters in interface IChannelRequestParameterManagerrequest - The current request.channelId - The ID of the channel to get parameters for.
public Set<String> getTargetedChannelIds(HttpServletRequest request)
IChannelRequestParameterManager
getTargetedChannelIds in interface IChannelRequestParameterManagerrequest - The current request.
public void setChannelParameters(HttpServletRequest request,
String channelId,
Map<String,Object[]> parameters)
IChannelRequestParameterManager
setChannelParameters in interface IChannelRequestParameterManagerrequest - The current request.channelId - The ID of the channel to store parameters for.parameters - The parameter map for the channel.public void setNoChannelParameters(HttpServletRequest request)
IChannelRequestParameterManager
setNoChannelParameters in interface IChannelRequestParameterManagerrequest - The current request.protected Map<String,Map<String,Object[]>> getAndCheckChannelParameterMaps(HttpServletRequest request)
RequestParameterProcessingIncompleteException if
no attribute exists in the request and returns null if the NO_PARAMETERS map has been set.
request - Current request.
NO_PARAMETERS object is set.
RequestParameterProcessingIncompleteException - if no channel parameter processing has happened for the request yet.protected Map<String,Map<String,Object[]>> getChannelParametersMap(HttpServletRequest request)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||