wicket.protocol.http.request.urlcompressing
Class URLCompressor
java.lang.Object
wicket.protocol.http.request.urlcompressing.URLCompressor
- All Implemented Interfaces:
- java.io.Serializable
public class URLCompressor
- extends java.lang.Object
- implements java.io.Serializable
This class generates UID for Component/Interface combinations when used in
conjunction with WebURLCompressingCodingStrategy and
WebURLCompressingTargetResolverStrategy
To use the 2 strategies you have to create your own
CompoundRequestCycleProcessor in your
application's newRequestCycleProcessor() method, which should be overridden
and implemented like this:
protected IRequestCycleProcessor newRequestCycleProcessor()
{
return new CompoundRequestCycleProcessor(new WebURLCompressingCodingStrategy(),
new WebURLCompressingTargetResolverStrategy(), null, null, null);
}
- Since:
- 1.2
- Author:
- jcompagner
- See Also:
WebURLCompressingCodingStrategy,
WebURLCompressingTargetResolverStrategy,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLCompressor
public URLCompressor()
getNewUID
public int getNewUID()
- Returns:
- the next uid for this url compressor
getUIDForComponentAndInterface
public int getUIDForComponentAndInterface(Component component,
java.lang.String interfaceName)
- Returns a uid for the combination component and the to call interface.
Will return the same uid if it was already called for this specific
combination.
- Parameters:
component - The ComponentinterfaceName - The interface name
- Returns:
- int The uid for the component/interfaceName combination
getComponentAndInterfaceForUID
public URLCompressor.ComponentAndInterface getComponentAndInterfaceForUID(java.lang.String uidString)
- Gets the combination
- Parameters:
uidString -
- Returns:
- ComponentAndInterface
Copyright © 2004-2007 Wicket developers. All Rights Reserved.