Package java.util

Examples of java.util.Hashtable.keys()


  if ((admin != null) && request.url.startsWith(admin)) {
      StringBuffer sb = new StringBuffer();
      Properties props = request.props;

      Hashtable pages = getPages(request);
      Enumeration keys = pages.keys();
      for (int i = 0; keys.hasMoreElements(); i++) {
    String url = (String) keys.nextElement();
    PageInfo pi = (PageInfo) pages.get(url);
    sb.append(i).append(' ');
View Full Code Here


    getInfo(Request request)
    {
  Hashtable h = request.getQueryData();
 
  Hashtable cookies = getSessionCookies(request);
  Enumeration e = cookies.keys();

  Hashtable sites = new Hashtable();

  Properties props = request.props;
  String pfx = prefix + "domains.";
View Full Code Here

    props.put(site, props.getProperty(site, "") + name + " ");
    props.put(site + "." + name, value);
      }
  }

  e = sites.keys();
  StringBuffer sb = new StringBuffer();
  for (int i = 0; e.hasMoreElements(); i++) {
      sb.append(e.nextElement()).append(' ');
  }
  props.put(prefix + "domains", sb.toString());
View Full Code Here

    for (int i = 0; i < v.size(); i++)
    {
      Hashtable subhash = (Hashtable) v.elementAt(i);

      for (Enumeration keys = subhash.keys();
           keys.hasMoreElements();
           /* no increment portion */
          )
      {
        Object key = keys.nextElement();
View Full Code Here

    for (int i = 0; i < v.size(); i++)
    {
      Hashtable subhash = (Hashtable) v.elementAt(i);

      for (Enumeration keys = subhash.keys();
           keys.hasMoreElements();
           /* no increment portion */
          )
      {
        Object key = keys.nextElement();
View Full Code Here

  Hashtable all = new Hashtable();
 
  while (node != null) {
      Hashtable mapping = node.getPrefixMapping();
      if (mapping != null) {
    Enumeration prefixes = mapping.keys();
    while (prefixes.hasMoreElements()) {
        String prefix = (String)prefixes.nextElement();
        if (!all.containsKey(prefix)) {
      all.put(prefix, mapping.get(prefix));
        }
View Full Code Here

               index = attrList.getNextAttr(index);
            }

            // try to resolve all the grammars here
            if (locationUriPairs != null) {
               Enumeration locations = locationUriPairs.keys();

               while (locations.hasMoreElements()) {
                  String loc = (String) locations.nextElement();
                  String uri = (String) locationUriPairs.get(loc);
                  resolveSchemaGrammar( loc, uri);
View Full Code Here

        StringBuffer htmlString = new StringBuffer();

        Hashtable attrs = tag.getAttributes();
        String pTagName = tag.getAttribute(Tag.TAGNAME);
        htmlString.append("<").append(pTagName);
        for (Enumeration e = attrs.keys(); e.hasMoreElements();)
        {
            String key = (String) e.nextElement();
            String value = (String) attrs.get(key);
            if (!key.equalsIgnoreCase(Tag.TAGNAME) && value.length() > 0)
                htmlString.append(" ").append(key).append("=\"").append(
View Full Code Here

        StringBuffer lString = new StringBuffer(tagName);
        lString.append(" TAG\n");
        lString.append("--------\n");

        for (Enumeration e = attrs.keys(); e.hasMoreElements();)
        {
            String key = (String) e.nextElement();
            String value = (String) attrs.get(key);
            if (!key.equalsIgnoreCase(Tag.TAGNAME) && value.length() > 0)
                lString.append(key).append(" : ").append(value).append("\n");
View Full Code Here

                    String.class);
            out.printin("out.write(\"<\"");
            out.print(" + " + elemName);

            // Write remaining attributes
            Enumeration enumeration = map.keys();
            while (enumeration.hasMoreElements()) {
                String attrName = (String) enumeration.nextElement();
                out.print((String) map.get(attrName));
            }
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.