org.apache.wicket.request
Interface IRequestCodingStrategy

All Superinterfaces:
IRequestTargetMounter
All Known Implementing Classes:
CryptedUrlWebRequestCodingStrategy, UrlCompressingWebCodingStrategy, WebRequestCodingStrategy

public interface IRequestCodingStrategy
extends IRequestTargetMounter

Implementations of this interface are responsible for digesting the incoming request and creating a suitable RequestParameters object for it, as well as creating url representations for request targets.

Author:
Eelco Hillenius

Method Summary
 RequestParameters decode(Request request)
          Analyze the request and create a corresponding request parameters object for it.
 java.lang.CharSequence encode(RequestCycle requestCycle, IRequestTarget requestTarget)
           Gets the url that will point to the provided request target.
 
Methods inherited from interface org.apache.wicket.request.IRequestTargetMounter
mount, pathForTarget, targetForRequest, unmount, urlCodingStrategyForPath
 

Method Detail

decode

RequestParameters decode(Request request)
Analyze the request and create a corresponding request parameters object for it.

Parameters:
request - the incoming request
Returns:
a request parameters object that corresponds to the request

encode

java.lang.CharSequence encode(RequestCycle requestCycle,
                              IRequestTarget requestTarget)

Gets the url that will point to the provided request target.

If an implementation supports mounting, it should return the mounted path for the provided request target if any.

Parameters:
requestCycle - the current request cycle (for efficient access)
requestTarget - the request target
Returns:
the url to the provided target


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.