Package com.ibm.websphere.servlet.cache
Class ESIInvalidatorServlet
- java.lang.Object
- 
- javax.servlet.GenericServlet
- 
- javax.servlet.http.HttpServlet
- 
- com.ibm.websphere.servlet.cache.ESIInvalidatorServlet
 
 
 
- 
- All Implemented Interfaces:
- ExternalCacheAdapter,- java.io.Serializable,- javax.servlet.Servlet,- javax.servlet.ServletConfig
 
 public class ESIInvalidatorServlet extends javax.servlet.http.HttpServlet implements ExternalCacheAdapter - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ESIInvalidatorServlet()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()This method invalidates all pages from the external cache.voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voidinit(javax.servlet.ServletConfig config)voidinvalidateIds(java.util.Iterator ids)This method invalidates dependency ids that are in the external cache.voidinvalidatePages(java.util.Iterator urls)This method invalidates pages that are in the external cache.voidpostInvoke(ServletCacheRequest sreq, javax.servlet.http.HttpServletResponse sresp)This method is invoked after processing a cache hit or miss of an externally cacheable elementvoidpreInvoke(ServletCacheRequest sreq, javax.servlet.http.HttpServletResponse sresp)This method is invoked before processing a cache hit or miss of an externally cacheable elementvoidsetAddress(java.lang.String address)This method sets the TCP/IP address of the cache adaptervoidwritePages(java.util.Iterator externalCacheEntries)This method writes pages to the external cache.
 
- 
- 
- 
Method Detail- 
initpublic void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException- Specified by:
- initin interface- javax.servlet.Servlet
- Overrides:
- initin class- javax.servlet.GenericServlet
- Throws:
- javax.servlet.ServletException
 
 - 
doPostpublic void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException- Throws:
- javax.servlet.ServletException
- java.io.IOException
 
 - 
setAddresspublic void setAddress(java.lang.String address) Description copied from interface:ExternalCacheAdapterThis method sets the TCP/IP address of the cache adapter- Specified by:
- setAddressin interface- ExternalCacheAdapter
- Parameters:
- address- Address of the cache adapter
 
 - 
writePagespublic void writePages(java.util.Iterator externalCacheEntries) Description copied from interface:ExternalCacheAdapterThis method writes pages to the external cache.- Specified by:
- writePagesin interface- ExternalCacheAdapter
- Parameters:
- externalCacheEntries- The Enumeration of ExternalCacheEntry objects for the pages that are to be cached.
 
 - 
invalidatePagespublic void invalidatePages(java.util.Iterator urls) Description copied from interface:ExternalCacheAdapterThis method invalidates pages that are in the external cache.- Specified by:
- invalidatePagesin interface- ExternalCacheAdapter
- Parameters:
- urls- The List of URLs for the pages that have previously been written to the external cache and need invalidation.
 
 - 
invalidateIdspublic void invalidateIds(java.util.Iterator ids) Description copied from interface:ExternalCacheAdapterThis method invalidates dependency ids that are in the external cache.- Specified by:
- invalidateIdsin interface- ExternalCacheAdapter
- Parameters:
- ids- The Enumeration of dependency ids that must be invalidated
 
 - 
preInvokepublic void preInvoke(ServletCacheRequest sreq, javax.servlet.http.HttpServletResponse sresp) Description copied from interface:ExternalCacheAdapterThis method is invoked before processing a cache hit or miss of an externally cacheable element- Specified by:
- preInvokein interface- ExternalCacheAdapter
- Parameters:
- sreq- The request object being used for this invocation
- sresp- The response object being used for this invocation
 
 - 
postInvokepublic void postInvoke(ServletCacheRequest sreq, javax.servlet.http.HttpServletResponse sresp) Description copied from interface:ExternalCacheAdapterThis method is invoked after processing a cache hit or miss of an externally cacheable element- Specified by:
- postInvokein interface- ExternalCacheAdapter
- Parameters:
- sreq- The request object being used for this invocation
- sresp- The response object being used for this invocation
 
 - 
clearpublic void clear() Description copied from interface:ExternalCacheAdapterThis method invalidates all pages from the external cache.- Specified by:
- clearin interface- ExternalCacheAdapter
 
 
- 
 
-