com.sun.appserv.web.cache
Interface CacheKeyGenerator


public interface CacheKeyGenerator

CacheKeyGenerator: a helper interface to generate the key that is used to cache this request.


Method Summary
 java.lang.String getCacheKey(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request)
          getCacheKey: generate the key to be used to cache the response.
 

Method Detail

getCacheKey

java.lang.String getCacheKey(javax.servlet.ServletContext context,
                             javax.servlet.http.HttpServletRequest request)
getCacheKey: generate the key to be used to cache the response.

Parameters:
context - the web application context
request - incoming HttpServletRequest
Returns:
key string used to access the cache entry. if the return value is null, a default key is used.


Copyright © 2012 GlassFish Community. All Rights Reserved.