public class ESIInvalidatorServlet extends javax.servlet.http.HttpServlet implements ExternalCacheAdapter
Constructor and Description |
---|
ESIInvalidatorServlet() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
This method invalidates all pages from the external cache.
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init(javax.servlet.ServletConfig config) |
void |
invalidateIds(java.util.Iterator ids)
This method invalidates dependency ids that are in the external cache.
|
void |
invalidatePages(java.util.Iterator urls)
This method invalidates pages that are in the external cache.
|
void |
postInvoke(ServletCacheRequest sreq,
javax.servlet.http.HttpServletResponse sresp)
This method is invoked after processing a cache hit or miss
of an externally cacheable element
|
void |
preInvoke(ServletCacheRequest sreq,
javax.servlet.http.HttpServletResponse sresp)
This method is invoked before processing a cache hit or miss
of an externally cacheable element
|
void |
setAddress(java.lang.String address)
This method sets the TCP/IP address of the cache adapter
|
void |
writePages(java.util.Iterator externalCacheEntries)
This method writes pages to the external cache.
|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void setAddress(java.lang.String address)
ExternalCacheAdapter
setAddress
in interface ExternalCacheAdapter
address
- Address of the cache adapterpublic void writePages(java.util.Iterator externalCacheEntries)
ExternalCacheAdapter
writePages
in interface ExternalCacheAdapter
externalCacheEntries
- The Enumeration of ExternalCacheEntry
objects for the pages that are to be cached.public void invalidatePages(java.util.Iterator urls)
ExternalCacheAdapter
invalidatePages
in interface ExternalCacheAdapter
urls
- The List of URLs for the pages that have
previously been written to the external cache and need invalidation.public void invalidateIds(java.util.Iterator ids)
ExternalCacheAdapter
invalidateIds
in interface ExternalCacheAdapter
ids
- The Enumeration of dependency ids that must be invalidatedpublic void preInvoke(ServletCacheRequest sreq, javax.servlet.http.HttpServletResponse sresp)
ExternalCacheAdapter
preInvoke
in interface ExternalCacheAdapter
sreq
- The request object being used for this invocationsresp
- The response object being used for this invocationpublic void postInvoke(ServletCacheRequest sreq, javax.servlet.http.HttpServletResponse sresp)
ExternalCacheAdapter
postInvoke
in interface ExternalCacheAdapter
sreq
- The request object being used for this invocationsresp
- The response object being used for this invocationpublic void clear()
ExternalCacheAdapter
clear
in interface ExternalCacheAdapter