org.apache.wicket.request.mapper.parameter
Interface IPageParametersEncoder

All Known Implementing Classes:
PageParametersEncoder, UrlPathPageParametersEncoder

public interface IPageParametersEncoder

Encoder that can encode and decode PageParameters to/from URL.

Author:
Matej Knopp

Method Summary
 PageParameters decodePageParameters(Url url)
          Decodes the given URL to PageParameters.
 Url encodePageParameters(PageParameters pageParameters)
          Encode the given PageParameters instance into URL.
 

Method Detail

encodePageParameters

Url encodePageParameters(PageParameters pageParameters)
Encode the given PageParameters instance into URL. The URL will be then merged with the URL generated for IRequestHandler.

Parameters:
pageParameters - parameters to encode
Returns:
Url generated from the page parameters

decodePageParameters

PageParameters decodePageParameters(Url url)
Decodes the given URL to PageParameters. The URL will have all IRequestHandler specified segments/parameters stripped.

Parameters:
url - url to decode
Returns:
PageParameters instance or null if empty


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.