Class UrlRequestParametersAdapter
- java.lang.Object
-
- org.apache.wicket.request.parameter.UrlRequestParametersAdapter
-
- All Implemented Interfaces:
IRequestParameters
public class UrlRequestParametersAdapter extends Object implements IRequestParameters
Utility class that expresses query parameters fromUrl
asIRequestParameters
.- Author:
- Matej Knopp
-
-
Constructor Summary
Constructors Constructor Description UrlRequestParametersAdapter(Url url)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getParameterNames()
Returns immutable set of all available parameter names.StringValue
getParameterValue(String name)
Returns single value for parameter with specified name.List<StringValue>
getParameterValues(String name)
Returns list of values for parameter with specified name.
-
-
-
Constructor Detail
-
UrlRequestParametersAdapter
public UrlRequestParametersAdapter(Url url)
Construct.- Parameters:
url
-
-
-
Method Detail
-
getParameterNames
public Set<String> getParameterNames()
Description copied from interface:IRequestParameters
Returns immutable set of all available parameter names.- Specified by:
getParameterNames
in interfaceIRequestParameters
- Returns:
- list of parameter names
- See Also:
IRequestParameters.getParameterNames()
-
getParameterValue
public StringValue getParameterValue(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 interfaceIRequestParameters
- Parameters:
name
- parameter name- Returns:
StringValue
wrapping the actual value- See Also:
IRequestParameters.getParameterValue(java.lang.String)
-
getParameterValues
public List<StringValue> getParameterValues(String name)
Description copied from interface:IRequestParameters
Returns list of values for parameter with specified name. If the parameter does not exist this method returnsnull
- Specified by:
getParameterValues
in interfaceIRequestParameters
- 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)
-
-