org.apache.tapestry5.internal.services
Class RequestPathOptimizerImpl
java.lang.Object
org.apache.tapestry5.internal.services.RequestPathOptimizerImpl
- All Implemented Interfaces:
- RequestPathOptimizer
public class RequestPathOptimizerImpl
- extends Object
- implements RequestPathOptimizer
|
Method Summary |
String |
optimizePath(String absolutePath)
Optimizes the provided path, returning a new path that is shorter but (combined with the current requests' base
URL) will result in the same request URI. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestPathOptimizerImpl
public RequestPathOptimizerImpl(Request request,
@Symbol(value="tapestry.force-absolute-uris")
boolean forceAbsolute)
optimizePath
public String optimizePath(String absolutePath)
- Description copied from interface:
RequestPathOptimizer
- Optimizes the provided path, returning a new path that is shorter but (combined with the current requests' base
URL) will result in the same request URI. In many cases, this will return the provided path unchanged. During
XHR requests, this will always return the provided
path (no optimization takes place, since the base URI of the client is unknown).
- Specified by:
optimizePath in interface RequestPathOptimizer
- Parameters:
absolutePath - to be optimized
- Returns:
- the same path, or a new path that is equivalent, relative to the current request's URL
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.