org.apache.wicket.protocol.http.request.urlcompressing
Class UrlCompressingWebRequestProcessor

java.lang.Object
  extended by org.apache.wicket.request.AbstractRequestCycleProcessor
      extended by org.apache.wicket.protocol.http.WebRequestCycleProcessor
          extended by org.apache.wicket.protocol.http.request.urlcompressing.UrlCompressingWebRequestProcessor
All Implemented Interfaces:
IRequestCycleProcessor

public class UrlCompressingWebRequestProcessor
extends WebRequestCycleProcessor

Use this processor 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 behavior you must override the Application's newRequestCycleProcessor() method and return an instance of this.

Since:
1.3
Author:
jcompagner

Constructor Summary
UrlCompressingWebRequestProcessor()
          Construct.
 
Method Summary
protected  IRequestCodingStrategy newRequestCodingStrategy()
          Creates a new request coding strategy instance.
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 org.apache.wicket.protocol.http.WebRequestCycleProcessor
resolve
 
Methods inherited from class org.apache.wicket.request.AbstractRequestCycleProcessor
getRequestCodingStrategy, onRuntimeException, processEvents, resolveBookmarkablePage, resolveExternalResource, resolveHomePageTarget, resolveRenderedPage, resolveSharedResource, respond, respond
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlCompressingWebRequestProcessor

public UrlCompressingWebRequestProcessor()
Construct.

Method Detail

newRequestCodingStrategy

protected IRequestCodingStrategy newRequestCodingStrategy()
Description copied from class: AbstractRequestCycleProcessor
Creates a new request coding strategy instance. this is (typically) called once at the first time AbstractRequestCycleProcessor.getRequestCodingStrategy() is called.

Overrides:
newRequestCodingStrategy in class WebRequestCycleProcessor
Returns:
a new request coding strategy
See Also:
WebRequestCycleProcessor.newRequestCodingStrategy()

resolveListenerInterfaceTarget

protected IRequestTarget resolveListenerInterfaceTarget(RequestCycle requestCycle,
                                                        Page page,
                                                        java.lang.String componentPath,
                                                        java.lang.String interfaceName,
                                                        RequestParameters requestParameters)
Description copied from class: AbstractRequestCycleProcessor
Resolves the RequestTarget for the given interface. This method can be overridden if some special interface needs to resolve to its own target.

Overrides:
resolveListenerInterfaceTarget in class AbstractRequestCycleProcessor
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.
Returns:
The RequestTarget that was resolved
See Also:
AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(org.apache.wicket.RequestCycle, org.apache.wicket.Page, java.lang.String, java.lang.String, org.apache.wicket.request.RequestParameters)


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