com.ibm.websphere.servlet.cache

Class CacheableJspPage

  1. java.lang.Object
  2. extended byHttpJspBase
  3. extended bycom.ibm.websphere.servlet.cache.CacheableJspPage
All implemented interfaces:
CacheableServlet, java.io.Serializable

  1. public abstract class CacheableJspPage
  2. extends HttpJspBase
  3. implements CacheableServlet
This class identifies cacheable JSPs to the fragment cache. The cache will call the getId() and getSharingPolicy() methods to obtain the caching metadata for a given execution of the JSP.

Constructor Summary

Constructor and Description
CacheableJspPage()

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getId(HttpServletRequest request)
This executes the algorithm to compute the cache id.
  1. int
getSharingPolicy(HttpServletRequest request)
This returns the sharing policy for this cache entry.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CacheableJspPage

  1. public CacheableJspPage()

Method Detail

getId

  1. public java.lang.String getId(HttpServletRequest request)
This executes the algorithm to compute the cache id.
Specified by:
getId in interface CacheableServlet
Parameters:
request - The HTTP request object.
Returns:
The cache id. A null indicates that the JSP should not be cached.

getSharingPolicy

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