wicket.protocol.http.request.urlcompressing
Class WebURLCompressingCodingStrategy
java.lang.Object
wicket.protocol.http.request.WebRequestCodingStrategy
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
| 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 |
WebURLCompressingCodingStrategy
public WebURLCompressingCodingStrategy()
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 cyclerequestTarget - the target to encode
- Returns:
- the encoded url
Copyright © 2004-2007 Wicket developers. All Rights Reserved.