com.ibm.websphere.servlet.cache
Interface CacheableServlet

All Superinterfaces:
java.io.Serializable

public interface CacheableServlet
extends java.io.Serializable

This interface is for any JSP/Servlet that wants to be cached. It is used by the dynacache to test whether the JSP might be cached. A JSP or Servlet writer adds these methods.


Method Summary
 java.lang.String getId(javax.servlet.http.HttpServletRequest request)
          This executes the algorithm to compute the cache id.
 int getSharingPolicy(javax.servlet.http.HttpServletRequest request)
          This returns the sharing policy for this cache entry.
 

Method Detail

getId

public java.lang.String getId(javax.servlet.http.HttpServletRequest request)
This executes the algorithm to compute the cache id.
Parameters:
request - The HTTP request object.
Returns:
The cache id. A null indicates that the JSP should not be cached.

getSharingPolicy

public int getSharingPolicy(javax.servlet.http.HttpServletRequest request)
This returns the sharing policy for this cache entry. See com.ibm.websphere.servlet.cache.EntryInfo for possible values.
Parameters:
request - The HTTP request object.
Returns:
The cache id.