|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.request.resource.caching.AbstractResourceCachingStrategy
org.apache.wicket.request.resource.caching.QueryStringWithTimestampResourceCachingStrategy
public class QueryStringWithTimestampResourceCachingStrategy
resource caching strategy that adds a last-modified timestamp to the query string of the resource (this is similar to how wicket 1.4 does it when enabling timestamps on resources).
Field Summary |
---|
Fields inherited from class org.apache.wicket.request.resource.caching.AbstractResourceCachingStrategy |
---|
TIMESTAMP_KEY |
Constructor Summary | |
---|---|
QueryStringWithTimestampResourceCachingStrategy()
Constructor |
|
QueryStringWithTimestampResourceCachingStrategy(String timestampParameter)
Constructor |
Method Summary | |
---|---|
void |
decorateResponse(AbstractResource.ResourceResponse response)
decorate resource response |
void |
decorateUrl(ResourceUrl url,
ResourceReference reference)
add caching related information to filename + parameters |
String |
getTimestampParameter()
|
void |
undecorateUrl(ResourceUrl url)
Removes caching related information from filename + parameters. |
Methods inherited from class org.apache.wicket.request.resource.caching.AbstractResourceCachingStrategy |
---|
getLastModified, isLastModifiedCacheEnabled, setLastModifiedCacheEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryStringWithTimestampResourceCachingStrategy()
public QueryStringWithTimestampResourceCachingStrategy(String timestampParameter)
timestampParameter
- name of timestamp parameter which will be added to query stringMethod Detail |
---|
public final String getTimestampParameter()
public void decorateUrl(ResourceUrl url, ResourceReference reference)
IResourceCachingStrategy
url
- parameters to which caching information should be added and which will be used to
construct the url to the resourcereference
- resource referencepublic void undecorateUrl(ResourceUrl url)
IResourceCachingStrategy
IResourceCachingStrategy.decorateUrl(ResourceUrl, ResourceReference)
did.
url
- parameters that were used to construct the url to the resource and from which
previously added caching information should be strippedpublic void decorateResponse(AbstractResource.ResourceResponse response)
IResourceCachingStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |