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,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class ESIInvalidatorServlet
extends javax.servlet.http.HttpServlet
implements ExternalCacheAdapter
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()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(Iterator ids) This method invalidates dependency ids that are in the external cache.voidinvalidatePages(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(String address) This method sets the TCP/IP address of the cache adaptervoidwritePages(Iterator externalCacheEntries) This method writes pages to the external cache.Methods inherited from class javax.servlet.http.HttpServlet
serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
ESIInvalidatorServlet
public ESIInvalidatorServlet()
-
-
Method Details
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException - Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletExceptionIOException
-
setAddress
Description copied from interface:ExternalCacheAdapterThis method sets the TCP/IP address of the cache adapter- Specified by:
setAddressin interfaceExternalCacheAdapter- Parameters:
address- Address of the cache adapter
-
writePages
Description copied from interface:ExternalCacheAdapterThis method writes pages to the external cache.- Specified by:
writePagesin interfaceExternalCacheAdapter- Parameters:
externalCacheEntries- The Enumeration of ExternalCacheEntry objects for the pages that are to be cached.
-
invalidatePages
Description copied from interface:ExternalCacheAdapterThis method invalidates pages that are in the external cache.- Specified by:
invalidatePagesin interfaceExternalCacheAdapter- Parameters:
urls- The List of URLs for the pages that have previously been written to the external cache and need invalidation.
-
invalidateIds
Description copied from interface:ExternalCacheAdapterThis method invalidates dependency ids that are in the external cache.- Specified by:
invalidateIdsin interfaceExternalCacheAdapter- Parameters:
ids- The Enumeration of dependency ids that must be invalidated
-
preInvoke
Description copied from interface:ExternalCacheAdapterThis method is invoked before processing a cache hit or miss of an externally cacheable element- Specified by:
preInvokein interfaceExternalCacheAdapter- Parameters:
sreq- The request object being used for this invocationsresp- The response object being used for this invocation
-
postInvoke
Description copied from interface:ExternalCacheAdapterThis method is invoked after processing a cache hit or miss of an externally cacheable element- Specified by:
postInvokein interfaceExternalCacheAdapter- Parameters:
sreq- The request object being used for this invocationsresp- The response object being used for this invocation
-
clear
public void clear()Description copied from interface:ExternalCacheAdapterThis method invalidates all pages from the external cache.- Specified by:
clearin interfaceExternalCacheAdapter
-