org.apache.wicket.protocol.http.request.urlcompressing
Class UrlCompressingWebRequestProcessor
java.lang.Object
org.apache.wicket.request.AbstractRequestCycleProcessor
org.apache.wicket.protocol.http.WebRequestCycleProcessor
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlCompressingWebRequestProcessor
public UrlCompressingWebRequestProcessor()
- Construct.
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 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.
- 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.