uk.ac.ebi.intact.application.commons.util
Class ResetOjbCacheServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--uk.ac.ebi.intact.application.commons.util.ResetOjbCacheServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ResetOjbCacheServlet
extends javax.servlet.http.HttpServlet

When called that servlet is reseting the OJB cache of the calling application. To be added in the web.xml of you application

  <!--  When called that servlet is creating an IntAct user and reset
        the content of the OJB cache.
    -->
  <servlet>
      <servlet-name>resetOjbCache</servlet-name>
      <servlet-class>uk.ac.ebi.intact.application.commons.util.ResetOjbCacheServlet</servlet-class>
  </servlet>

  <servlet-mapping>
      <servlet-name>resetOjbCache</servlet-name>
      <url-pattern>resetOjbCache</url-pattern>
  </servlet-mapping>
 

Version:
$Id: ResetOjbCacheServlet.java,v 1.1 2003/09/08 16:47:52 skerrien Exp $
Author:
Samuel Kerrien (skerrien@ebi.ac.uk)
See Also:
Serialized Form

Constructor Summary
ResetOjbCacheServlet()
           
 
Method Summary
 void service(javax.servlet.http.HttpServletRequest aRequest, javax.servlet.http.HttpServletResponse aResponse)
          Clear the OJB cache of the calling application.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResetOjbCacheServlet

public ResetOjbCacheServlet()
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest aRequest,
                    javax.servlet.http.HttpServletResponse aResponse)
Clear the OJB cache of the calling application. This is executed whether the user is calling a GET or POST HTTP request.

Overrides:
service in class javax.servlet.http.HttpServlet
Parameters:
aRequest - the user HTTP request
aResponse - the HTTP response


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk