com.ibm.websphere.servlet.cache

Class CacheableJspPage

  1. java.lang.Object
  2. extended byjavax.servlet.GenericServlet
  3. extended byjavax.servlet.http.HttpServlet
  4. extended bycom.ibm.ws.webcontainer.jsp.runtime.HttpJspBase
  5. extended bycom.ibm.websphere.servlet.cache.CacheableJspPage
All implemented interfaces:
CacheableServlet, java.io.Serializable, javax.servlet.jsp.HttpJspPage, javax.servlet.jsp.JspPage, javax.servlet.Servlet, javax.servlet.ServletConfig

  1. public abstract class CacheableJspPage
  2. extends com.ibm.ws.webcontainer.jsp.runtime.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.
See Also:
Serialized Form

Field Summary

Fields inherited from class com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase
pageContext

Constructor Summary

Constructor and Description
CacheableJspPage()

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getId(javax.servlet.http.HttpServletRequest request)
This executes the algorithm to compute the cache id.
  1. int
getSharingPolicy(javax.servlet.http.HttpServletRequest request)
This returns the sharing policy for this cache entry.
Methods inherited from class com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase
_jspService, destroy, getServletInfo, getTagHandler, init, jspDestroy, jspInit, putTagHandler, service
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.servlet.Servlet
getServletConfig, service

Constructor Detail

CacheableJspPage

  1. public CacheableJspPage()

Method Detail

getId

  1. public java.lang.String getId(javax.servlet.http.HttpServletRequest request)
This executes the algorithm to compute the cache id.
Specified by:
getId in interface CacheableServlet
Overrides:
getId in class com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase
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(javax.servlet.http.HttpServletRequest request)
This returns the sharing policy for this cache entry. See com.ibm.websphere.servlet.cache.EntryInfo for possible values.
Specified by:
Overrides:
getSharingPolicy in class com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase
Parameters:
request - The HTTP request object.
Returns:
The sharing policy.