Class CacheManager
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- de.businesscode.bcdui.web.servlets.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 responseprotected void
refreshAll()
refreshAll caches and reloads Bindings, VFSprotected void
refreshVFS()
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.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 classjavax.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 classjavax.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.
-
-