Examples of valueUnbound()


Examples of javax.servlet.http.HttpSessionBindingListener.valueUnbound()

  public void removeAttribute(String aName) {
    vomitIfInvalidated();
    Object existingObject = fAttributes.remove(aName);
    if( existingObject instanceof HttpSessionBindingListener) {
      HttpSessionBindingListener listener = (HttpSessionBindingListener)existingObject;
      listener.valueUnbound(new HttpSessionBindingEvent(this, aName, existingObject));
    }
  }

  public void invalidate() {
    vomitIfInvalidated();
View Full Code Here

Examples of javax.servlet.http.HttpSessionBindingListener.valueUnbound()

        // valueUnbound must be after unbinding
        if (oldValue instanceof HttpSessionBindingListener) {
            HttpSessionBindingListener hsbl = (HttpSessionBindingListener) oldValue;
            ClassLoader cl = Thread.currentThread().getContextClassLoader();
            Thread.currentThread().setContextClassLoader(this.webAppConfig.getLoader());
            hsbl.valueUnbound(new HttpSessionBindingEvent(this, name, oldValue));
            Thread.currentThread().setContextClassLoader(cl);
        }

        // Notify other listeners
        if (oldValue != null)
View Full Code Here

Examples of javax.servlet.http.HttpSessionBindingListener.valueUnbound()

        // Notify listeners
        if (value instanceof HttpSessionBindingListener) {
            HttpSessionBindingListener hsbl = (HttpSessionBindingListener) value;
            ClassLoader cl = Thread.currentThread().getContextClassLoader();
            Thread.currentThread().setContextClassLoader(this.webAppConfig.getLoader());
            hsbl.valueUnbound(new HttpSessionBindingEvent(this, name));
            Thread.currentThread().setContextClassLoader(cl);
        }
        if (value != null)
            for (int n = 0; n < this.sessionAttributeListeners.length; n++) {
                ClassLoader cl = Thread.currentThread().getContextClassLoader();
View Full Code Here

Examples of javax.servlet.http.HttpSessionBindingListener.valueUnbound()

        Object value = attributes.removeAttribute(name);

        if (value != null && value instanceof HttpSessionBindingListener) {
            HttpSessionBindingListener listener = (HttpSessionBindingListener) value;
            listener.valueUnbound(new HttpSessionBindingEvent(this, name));
        }
    }

    public synchronized Object getValue(String name) {
        return getAttribute(name); // deprecated
View Full Code Here

Examples of javax.servlet.http.HttpSessionBindingListener.valueUnbound()

    if (oldValue instanceof HttpSessionBindingListener) {
      HttpSessionBindingListener listener;
      listener = (HttpSessionBindingListener) oldValue;

      listener.valueUnbound(new HttpSessionBindingEvent(SessionImpl.this,
                                                        name, oldValue));
    }

    if (value instanceof HttpSessionBindingListener) {
      HttpSessionBindingListener listener;
View Full Code Here

Examples of javax.servlet.http.HttpSessionBindingListener.valueUnbound()

    if (oldValue instanceof HttpSessionBindingListener) {
      HttpSessionBindingListener listener;
      listener = (HttpSessionBindingListener) oldValue;

      listener.valueUnbound(new HttpSessionBindingEvent(this,
                                                        name,
                                                        oldValue));
    }

    // Notify the attributes listeners
View Full Code Here

Examples of javax.servlet.http.HttpSessionBindingListener.valueUnbound()

    protected void afterUnbound(String s, Object o) {
        if (o instanceof HttpSessionBindingListener) {
            HttpSessionBindingListener listener = (HttpSessionBindingListener) o;
            HttpSessionBindingEvent event = new HttpSessionBindingEvent(this, s, o);
            listener.valueUnbound(event);
        }
    }

    public void setAttribute(String s, Object o) {
        try {
View Full Code Here

Examples of javax.servlet.http.HttpSessionBindingListener.valueUnbound()

    for (Map.Entry<String, Object> entry : sessionData_.entrySet()) {
      Object value = entry.getValue();
      if (value instanceof HttpSessionBindingListener) {
        String name = entry.getKey();
        HttpSessionBindingListener hsbl = (HttpSessionBindingListener) value;
        hsbl.valueUnbound(new HttpSessionBindingEvent(this, name));
      }
    }
    sessionData_.clear();
  }
View Full Code Here

Examples of javax.servlet.http.HttpSessionBindingListener.valueUnbound()

                }
            }

            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

Examples of javax.servlet.http.HttpSessionBindingListener.valueUnbound()

                listener.attributeRemoved(event);
            }

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

    @Override
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.