Class CacheManager
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
de.businesscode.bcdui.web.servlets.CacheManager
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class CacheManager
extends jakarta.servlet.http.HttpServlet
Servlet to manage cache settings (VFS, Bindings): delete, reload
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected void
doPost
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected void
executeCallBack
(String action) if this.callBackClass is configured invoke the refresh() Method of the fresh created instance if the class can't be instanciated it wont be tried again.void
init
(jakarta.servlet.ServletConfig config) protected String
performAction
(String action) performance an action and returns possible action responseprotected void
refreshAll caches and reloads Bindings, VFSprotected void
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, isSensitiveHeader, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
CacheManager
public CacheManager()
-
-
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.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
performAction
performance an action and returns possible action response- Parameters:
action
- to perform- Returns:
- null if action succeeds or error response
- Throws:
BindingException
org.apache.commons.vfs2.FileSystemException
jakarta.servlet.ServletException
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doPost
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
refreshAll
refreshAll caches and reloads Bindings, VFS- Throws:
BindingException
org.apache.commons.vfs2.FileSystemException
jakarta.servlet.ServletException
-
refreshVFS
- Throws:
org.apache.commons.vfs2.FileSystemException
BindingException
-
executeCallBack
if this.callBackClass is configured invoke the refresh() Method of the fresh created instance if the class can't be instanciated it wont be tried again.
-