|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.resource.caching.QueryStringWithVersionResourceCachingStrategy
public class QueryStringWithVersionResourceCachingStrategy
resource caching strategy that adds a version string to the query parameters of the resource
(this is similar to how wicket 1.4 does it when enabling timestamps on resources). You should
preferably use FilenameWithVersionResourceCachingStrategy since it is more reliable.
FilenameWithVersionResourceCachingStrategy| Constructor Summary | |
|---|---|
QueryStringWithVersionResourceCachingStrategy(IResourceVersion resourceVersion)
create query string resource caching strategy it will use a query parameter named
for storing the version information. |
|
QueryStringWithVersionResourceCachingStrategy(String versionParameter,
IResourceVersion resourceVersion)
create query string resource caching strategy it will use a query parameter with name specified by parameter resourceVersion for storing the version information. |
|
| Method Summary | |
|---|---|
void |
decorateResponse(AbstractResource.ResourceResponse response,
IStaticCacheableResource resource)
decorate resource response |
void |
decorateUrl(ResourceUrl url,
IStaticCacheableResource resource)
add caching related information to filename + parameters |
String |
getVersionParameter()
|
void |
undecorateUrl(ResourceUrl url)
Removes caching related information from filename + parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryStringWithVersionResourceCachingStrategy(IResourceVersion resourceVersion)
for storing the version information.
resourceVersion - resource version provider
public QueryStringWithVersionResourceCachingStrategy(String versionParameter,
IResourceVersion resourceVersion)
resourceVersion for storing the version information.
versionParameter - name of version parameter which will be added to query string
containing the resource versionresourceVersion - resource version provider| Method Detail |
|---|
public final String getVersionParameter()
public void decorateUrl(ResourceUrl url,
IStaticCacheableResource resource)
IResourceCachingStrategy
decorateUrl in interface IResourceCachingStrategyurl - parameters to which caching information should be added and which will be used to
construct the url to the resourceresource - cacheable resourcepublic void undecorateUrl(ResourceUrl url)
IResourceCachingStrategyIResourceCachingStrategy.decorateUrl(ResourceUrl, IStaticCacheableResource)
did.
undecorateUrl in interface IResourceCachingStrategyurl - parameters that were used to construct the url to the resource and from which
previously added caching information should be stripped
public void decorateResponse(AbstractResource.ResourceResponse response,
IStaticCacheableResource resource)
IResourceCachingStrategy
decorateResponse in interface IResourceCachingStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||