Class CacheManager

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class CacheManager
    extends javax.servlet.http.HttpServlet
    Servlet to manage cache settings (VFS, Bindings): delete, reload
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doGet​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      protected void doPost​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      protected void executeCallBack​(java.lang.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​(javax.servlet.ServletConfig config)  
      protected java.lang.String performAction​(java.lang.String action)
      performance an action and returns possible action response
      protected void refreshAll()
      refreshAll caches and reloads Bindings, VFS
      protected void refreshVFS()  
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.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 Detail

      • CacheManager

        public CacheManager()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse resp)
                      throws javax.servlet.ServletException,
                             java.io.IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • performAction

        protected java.lang.String performAction​(java.lang.String action)
                                          throws javax.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.vfs.FileSystemException
        javax.servlet.ServletException
      • doPost

        protected void doPost​(javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse resp)
                       throws javax.servlet.ServletException,
                              java.io.IOException
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • refreshAll

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

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

        protected void executeCallBack​(java.lang.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.