com.ibm.websphere.servlet.cache

Class ESIInvalidatorServlet

  1. java.lang.Object
  2. extended byHttpServlet
  3. extended bycom.ibm.websphere.servlet.cache.ESIInvalidatorServlet
All implemented interfaces:
ExternalCacheAdapter

  1. public class ESIInvalidatorServlet
  2. extends HttpServlet
  3. implements ExternalCacheAdapter

Constructor Summary

Constructor and Description
ESIInvalidatorServlet()

Method Summary

Modifier and Type Method and Description
  1. void
clear()
  1. void
doPost(HttpServletRequest request,HttpServletResponse response)
  1. void
init(ServletConfig config)
  1. void
invalidateIds(java.util.Iterator ids)
  1. void
invalidatePages(java.util.Iterator urls)
  1. void
postInvoke(ServletCacheRequest sreq,HttpServletResponse sresp)
  1. void
preInvoke(ServletCacheRequest sreq,HttpServletResponse sresp)
  1. void
setAddress(java.lang.String address)
  1. void
writePages(java.util.Iterator externalCacheEntries)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ESIInvalidatorServlet

  1. public ESIInvalidatorServlet()

Method Detail

init

  1. public void init(ServletConfig config)
  2. throws ServletException
Throws:
ServletException

doPost

  1. public void doPost(HttpServletRequest request,
  2. HttpServletResponse response)
  3. throws ServletException
  4. java.io.IOException
Throws:
ServletException
java.io.IOException

setAddress

  1. public void setAddress(java.lang.String address)
Description copied from interface: ExternalCacheAdapter
This method sets the TCP/IP address of the cache adapter
Specified by:
Parameters:
address - Address of the cache adapter

writePages

  1. public void writePages(java.util.Iterator externalCacheEntries)
Description copied from interface: ExternalCacheAdapter
This method writes pages to the external cache.
Specified by:
Parameters:
externalCacheEntries - The Enumeration of ExternalCacheEntry objects for the pages that are to be cached.

invalidatePages

  1. public void invalidatePages(java.util.Iterator urls)
Description copied from interface: ExternalCacheAdapter
This method invalidates pages that are in the external cache.
Specified by:
Parameters:
urls - The List of URLs for the pages that have previously been written to the external cache and need invalidation.

invalidateIds

  1. public void invalidateIds(java.util.Iterator ids)
Description copied from interface: ExternalCacheAdapter
This method invalidates dependency ids that are in the external cache.
Specified by:
Parameters:
ids - The Enumeration of dependency ids that must be invalidated

preInvoke

  1. public void preInvoke(ServletCacheRequest sreq,
  2. HttpServletResponse sresp)
Description copied from interface: ExternalCacheAdapter
This method is invoked before processing a cache hit or miss of an externally cacheable element
Specified by:
Parameters:
sreq - The request object being used for this invocation
sresp - The response object being used for this invocation

postInvoke

  1. public void postInvoke(ServletCacheRequest sreq,
  2. HttpServletResponse sresp)
Description copied from interface: ExternalCacheAdapter
This method is invoked after processing a cache hit or miss of an externally cacheable element
Specified by:
Parameters:
sreq - The request object being used for this invocation
sresp - The response object being used for this invocation

clear

  1. public void clear()
Description copied from interface: ExternalCacheAdapter
This method invalidates all pages from the external cache.
Specified by: