wicket.protocol.http.request.urlcompressing
Class WebURLCompressingTargetResolverStrategy
java.lang.Object
wicket.request.compound.DefaultRequestTargetResolverStrategy
wicket.protocol.http.request.urlcompressing.WebURLCompressingTargetResolverStrategy
- All Implemented Interfaces:
- IRequestTargetResolverStrategy
public class WebURLCompressingTargetResolverStrategy
- extends DefaultRequestTargetResolverStrategy
Use this ResolverStrategy with the WebURLCompressingCodingStrategy 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 newRequestCycleProcessor() method. To make a request cycle
processor with this ResolverStrategy and the WebURLCompressingCodingStrategy
protected IRequestCycleProcessor newRequestCycleProcessor()
{
return new CompoundRequestCycleProcessor(new WebURLCompressingCodingStrategy(),new WebURLCompressingTargetResolverStrategy(),null,null,null);
}
- Since:
- 1.2
- Author:
- jcompagner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebURLCompressingTargetResolverStrategy
public WebURLCompressingTargetResolverStrategy()
resolveListenerInterfaceTarget
protected IRequestTarget resolveListenerInterfaceTarget(RequestCycle requestCycle,
Page page,
java.lang.String componentPath,
java.lang.String interfaceName,
RequestParameters requestParameters)
- Resolves the RequestTarget for the given interface. This method can be
overriden if some special interface needs to resolve to its own target.
- Overrides:
resolveListenerInterfaceTarget in class DefaultRequestTargetResolverStrategy
- Parameters:
requestCycle - The current RequestCycle objectpage - The page object which holds the component for which this
interface is called on.componentPath - The component path for looking up the component in the page.interfaceName - The interface to resolve.requestParameters -
- Returns:
- The RequestTarget that was resolved
Copyright © 2004-2007 Wicket developers. All Rights Reserved.