Package org.apache.catalina

Examples of org.apache.catalina.Context.fireContainerEvent()


                context.fireContainerEvent("afterSessionAttributeRemoved",
                        listener);
            } catch (Throwable t) {
                ExceptionUtils.handleThrowable(t);
                try {
                    context.fireContainerEvent("afterSessionAttributeRemoved",
                            listener);
                } catch (Exception e) {
                    // Ignore
                }
                manager.getContext().getLogger().error
View Full Code Here


        // Call the valueUnbound() method if necessary
        HttpSessionBindingEvent event = null;
        if (value instanceof HttpSessionBindingListener) {
            event = new HttpSessionBindingEvent(getSession(), name, value);
            try {
                context.fireContainerEvent(
                    ContainerEvent.BEFORE_SESSION_VALUE_UNBOUND, null);
                ((HttpSessionBindingListener) value).valueUnbound(event);
                context.fireContainerEvent(
                    ContainerEvent.AFTER_SESSION_VALUE_UNBOUND, null);
            } catch (Throwable t) {
View Full Code Here

            event = new HttpSessionBindingEvent(getSession(), name, value);
            try {
                context.fireContainerEvent(
                    ContainerEvent.BEFORE_SESSION_VALUE_UNBOUND, null);
                ((HttpSessionBindingListener) value).valueUnbound(event);
                context.fireContainerEvent(
                    ContainerEvent.AFTER_SESSION_VALUE_UNBOUND, null);
            } catch (Throwable t) {
                // Log exception
                context.fireContainerEvent(
                    ContainerEvent.AFTER_SESSION_VALUE_UNBOUND, null);
View Full Code Here

                ((HttpSessionBindingListener) value).valueUnbound(event);
                context.fireContainerEvent(
                    ContainerEvent.AFTER_SESSION_VALUE_UNBOUND, null);
            } catch (Throwable t) {
                // Log exception
                context.fireContainerEvent(
                    ContainerEvent.AFTER_SESSION_VALUE_UNBOUND, null);
            }
        }
       
        // Notify special event listeners on removeAttribute
View Full Code Here

        }
       
        // Notify special event listeners on removeAttribute
        //HERCULES:add
        // fire container event       
        context.fireContainerEvent("sessionRemoveAttributeCalled", event);
        // fire sync container event if name equals SYNC_STRING
        if (SYNC_STRING.equals(name)) {
            context.fireContainerEvent("sessionSync"(new HttpSessionBindingEvent(getSession(), name)));
        }        
        //END HERCULES:add        
View Full Code Here

        //HERCULES:add
        // fire container event       
        context.fireContainerEvent("sessionRemoveAttributeCalled", event);
        // fire sync container event if name equals SYNC_STRING
        if (SYNC_STRING.equals(name)) {
            context.fireContainerEvent("sessionSync"(new HttpSessionBindingEvent(getSession(), name)));
        }        
        //END HERCULES:add        

        // Notify interested application event listeners
        Object listeners[] = context.getApplicationEventListeners();
View Full Code Here

        // Call the valueUnbound() method if necessary
        if ((unbound != null) &&
            (unbound instanceof HttpSessionBindingListener)) {
            try {
                context.fireContainerEvent(
                    ContainerEvent.BEFORE_SESSION_VALUE_UNBOUND, null);
                ((HttpSessionBindingListener) unbound).valueUnbound
                    (new HttpSessionBindingEvent(getSession(), name));
                context.fireContainerEvent(
                    ContainerEvent.AFTER_SESSION_VALUE_UNBOUND, null);
View Full Code Here

            try {
                context.fireContainerEvent(
                    ContainerEvent.BEFORE_SESSION_VALUE_UNBOUND, null);
                ((HttpSessionBindingListener) unbound).valueUnbound
                    (new HttpSessionBindingEvent(getSession(), name));
                context.fireContainerEvent(
                    ContainerEvent.AFTER_SESSION_VALUE_UNBOUND, null);
            } catch (Throwable t) {
                context.fireContainerEvent(
                    ContainerEvent.AFTER_SESSION_VALUE_UNBOUND, null);
                log(sm.getString("standardSession.bindingEvent"), t);
View Full Code Here

                ((HttpSessionBindingListener) unbound).valueUnbound
                    (new HttpSessionBindingEvent(getSession(), name));
                context.fireContainerEvent(
                    ContainerEvent.AFTER_SESSION_VALUE_UNBOUND, null);
            } catch (Throwable t) {
                context.fireContainerEvent(
                    ContainerEvent.AFTER_SESSION_VALUE_UNBOUND, null);
                log(sm.getString("standardSession.bindingEvent"), t);
            }
        }
       
View Full Code Here

        }
       
        //HERCULES:add
        // fire sync container event if name equals SYNC_STRING
        if (SYNC_STRING.equals(name)) {
            context.fireContainerEvent("sessionSync"(new HttpSessionBindingEvent(getSession(), name)));
        }
        //end HERCULES:add

        // Notify interested application event listeners
        Object listeners[] = context.getApplicationEventListeners();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.