Package java.util

Examples of java.util.Hashtable.keySet()


   private void mergeServiceOptions( MessageContext msgContext )
   {
      org.apache.axis.MessageContext axisMsgContext = (org.apache.axis.MessageContext) msgContext;
      SOAPService                    service  = axisMsgContext.getService(  );
      Hashtable                      options  = service.getOptions(  );
      Iterator                       iterator = options.keySet(  ).iterator(  );

      while ( iterator.hasNext(  ) )
      {
         String key = (String) iterator.next(  );
         setProperty( key,
View Full Code Here


      try
      {
         // Obtain the enterprise bean's environment naming context.
         Context initCtx = new InitialContext();
         Hashtable env = initCtx.getEnvironment();
         Iterator keys = env.keySet().iterator();
         log.info("InitialContext.env:");
         while( keys.hasNext() )
         {
            Object key = keys.next();
            log.info("Key: "+key+", value: "+env.get(key));
View Full Code Here

    /* Find the "normal" commands; those which are
       registered plugins: */

    Hashtable realCommandsHash = (Hashtable)(ij.Menus.getCommands().clone());

    Set realCommandSet = realCommandsHash.keySet();

    for (Iterator i = realCommandSet.iterator();
         i.hasNext();) {
      String command = (String)i.next();
      // Some of these are whitespace only or separators - ignore them:
View Full Code Here

      try
      {
         // Obtain the environment naming context.
         Context initCtx = new InitialContext();
         Hashtable env = initCtx.getEnvironment();
         Iterator keys = env.keySet().iterator();
         log.info("InitialContext.env:");
         while( keys.hasNext() )
         {
            Object key = keys.next();
            log.info("Key: "+key+", value: "+env.get(key));
View Full Code Here

      try
      {
         // Obtain the environment naming context.
         Context initCtx = new InitialContext();
         Hashtable env = initCtx.getEnvironment();
         Iterator keys = env.keySet().iterator();
         log.info("InitialContext.env:");
         while( keys.hasNext() )
         {
            Object key = keys.next();
            log.info("Key: "+key+", value: "+env.get(key));
View Full Code Here

          logger.log(BasicLevel.DEBUG, " All queues already visited. Re-initialize visitTable.");
        ((List) visitTable.get(msgId)).clear();
      }
    }

    for (Iterator e = table.keySet().iterator(); e.hasNext();) {
      AgentId id = (AgentId) e.next();
      forward(id,(LBCycleLife) table.get(id));
    }
  }
View Full Code Here

    }

    private void checkDefaultEntityHash(final DTD dtd) {
        Hashtable entityHash = dtd.entityHash;
        assertEquals(3, entityHash.size());
        Set keys = entityHash.keySet();
        Iterator iter = keys.iterator();
        int count = 0;
        while (iter.hasNext()) {
            String name = (String)iter.next();
            Entity entity = (Entity)entityHash.get(name);
View Full Code Here

        // Make the connection.
        Hashtable result = callXmlRpc( "get-siteinfo", args );

        result.remove("RESULT");
        for(Iterator j = result.keySet().iterator(); j.hasNext();) {
            String key = (String)j.next();
            if(key.equals("url")) {
                ret.set_url(toString(result.get(key)));
            } else if(key.equals("name")) {
                ret.set_name(toString(result.get(key)));
View Full Code Here

        // Make the connection.
        Hashtable result = callXmlRpc("get-contact", args);

        result.remove("RESULT");
        for(Iterator j = result.keySet().iterator(); j.hasNext();) {
            String key = (String)j.next();
            if(key.equals("country")) {
                ret.set_country(toString(result.get(key)));
            } else if(key.equals("first")) {
                ret.set_fname(toString(result.get(key)));
View Full Code Here

        logger.info(result.toString());

        result.remove("RESULT");
        Integer ret = new Integer(0);
        for(Iterator j = result.keySet().iterator(); j.hasNext();) {
            String key = (String)j.next();
            if(key.equals("interface")) {
                if(Integer.parseInt(toString(result.get(key))) != CSS_INTERFACE) {
                    return(new Integer(0));
                }
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.