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 voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voidexecuteCallBack(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.voidinit(jakarta.servlet.ServletConfig config) protected StringperformAction(String action) performance an action and returns possible action responseprotected voidrefreshAll caches and reloads Bindings, VFSprotected voidMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, isSensitiveHeader, service, serviceMethods 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:
initin interfacejakarta.servlet.Servlet- Overrides:
initin 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:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
performAction
performance an action and returns possible action response- Parameters:
action- to perform- Returns:
- null if action succeeds or error response
- Throws:
BindingExceptionorg.apache.commons.vfs2.FileSystemExceptionjakarta.servlet.ServletException
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
refreshAll
refreshAll caches and reloads Bindings, VFS- Throws:
BindingExceptionorg.apache.commons.vfs2.FileSystemExceptionjakarta.servlet.ServletException
-
refreshVFS
- Throws:
org.apache.commons.vfs2.FileSystemExceptionBindingException
-
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.
-