Package java.util

Examples of java.util.Map.entrySet()


         return ret;
      }

      private String debug(HttpInputStream is) throws IOException {
         Map headers = is.getHeaders();
         Iterator iter = headers.entrySet().iterator();
         StringBuffer buf = new StringBuffer(1024);
         buf.append("headers: \n");
         while (iter.hasNext()) {
            Map.Entry entry = (Map.Entry)iter.next();
            String key = (String)entry.getKey();
View Full Code Here


         buf.append("path  \t: ").append(is.getPath()).append("\n");
         buf.append("query\t: ").append(is.getQueryString()).append("\n");
         buf.append("query\t: ").append(is.getQueryString()).append("\n");
         buf.append("query\t: ").append(is.getQueryString()).append("\n");
         Map variables  = is.getHeaders();
         iter = variables.entrySet().iterator();
         buf.append("variables: \n");
         while (iter.hasNext()) {
            Map.Entry entry = (Map.Entry)iter.next();
            String key = (String)entry.getKey();
            String val = (String)entry.getValue();
View Full Code Here

            }
            values.add(value);
            key = connection.getHeaderFieldKey(i);
            value = connection.getHeaderField(i);
        }
        Iterator entries = map.entrySet().iterator();
        while (entries.hasNext()) {
            Map.Entry entry = (Map.Entry) entries.next();
            entry.setValue(Collections.unmodifiableList((List)
                    entry.getValue()));
        }
View Full Code Here

        final Definition definition,
        final String namespace)
    {
        String prefix = null;
        final Map namespaces = definition.getNamespaces();
        for (final Iterator iterator = namespaces.entrySet().iterator(); iterator.hasNext();)
        {
            final Map.Entry entry = (Map.Entry)iterator.next();
            if (entry.getValue().equals(namespace))
            {
                prefix = (String)entry.getKey();
View Full Code Here

         Object[] params = new Object[0];
         java.lang.reflect.Method method = Thread.class.getMethod("getAllStackTraces", paramCls);
         Map stacks = (Map)method.invoke(Thread.class, params);
         // Since JDK 1.5
         //Map stacks = Thread.getAllStackTraces();
         Iterator iter = stacks.entrySet().iterator();
         StringBuffer buf = new StringBuffer(2048);
         while (iter.hasNext()) {
            Map.Entry entry = (Map.Entry)iter.next();
            Thread key = (Thread)entry.getKey();
            StackTraceElement[] elements = (StackTraceElement[])entry.getValue();
View Full Code Here

      {
        System.out.println("\nTesting with quotes:\n");
        String[] nextLines = { "org.xmlBlaster.protocol.soap.SoapDriver,\"classpath=xerces.jar:soap.jar,all\",MAXSIZE=100,a=10,\"b=", "20\",c=30" };
        Map map = parseLine(nextLines, DEFAULT_SEPARATOR, DEFAULT_QUOTE_CHARACTER, DEFAULT_INNER_SEPARATOR, true, false, true);
        java.util.Iterator it = map.entrySet().iterator();
        while (it.hasNext()) {
           Map.Entry entry = (Map.Entry)it.next();
           System.out.println(entry.getKey() + "=" + entry.getValue());
        }
      }
View Full Code Here

            }
           
            acks.add(deliveryInfo);
        
        
         Iterator iter = ackMap.entrySet().iterator();
        
         while (iter.hasNext())
         {
            Map.Entry entry = (Map.Entry)iter.next();
           
View Full Code Here

      if (endpoints != null)
      {
         List sces = new ArrayList();

         for(Iterator i = endpoints.entrySet().iterator(); i.hasNext(); )
         {
            Map.Entry entry = (Map.Entry)i.next();
            ConnectionEndpoint sce = (ConnectionEndpoint)entry.getValue();
            sces.add(sce);
         }
View Full Code Here

         return;
      }

      Map sao = attrOverrides.get(on);

      for(Iterator i = sao.entrySet().iterator(); i.hasNext();)
      {
         Map.Entry entry = (Map.Entry)i.next();
         String attrName = (String)entry.getKey();
         Object attrValue = entry.getValue();
         sc.setAttribute(on, attrName, attrValue.toString());
View Full Code Here

           
            boolean foundEntry = false;
                       
            if (replicants != null)
            {
               for(Iterator i = replicants.entrySet().iterator(); i.hasNext(); )
               {
                  Map.Entry entry = (Map.Entry)i.next();
                  Integer nid = (Integer)entry.getKey();
                  FailoverStatus status = (FailoverStatus)entry.getValue();
                 
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.