Module org.apache.wicket.request
Class PageParametersEncoder
java.lang.Object
org.apache.wicket.request.mapper.parameter.PageParametersEncoder
- All Implemented Interfaces:
IPageParametersEncoder
Simple encoder with direct indexed/named parameters mapping.
- Author:
- Matej Knopp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecodePageParameters
(Url url) Decodes the given URL toPageParameters
.encodePageParameters
(PageParameters pageParameters) Encode the givenPageParameters
instance into URL.
-
Constructor Details
-
PageParametersEncoder
public PageParametersEncoder()Construct.
-
-
Method Details
-
decodePageParameters
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
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
-