Package java.util

Examples of java.util.Vector.removeElement()


            try {
                Object value = locksCache.get(uri.toString());
                Vector locksVector = null;
                if (value != null) {
                    locksVector = new Vector((Vector)value);
                    boolean wasPresent = locksVector.removeElement(lock);
                    if (!wasPresent) {
                        throw new LockTokenNotFoundException(lock);
                    }
                }
                locksCache.put(uri.toString(), locksVector);
View Full Code Here


            try {
                Object value = locksCache.get(uri.toString());
                Vector locksVector = null;
                if (value != null) {
                    locksVector = new Vector((Vector)value);
                    boolean wasPresent = locksVector.removeElement(lock);
                    if (!wasPresent) {
                        throw new LockTokenNotFoundException(lock);
                    }
                }
                locksCache.put(uri.toString(), locksVector);
View Full Code Here

      Vector pai = Util.parseHeader(auth_info);
      HttpHeaderElement elem;

      if (handle_nextnonce(prev, req, elem = Util.getElement(pai, "nextnonce")))
         pai.removeElement(elem);
      if (handle_discard(prev, req, elem = Util.getElement(pai, "discard")))
         pai.removeElement(elem);

      if (in_headers)
      {
View Full Code Here

      HttpHeaderElement elem;

      if (handle_nextnonce(prev, req, elem = Util.getElement(pai, "nextnonce")))
         pai.removeElement(elem);
      if (handle_discard(prev, req, elem = Util.getElement(pai, "discard")))
         pai.removeElement(elem);

      if (in_headers)
      {
         HttpHeaderElement qop = null;
View Full Code Here

         }

         // remove any 100-continue tokens

         HttpHeaderElement cont = new HttpHeaderElement("100-continue");
         while (expect_tokens.removeElement(cont));

         // write out header if any tokens left

         if (!expect_tokens.isEmpty())
         {
View Full Code Here

        Vector v = (Vector) listeners.get( type );
        if( v != null )
        {
            if( v.contains( listener ) )
            {
                v.removeElement( listener );
            }
            listeners.put( type, v );
        }
    }
View Full Code Here

      Vector pai = Util.parseHeader(auth_info);
      HttpHeaderElement elem;

      if (handle_nextnonce(prev, req, elem = Util.getElement(pai, "nextnonce")))
         pai.removeElement(elem);
      if (handle_discard(prev, req, elem = Util.getElement(pai, "discard")))
         pai.removeElement(elem);

      if (in_headers)
      {
View Full Code Here

      HttpHeaderElement elem;

      if (handle_nextnonce(prev, req, elem = Util.getElement(pai, "nextnonce")))
         pai.removeElement(elem);
      if (handle_discard(prev, req, elem = Util.getElement(pai, "discard")))
         pai.removeElement(elem);

      if (in_headers)
      {
         HttpHeaderElement qop = null;
View Full Code Here

        ServerTransaction serverTransaction = getServerTransaction(clientTransaction);
        Vector clientTransactions = getClientTransactions(serverTransaction);

        if (clientTransactions != null && clientTransactions.isEmpty()) // ???
        {
            clientTransactions.removeElement(clientTransaction);
            table.remove(serverTransaction); // ?? (only if no other clients left?)
        }
    }

    protected void printTransactionsMapping()
View Full Code Here

      // get the list of DataListeners that are interested in name
      Vector dataListeners = (Vector) dataListenerList.get(name);
      if (dataListeners == null) return;

      // remove dl from the list of interested DataListeners.
      dataListeners.removeElement(dl);

      // if there are now no DataListeners interested in name,
      if (dataListeners.isEmpty()) {

        // drop this (empty) list from our internal hashtable.
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.