/** * Release the Filter instance associated with this FilterConfig, * if there is one. */ void release() { if (this.filter != null){ if( System.getSecurityManager() != null) { try{ SecurityUtil.doAsPrivilege("destroy", filter); } catch(java.lang.Exception ex){ context.getLogger().error("ApplicationFilterConfig.doAsPrivilege", ex); } SecurityUtil.remove(filter); } else { filter.destroy(); } } this.filter = null; }
context.getLogger().error("ApplicationFilterConfig.doAsPrivilege", ex); SecurityUtil.remove(filter); } else { filter.destroy();
SecurityUtil.doAsPrivilege("destroy", filter); SecurityUtil.remove(filter); } catch(java.lang.Exception ex){ String msg = rb.getString(LogFacade.DO_AS_PRIVILEGE);
SecurityUtil.doAsPrivilege("destroy", filter); SecurityUtil.remove(filter); } catch(java.lang.Exception ex){ String msg = rb.getString(LogFacade.DO_AS_PRIVILEGE);
if (!success) { SecurityUtil.remove(servlet);
if (!success) { SecurityUtil.remove(servlet);
/** * Release the Filter instance associated with this FilterConfig, * if there is one. */ void release() { unregsiterJMX(); if (this.filter != null) { if (Globals.IS_SECURITY_ENABLED) { try { SecurityUtil.doAsPrivilege("destroy", filter); } catch(java.lang.Exception ex){ context.getLogger().error("ApplicationFilterConfig.doAsPrivilege", ex); } SecurityUtil.remove(filter); } else { filter.destroy(); } if (!context.getIgnoreAnnotations()) { try { ((StandardContext) context).getInstanceManager().destroyInstance(this.filter); } catch (Exception e) { context.getLogger().error("ApplicationFilterConfig.preDestroy", e); } } } this.filter = null; }
/** * Release the Filter instance associated with this FilterConfig, * if there is one. */ void release() { if (org.apache.tomcat.util.Constants.ENABLE_MODELER) { unregsiterJMX(); } if (this.filter != null) { try { if (Globals.IS_SECURITY_ENABLED) { SecurityUtil.doAsPrivilege("destroy", filter); SecurityUtil.remove(filter); } else { filter.destroy(); } } catch(java.lang.Exception ex){ context.getLogger().error(MESSAGES.errorDestroyingFilter(getFilterName()), ex); } try { ((StandardContext) context).getInstanceManager().destroyInstance(this.filter); } catch (Exception e) { context.getLogger().error(MESSAGES.preDestroyException(), e); } } this.filter = null; }
if (!success) { SecurityUtil.remove(servlet);
if (!success) { SecurityUtil.remove(servlet);
/** * Release the Filter instance associated with this FilterConfig, * if there is one. */ void release() { unregisterJMX(); if (this.filter != null) { if (Globals.IS_SECURITY_ENABLED) { try { SecurityUtil.doAsPrivilege("destroy", filter); } catch(java.lang.Exception ex){ context.getLogger().error("ApplicationFilterConfig.doAsPrivilege", ex); } SecurityUtil.remove(filter); } else { filter.destroy(); } if (!context.getIgnoreAnnotations()) { try { ((StandardContext) context).getInstanceManager().destroyInstance(this.filter); } catch (Exception e) { context.getLogger().error("ApplicationFilterConfig.preDestroy", e); } } } this.filter = null; }
/** * Release the Filter instance associated with this FilterConfig, * if there is one. */ void release() { unregisterJMX(); if (this.filter != null) { if (Globals.IS_SECURITY_ENABLED) { try { SecurityUtil.doAsPrivilege("destroy", filter); } catch(java.lang.Exception ex){ context.getLogger().error("ApplicationFilterConfig.doAsPrivilege", ex); } SecurityUtil.remove(filter); } else { filter.destroy(); } if (!context.getIgnoreAnnotations()) { try { ((StandardContext) context).getInstanceManager().destroyInstance(this.filter); } catch (Exception e) { context.getLogger().error("ApplicationFilterConfig.preDestroy", e); } } } this.filter = null; }
/** * Release the Filter instance associated with this FilterConfig, * if there is one. */ void release() { unregisterJMX(); if (this.filter != null) { if (Globals.IS_SECURITY_ENABLED) { try { SecurityUtil.doAsPrivilege("destroy", filter); } catch(java.lang.Exception ex){ context.getLogger().error("ApplicationFilterConfig.doAsPrivilege", ex); } SecurityUtil.remove(filter); } else { filter.destroy(); } if (!context.getIgnoreAnnotations()) { try { ((StandardContext) context).getInstanceManager().destroyInstance(this.filter); } catch (Exception e) { context.getLogger().error("ApplicationFilterConfig.preDestroy", e); } } } this.filter = null; }
context.getLogger().error("ApplicationFilterConfig.doAsPrivilege", ex); SecurityUtil.remove(filter); } else { filter.destroy();
context.getLogger().error("ApplicationFilterConfig.doAsPrivilege", ex); SecurityUtil.remove(filter); } else { filter.destroy();
context.getLogger().error("ApplicationFilterConfig.doAsPrivilege", ex); SecurityUtil.remove(filter); } else { filter.destroy();
SecurityUtil.doAsPrivilege("destroy", filter); } finally { SecurityUtil.remove(filter);
SecurityUtil.doAsPrivilege("destroy", filter); } finally { SecurityUtil.remove(filter);
SecurityUtil.doAsPrivilege("destroy", filter); } finally { SecurityUtil.remove(filter);
SecurityUtil.doAsPrivilege("destroy", filter); } finally { SecurityUtil.remove(filter);