wicket.protocol.http.request.urlcompressing
Class WebURLCompressingCodingStrategy

java.lang.Object
  extended by wicket.protocol.http.request.WebRequestCodingStrategy
      extended by wicket.protocol.http.request.urlcompressing.WebURLCompressingCodingStrategy
All Implemented Interfaces:
IRequestCodingStrategy, IRequestTargetMounter, IRequestTargetMountsInfo

public class WebURLCompressingCodingStrategy
extends WebRequestCodingStrategy

Use this CodingStategy with the WebURLCompressingTargetResolverStrategy to minimize the wicket:interface urls. The component path and the interface name will be removed from the url and only an uid will be inserted into the url. To use this url compressing behaviour you must override the WebApplication's newRequestCycleProcessor() method. To make a request cycle processor with this CodingStrategy and the WebURLCompressingTargetResolverStrategy

 protected IRequestCycleProcessor newRequestCycleProcessor()
 {
   return new CompoundRequestCycleProcessor(new WebURLCompressingCodingStrategy(),new WebURLCompressingTargetResolverStrategy(),null,null,null);
 }
 

Since:
1.2
Author:
jcompagner

Field Summary
 
Fields inherited from class wicket.protocol.http.request.WebRequestCodingStrategy
BEHAVIOR_ID_PARAMETER_NAME, BOOKMARKABLE_PAGE_PARAMETER_NAME, IGNORE_IF_NOT_ACTIVE_PARAMETER_NAME, INTERFACE_PARAMETER_NAME, NAME_SPACE, PAGEMAP
 
Constructor Summary
WebURLCompressingCodingStrategy()
           
 
Method Summary
protected  java.lang.CharSequence encode(RequestCycle requestCycle, IListenerInterfaceRequestTarget requestTarget)
          Encode a listener interface target.
 
Methods inherited from class wicket.protocol.http.request.WebRequestCodingStrategy
addBookmarkablePageParameters, addInterfaceParameters, addResourceParameters, decode, doEncode, encode, encode, encode, encode, getMountEncoder, getRequestPath, listMounts, mount, pathForTarget, targetForRequest, unmount, urlCodingStrategyForPath, urlPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebURLCompressingCodingStrategy

public WebURLCompressingCodingStrategy()
Method Detail

encode

protected java.lang.CharSequence encode(RequestCycle requestCycle,
                                        IListenerInterfaceRequestTarget requestTarget)
Encode a listener interface target.

Overrides:
encode in class WebRequestCodingStrategy
Parameters:
requestCycle - the current request cycle
requestTarget - the target to encode
Returns:
the encoded url


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