Package com.ibm.websphere.servlet.cache
Class ESIInvalidatorServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.ibm.websphere.servlet.cache.ESIInvalidatorServlet
- All Implemented Interfaces:
ExternalCacheAdapter
,Serializable
,jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
public class ESIInvalidatorServlet
extends jakarta.servlet.http.HttpServlet
implements ExternalCacheAdapter
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
This method invalidates all pages from the external cache.void
doPost
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) void
init
(jakarta.servlet.ServletConfig config) void
invalidateIds
(Iterator ids) This method invalidates dependency ids that are in the external cache.void
invalidatePages
(Iterator urls) This method invalidates pages that are in the external cache.void
postInvoke
(ServletCacheRequest sreq, jakarta.servlet.http.HttpServletResponse sresp) This method is invoked after processing a cache hit or miss of an externally cacheable elementvoid
preInvoke
(ServletCacheRequest sreq, jakarta.servlet.http.HttpServletResponse sresp) This method is invoked before processing a cache hit or miss of an externally cacheable elementvoid
setAddress
(String address) This method sets the TCP/IP address of the cache adaptervoid
writePages
(Iterator externalCacheEntries) This method writes pages to the external cache.Methods inherited from class jakarta.servlet.http.HttpServlet
service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
ESIInvalidatorServlet
public ESIInvalidatorServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Specified by:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in classjakarta.servlet.GenericServlet
- Throws:
jakarta.servlet.ServletException
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletException
IOException
-
setAddress
Description copied from interface:ExternalCacheAdapter
This method sets the TCP/IP address of the cache adapter- Specified by:
setAddress
in interfaceExternalCacheAdapter
- Parameters:
address
- Address of the cache adapter
-
writePages
Description copied from interface:ExternalCacheAdapter
This method writes pages to the external cache.- Specified by:
writePages
in interfaceExternalCacheAdapter
- Parameters:
externalCacheEntries
- The Enumeration of ExternalCacheEntry objects for the pages that are to be cached.
-
invalidatePages
Description copied from interface:ExternalCacheAdapter
This method invalidates pages that are in the external cache.- Specified by:
invalidatePages
in 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:ExternalCacheAdapter
This method invalidates dependency ids that are in the external cache.- Specified by:
invalidateIds
in interfaceExternalCacheAdapter
- Parameters:
ids
- The Enumeration of dependency ids that must be invalidated
-
preInvoke
Description copied from interface:ExternalCacheAdapter
This method is invoked before processing a cache hit or miss of an externally cacheable element- Specified by:
preInvoke
in interfaceExternalCacheAdapter
- Parameters:
sreq
- The request object being used for this invocationsresp
- The response object being used for this invocation
-
postInvoke
Description copied from interface:ExternalCacheAdapter
This method is invoked after processing a cache hit or miss of an externally cacheable element- Specified by:
postInvoke
in 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:ExternalCacheAdapter
This method invalidates all pages from the external cache.- Specified by:
clear
in interfaceExternalCacheAdapter
-