wicket
Class PageParameters

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by wicket.util.value.ValueMap
              extended by wicket.PageParameters
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public final class PageParameters
extends ValueMap

A typesafe abstraction and container for parameters to a requested page. Page parameters in HTTP are query string values in the request URL. In other protocols, the parameters to a page might come from some other source.

Pages which take a PageParameters object as an argument to their constructor can be accessed directly from a URL and are known as "bookmarkable" pages since the URL is stable across sessions and can be stored in a browser's bookmark database.

Author:
Jonathan Locke
See Also:
Serialized Form

Field Summary
static PageParameters NULL
          Null value for page parameters
 
Fields inherited from class wicket.util.value.ValueMap
EMPTY_MAP
 
Constructor Summary
PageParameters()
          Constructor
PageParameters(java.util.Map parameterMap)
          Copy constructor.
PageParameters(java.lang.String keyValuePairs)
          Construct.
PageParameters(java.lang.String keyValuePairs, java.lang.String delimiter)
          Construct.
 
Method Summary
 
Methods inherited from class wicket.util.value.ValueMap
add, clear, getBoolean, getCharSequence, getDouble, getDouble, getDuration, getInt, getInt, getKey, getLong, getLong, getString, getString, getStringArray, getStringValue, getTime, isImmutable, makeImmutable, put, putAll, remove, toString
 
Methods inherited from class java.util.HashMap
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

NULL

public static final PageParameters NULL
Null value for page parameters

Constructor Detail

PageParameters

public PageParameters()
Constructor


PageParameters

public PageParameters(java.util.Map parameterMap)
Copy constructor.

Parameters:
map - The map to copy
See Also:
ValueMap.ValueMap(java.util.Map)

PageParameters

public PageParameters(java.lang.String keyValuePairs)
Construct.

Parameters:
keyValuePairs - List of key value pairs separated by commas. For example, "param1=foo,param2=bar"
See Also:
ValueMap.ValueMap(String)

PageParameters

public PageParameters(java.lang.String keyValuePairs,
                      java.lang.String delimiter)
Construct.

Parameters:
keyValuePairs - List of key value pairs separated by commas. For example, "param1=foo,param2=bar"
delimiter - Delimiter string used to separate key/value pairs
See Also:
ValueMap.ValueMap(String)


Copyright © 2004-2007 Wicket developers. All Rights Reserved.