Package com.ibm.websphere.servlet.cache
Class CacheableJspPage
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.ibm.ws.jsp.runtime.HttpJspBase
com.ibm.websphere.servlet.cache.CacheableJspPage
- All Implemented Interfaces:
- CacheableServlet,- Serializable,- javax.servlet.jsp.HttpJspPage,- javax.servlet.jsp.JspPage,- javax.servlet.Servlet,- javax.servlet.ServletConfig
public abstract class CacheableJspPage
extends com.ibm.ws.jsp.runtime.HttpJspBase
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:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetId(javax.servlet.http.HttpServletRequest request) This executes the algorithm to compute the cache id.intgetSharingPolicy(javax.servlet.http.HttpServletRequest request) This returns the sharing policy for this cache entry.Methods inherited from class com.ibm.ws.jsp.runtime.HttpJspBase_jspInit, _jspService, destroy, getServletInfo, init, jspDestroy, jspInit, serviceMethods inherited from class javax.servlet.http.HttpServletserviceMethods inherited from class javax.servlet.GenericServletgetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, logMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.ServletgetServletConfig, service
- 
Constructor Details- 
CacheableJspPagepublic CacheableJspPage()
 
- 
- 
Method Details- 
getIdThis executes the algorithm to compute the cache id.- Specified by:
- getIdin interface- CacheableServlet
- Overrides:
- getIdin class- com.ibm.ws.jsp.runtime.HttpJspBase
- Parameters:
- request- The HTTP request object.
- Returns:
- The cache id. A null indicates that the JSP should not be cached.
 
- 
getSharingPolicypublic 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:
- getSharingPolicyin interface- CacheableServlet
- Overrides:
- getSharingPolicyin class- com.ibm.ws.jsp.runtime.HttpJspBase
- Parameters:
- request- The HTTP request object.
- Returns:
- The sharing policy.
 
 
-