org.apache.wicket.request.resource.caching
Interface IResourceCachingStrategy

All Known Implementing Classes:
AbstractResourceCachingStrategy, FilenameWithTimestampResourceCachingStrategy, NoOpResourceCachingStrategy, QueryStringWithTimestampResourceCachingStrategy

public interface IResourceCachingStrategy

caching strategy for resources

it can add and remove caching information to the filename and query string parameters of the requested resource

Author:
Peter Ertl

Method Summary
 void decorateResponse(AbstractResource.ResourceResponse response)
          decorate resource response
 void decorateUrl(ResourceUrl url, ResourceReference reference)
          add caching related information to filename + parameters
 void undecorateUrl(ResourceUrl url)
          Removes caching related information from filename + parameters.
 

Method Detail

decorateUrl

void decorateUrl(ResourceUrl url,
                 ResourceReference reference)
add caching related information to filename + parameters

Parameters:
url - parameters to which caching information should be added and which will be used to construct the url to the resource
reference - resource reference

undecorateUrl

void undecorateUrl(ResourceUrl url)
Removes caching related information from filename + parameters. In essenese this method undoes what decorateUrl(ResourceUrl, ResourceReference) did.

Parameters:
url - parameters that were used to construct the url to the resource and from which previously added caching information should be stripped

decorateResponse

void decorateResponse(AbstractResource.ResourceResponse response)
decorate resource response

Parameters:
response -


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.