Package javax.servlet.http

Examples of javax.servlet.http.HttpSessionBindingListener


                    listener.attributeReplaced(event);
                }
            }

            if (oldValue instanceof HttpSessionBindingListener) {
                HttpSessionBindingListener listener = (HttpSessionBindingListener) oldValue;
                listener.valueUnbound(new HttpSessionBindingEvent(this, name));
            }
            if (value instanceof HttpSessionBindingListener) {
                HttpSessionBindingListener listener = (HttpSessionBindingListener) value;
                listener.valueBound(new HttpSessionBindingEvent(this, name));
            }
        }
    }
View Full Code Here


            for (HttpSessionAttributeListener listener: this.session.getContext().getSessionAttributeListeners()) {
                listener.attributeRemoved(event);
            }

            if (value instanceof HttpSessionBindingListener) {
                HttpSessionBindingListener listener = (HttpSessionBindingListener) value;
                listener.valueUnbound(new HttpSessionBindingEvent(this, name));
            }
        }
    }
View Full Code Here

            }

            for (String attribute: attributes.getAttributeNames()) {
                Object value = attributes.getAttribute(attribute);
                if (value instanceof HttpSessionBindingListener) {
                    HttpSessionBindingListener listener = (HttpSessionBindingListener) value;
                    listener.valueUnbound(new HttpSessionBindingEvent(httpSession, attribute, value));
                }
            }
        }
    }
View Full Code Here

    {try { __CLOVER_388_0.M[2111]++;
        __CLOVER_388_0.S[8654]++;super.setAttribute(name, value);

        __CLOVER_388_0.S[8655]++;if ((((value instanceof HttpSessionBindingListener) && (++__CLOVER_388_0.CT[1447] != 0)) || (++__CLOVER_388_0.CF[1447] == 0))){
        {
            __CLOVER_388_0.S[8656]++;HttpSessionBindingListener listener = (HttpSessionBindingListener) value;
            __CLOVER_388_0.S[8657]++;HttpSessionBindingEvent event = new HttpSessionBindingEvent(this, name);

            __CLOVER_388_0.S[8658]++;listener.valueBound(event);
        }}
    } finally { }}
View Full Code Here

        // Catch the user preferred language.
        PreferredLocale preferredLocale =  getPreferredLocale();
        LocaleManager.lookup().setCurrentLocale(preferredLocale.asLocale());

        // Store a HttpBindingListener object to detect session expiration
        getRequest().getSession().setAttribute(SESSION_ATTRIBUTE_BIND_LISTENER, new HttpSessionBindingListener() {
            public void valueBound(HttpSessionBindingEvent httpSessionBindingEvent) {
            }

            public void valueUnbound(HttpSessionBindingEvent httpSessionBindingEvent) {
                for (int i = 0; i < listeners.length; i++) {
View Full Code Here

  protected void removedFromSession(String name, Object removed) {
    HttpSessionBindingEvent sessionBindingEvent = new HttpSessionBindingEvent(
        this, name, removed);
    if (removed instanceof HttpSessionBindingListener) {
      HttpSessionBindingListener listener = (HttpSessionBindingListener) removed;
      listener.valueUnbound(sessionBindingEvent);
    }
    valueUnbound(sessionBindingEvent);
  }
View Full Code Here

  protected void boundToSession(String name, Object value) {
    HttpSessionBindingEvent sessionBindingEvent = new HttpSessionBindingEvent(
        this, name, value);
    if (value instanceof HttpSessionBindingListener) {
      HttpSessionBindingListener listener = (HttpSessionBindingListener) value;
      listener.valueBound(sessionBindingEvent);
    }
    valueBound(sessionBindingEvent);
  }
View Full Code Here

  protected void replacedInSession(String name, Object oldValue, Object value) {
    HttpSessionBindingEvent sessionBindingEvent = new HttpSessionBindingEvent(
        this, name, value);
    if (oldValue instanceof HttpSessionBindingListener) {
      HttpSessionBindingListener listener = (HttpSessionBindingListener) oldValue;
      listener.valueUnbound(sessionBindingEvent);
    }
    if (value instanceof HttpSessionBindingListener) {
      HttpSessionBindingListener listener = (HttpSessionBindingListener) value;
      listener.valueBound(sessionBindingEvent);
    }
    valueReplaced(sessionBindingEvent);
  }
View Full Code Here

        // Catch the user preferred language.
        PreferredLocale preferredLocale =  getPreferredLocale();
        LocaleManager.lookup().setCurrentLocale(preferredLocale.asLocale());

        // Store a HttpBindingListener object to detect session expiration
        getRequest().getSession().setAttribute(SESSION_ATTRIBUTE_BIND_LISTENER, new HttpSessionBindingListener() {
            public void valueBound(HttpSessionBindingEvent httpSessionBindingEvent) {
            }

            public void valueUnbound(HttpSessionBindingEvent httpSessionBindingEvent) {
                for (int i = 0; i < listeners.length; i++) {
View Full Code Here

        return array;
    }

    protected void afterBound(String s, Object o) {
        if (o instanceof HttpSessionBindingListener) {
            HttpSessionBindingListener listener = (HttpSessionBindingListener) o;
            HttpSessionBindingEvent event = new HttpSessionBindingEvent(this, s, o);
            listener.valueBound(event);
        }
    }
View Full Code Here

TOP

Related Classes of javax.servlet.http.HttpSessionBindingListener

Copyright © 2018 www.massapicom. 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.