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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
    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
    performance an action and returns possible action response
    protected void
    refreshAll caches and reloads Bindings, VFS
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CacheManager

      public CacheManager()
  • Method Details

    • init

      public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Servlet
      Overrides:
      init in class jakarta.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 class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • performAction

      protected String performAction(String action) throws jakarta.servlet.ServletException
      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 class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • refreshAll

      protected void refreshAll() throws BindingException, jakarta.servlet.ServletException
      refreshAll caches and reloads Bindings, VFS
      Throws:
      BindingException
      org.apache.commons.vfs2.FileSystemException
      jakarta.servlet.ServletException
    • refreshVFS

      protected void refreshVFS() throws org.apache.commons.vfs2.FileSystemException, BindingException
      Throws:
      org.apache.commons.vfs2.FileSystemException
      BindingException
    • executeCallBack

      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.