wicket.request.target.coding
Interface IRequestTargetUrlCodingStrategy

All Known Subinterfaces:
IMountableRequestTargetUrlCodingStrategy
All Known Implementing Classes:
AbstractRequestTargetUrlCodingStrategy, BookmarkablePageRequestTargetUrlCodingStrategy, IndexedParamUrlCodingStrategy, PackageRequestTargetUrlCodingStrategy, QueryStringUrlCodingStrategy, SharedResourceRequestTargetUrlCodingStrategy

public interface IRequestTargetUrlCodingStrategy

Implementations of this interface know how to encode and decode request targets to/from a URL.

Author:
Eelco Hillenius

Method Summary
 IRequestTarget decode(RequestParameters requestParameters)
          Gets the decoded request target.
 java.lang.CharSequence encode(IRequestTarget requestTarget)
          Gets the encoded url for the provided request target.
 boolean matches(IRequestTarget requestTarget)
          Gets whether this mounter is applicable for the provided request target.
 

Method Detail

decode

IRequestTarget decode(RequestParameters requestParameters)
Gets the decoded request target.

Parameters:
requestParameters - the request parameters
Returns:
the decoded request target

encode

java.lang.CharSequence encode(IRequestTarget requestTarget)
Gets the encoded url for the provided request target. Typically, the result will be prepended with a protocol specific prefix. In a servlet environment, the prefix typically is the context-path + servlet path, eg mywebapp/myservletname.

Parameters:
requestTarget - the request target to encode
Returns:
the encoded url

matches

boolean matches(IRequestTarget requestTarget)
Gets whether this mounter is applicable for the provided request target.

Parameters:
requestTarget - the request target
Returns:
whether this mounter is applicable for the provided request target


Copyright © 2004-2007 Wicket developers. All Rights Reserved.