Class PageParametersEncoder
- java.lang.Object
-
- org.apache.wicket.request.mapper.parameter.PageParametersEncoder
-
- All Implemented Interfaces:
IPageParametersEncoder
public class PageParametersEncoder extends Object implements IPageParametersEncoder
Simple encoder with direct indexed/named parameters mapping.- Author:
- Matej Knopp
-
-
Constructor Summary
Constructors Constructor Description PageParametersEncoder()
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PageParameters
decodePageParameters(Url url)
Decodes the given URL toPageParameters
.Url
encodePageParameters(PageParameters pageParameters)
Encode the givenPageParameters
instance into URL.
-
-
-
Constructor Detail
-
PageParametersEncoder
public PageParametersEncoder()
Construct.
-
-
Method Detail
-
decodePageParameters
public PageParameters decodePageParameters(Url url)
Description copied from interface:IPageParametersEncoder
Decodes the given URL toPageParameters
. The URL will have allIRequestHandler
specified segments/parameters stripped.- Specified by:
decodePageParameters
in interfaceIPageParametersEncoder
- Parameters:
url
- url to decode- Returns:
PageParameters
instance ornull
if empty
-
encodePageParameters
public Url encodePageParameters(PageParameters pageParameters)
Description copied from interface:IPageParametersEncoder
Encode the givenPageParameters
instance into URL. The URL will be then merged with the URL generated forIRequestHandler
.- Specified by:
encodePageParameters
in interfaceIPageParametersEncoder
- Parameters:
pageParameters
- parameters to encode- Returns:
- Url generated from the page parameters
-
-