Exemple #1
0
 @Override
 public void destroy() {
   super.destroy();
   if (this.entityProviders != null) {
     for (AbstractRESTProvider provider : entityProviders) {
       if (provider != null) {
         try {
           provider.destroy();
         } catch (Exception e) {
           System.err.println(
               "WARN Could not clean up provider (" + provider + ") on destroy: " + e);
         }
       }
     }
     this.entityProviders.clear();
     this.entityProviders = null;
   }
   if (this.entityRESTServiceManager != null) {
     this.entityRESTServiceManager.destroy();
     this.entityRESTServiceManager = null;
   }
   if (this.entityBrokerCoreServiceManager != null) {
     this.entityBrokerCoreServiceManager.destroy();
     this.entityBrokerCoreServiceManager = null;
   }
 }
Exemple #2
0
 protected void service(HttpServletRequest req, HttpServletResponse res)
     throws ServletException, IOException {
   res.setHeader("Pragma", "no-cache");
   res.setHeader("Cache-Control", "no-cache");
   res.setDateHeader("Expires", 0);
   super.service(req, res);
 }