Package java.util

Examples of java.util.Vector.elements()


            tAccountTH.setAllFormOpentag(
                "<form action=\"" + aReq.getContextAndServletPath() + "\" method=\"POST\">",
                aReq.toHiddenParams());

            // Insert errors in form.
            Enumeration enu = errors.elements();
            while(enu.hasMoreElements()) {
                String[] tmp = (String[]) enu.nextElement();
                tAccountTH.addError(tmp[0], tmp[1]);
            }
            tAccountTH.setPersonUsernameInput("50", username, true);
View Full Code Here


      // Create a JMS-TextMessage for each element of the vector and send
      // this message to the queue.
      // Use the QueueSender's default delivery mode, timeToLive and
      // priority.
      for (Enumeration e = messageVec.elements(); e.hasMoreElements();)
      {
        try
        {
          TextMessage message = mqCon.createTextMessage();
          message.setText((String) e.nextElement());
View Full Code Here

          // and load the messages in a vector ...
          oidContainer.addElement(oid);
       }
       log.info("Successfully got " + oidContainer.size() + " stored message-oids from " + path);

       return oidContainer.elements();
    }



   /**
 
View Full Code Here

        Arrays.sort(keys);
        Vector nameClassPairs = new Vector();
        for (int n = 0; n < keys.length; n++)
            nameClassPairs.add(new NameClassPair((String) keys[n], bindings
                    .get(keys[n]).getClass().getName()));
        this.nameEnumeration = nameClassPairs.elements();
    }

    public void close() throws NamingException {
        this.nameEnumeration = null;
    }
View Full Code Here

    public WinstoneBindingEnumeration(Hashtable bindings,
            Hashtable environment, Context context) {
        Object keys[] = bindings.keySet().toArray();
        Arrays.sort(keys);
        Vector nameList = new Vector(Arrays.asList(keys));
        this.nameEnumeration = nameList.elements();
        this.bindings = (Hashtable) bindings.clone();
        this.context = context;
        this.contextEnvironment = environment;
    }
View Full Code Here

    String name = null;
    String filename = null;
    String origname = null;
    String contentType = "text/plain"// rfc1867 says this is the default

    Enumeration oEnum = headers.elements();
    while (oEnum.hasMoreElements()) {
      String headerline = (String) oEnum.nextElement();
      if (headerline.toLowerCase().startsWith("content-disposition:")) {
        // Parse the content-disposition line
        String[] dispInfo = extractDispositionInfo(headerline);
View Full Code Here

    public Enumeration getHeaders(String name) {
        if (hasBeenForwarded()) {
            return super.getHeaders(name);
        } else {
            Vector result = (Vector) this.oldRequest.getHeaders().get(name.toLowerCase());
            return result == null ? null : result.elements();
        }
    }

    public String getParameter(String name) {
        if (hasBeenForwarded()) {
View Full Code Here

                if (ms != null) {
                    shortcuts.addElement(ms);
                }
            }
  }
        return shortcuts.elements();
    }

    void deleteShortcut(MenuShortcut s) {
  int nitems = getItemCount();
  for (int i = 0 ; i < nitems ; i++) {
View Full Code Here

  }
      }
    }

    if (delCats.size() > 0) {
      Enumeration enCats = delCats.elements();

      if (catalogManager.debug.getDebug() > 1) {
  catalogManager.debug.message(2, "Switching to delegated catalog(s):");
  while (enCats.hasMoreElements()) {
    String delegatedCatalog = (String) enCats.nextElement();
View Full Code Here

  }
      }

      Catalog dcat = newCatalog();

      enCats = delCats.elements();
      while (enCats.hasMoreElements()) {
  String delegatedCatalog = (String) enCats.nextElement();
  dcat.parseCatalog(delegatedCatalog);
      }
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.