wicket.protocol.http.request.urlcompressing
Class WebURLCompressingTargetResolverStrategy

java.lang.Object
  extended by wicket.request.compound.DefaultRequestTargetResolverStrategy
      extended by 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

Constructor Summary
WebURLCompressingTargetResolverStrategy()
           
 
Method Summary
protected  IRequestTarget resolveListenerInterfaceTarget(RequestCycle requestCycle, Page page, java.lang.String componentPath, java.lang.String interfaceName, RequestParameters requestParameters)
          Resolves the RequestTarget for the given interface.
 
Methods inherited from class wicket.request.compound.DefaultRequestTargetResolverStrategy
resolve, resolveBookmarkablePage, resolveExternalResource, resolveHomePageTarget, resolveRenderedPage, resolveSharedResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebURLCompressingTargetResolverStrategy

public WebURLCompressingTargetResolverStrategy()
Method Detail

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 object
page - 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.