Interface IPageParametersEncoder
-
- All Known Implementing Classes:
PageParametersEncoder
,UrlPathPageParametersEncoder
public interface IPageParametersEncoder
Encoder that can encode and decodePageParameters
to/from URL.- Author:
- Matej Knopp
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
encodePageParameters
Url encodePageParameters(PageParameters pageParameters)
Encode the givenPageParameters
instance into URL. The URL will be then merged with the URL generated forIRequestHandler
.- Parameters:
pageParameters
- parameters to encode- Returns:
- Url generated from the page parameters
-
decodePageParameters
PageParameters decodePageParameters(Url url)
Decodes the given URL toPageParameters
. The URL will have allIRequestHandler
specified segments/parameters stripped.- Parameters:
url
- url to decode- Returns:
PageParameters
instance ornull
if empty
-
-