public class PageParametersEncoder extends Object implements IPageParametersEncoder
Constructor and Description |
---|
PageParametersEncoder()
Construct.
|
Modifier and Type | Method and Description |
---|---|
PageParameters |
decodePageParameters(Url url)
Decodes the given URL to
PageParameters . |
Url |
encodePageParameters(PageParameters pageParameters)
Encode the given
PageParameters instance into URL. |
public PageParameters decodePageParameters(Url url)
IPageParametersEncoder
PageParameters
. The URL will have all
IRequestHandler
specified segments/parameters stripped.decodePageParameters
in interface IPageParametersEncoder
url
- url to decodePageParameters
instance or null
if emptypublic Url encodePageParameters(PageParameters pageParameters)
IPageParametersEncoder
PageParameters
instance into URL. The URL will be then merged with
the URL generated for IRequestHandler
.encodePageParameters
in interface IPageParametersEncoder
pageParameters
- parameters to encodeCopyright © 2006–2022 Apache Software Foundation. All rights reserved.