org.apache.wicket.request.parameter
Class EmptyRequestParameters

java.lang.Object
  extended by org.apache.wicket.request.parameter.EmptyRequestParameters
All Implemented Interfaces:
IRequestParameters

public class EmptyRequestParameters
extends java.lang.Object
implements IRequestParameters

Read only empty IRequestParameters.

Author:
Matej Knopp

Field Summary
static EmptyRequestParameters INSTANCE
          Singleton instance.
 
Method Summary
 java.util.Set<java.lang.String> getParameterNames()
          Returns immutable set of all available parameter names.
 StringValue getParameterValue(java.lang.String name)
          Returns single value for parameter with specified name.
 java.util.List<StringValue> getParameterValues(java.lang.String name)
          Returns list of values for parameter with specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final EmptyRequestParameters INSTANCE
Singleton instance.

Method Detail

getParameterNames

public java.util.Set<java.lang.String> getParameterNames()
Description copied from interface: IRequestParameters
Returns immutable set of all available parameter names.

Specified by:
getParameterNames in interface IRequestParameters
Returns:
list of parameter names
See Also:
IRequestParameters.getParameterNames()

getParameterValue

public StringValue getParameterValue(java.lang.String name)
Description copied from interface: IRequestParameters
Returns single value for parameter with specified name. This method always returns non-null result even if the parameter does not exist.

Specified by:
getParameterValue in interface IRequestParameters
Parameters:
name - parameter name
Returns:
StringValue wrapping the actual value
See Also:
IRequestParameters.getParameterValue(java.lang.String)

getParameterValues

public java.util.List<StringValue> getParameterValues(java.lang.String name)
Description copied from interface: IRequestParameters
Returns list of values for parameter with specified name. If the parameter does not exist this method returns null

Specified by:
getParameterValues in interface IRequestParameters
Parameters:
name - parameter name
Returns:
list of all values for given parameter or null if parameter does not exist
See Also:
IRequestParameters.getParameterValues(java.lang.String)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.