Examples of MapEntry


Examples of org.apache.tiles.context.MapEntry

        Set set = new HashSet();
        Enumeration keys = session.getAttributeNames();
        String key;
        while (keys.hasMoreElements()) {
            key = (String) keys.nextElement();
            set.add(new MapEntry(key, session.getAttribute(key), true));
        }
        return (set);
    }
View Full Code Here

Examples of org.apache.tiles.context.MapEntry

        Set set = new HashSet();
        Enumeration keys = request.getHeaderNames();
        String key;
        while (keys.hasMoreElements()) {
            key = (String) keys.nextElement();
            set.add(new MapEntry(key, request.getHeaders(key), false));
        }
        return (set);
    }
View Full Code Here

Examples of org.apache.tiles.context.MapEntry

        Set set = new HashSet();
        Enumeration keys = request.getAttributeNames();
        String key;
        while (keys.hasMoreElements()) {
            key = (String) keys.nextElement();
            set.add(new MapEntry(key, request.getAttribute(key), true));
        }
        return (set);
    }
View Full Code Here

Examples of org.apache.tiles.context.MapEntry

        Set set = new HashSet();
        Enumeration keys = request.getParameterNames();
        String key;
        while (keys.hasMoreElements()) {
            key = (String) keys.nextElement();
            set.add(new MapEntry(key, request.getParameterValues(key), false));
        }
        return (set);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.endpoint.tribes.AbstractReplicatedMap.MapEntry

            for (Object v : map.values()) {
                Endpoint endpoint = (Endpoint)v;
                // TODO: implement more complete matching
                logger.fine("Matching against - " + endpoint);
                if (endpoint.matches(uri)) {
                    MapEntry entry = map.getInternal(endpoint.getURI());
                    // if (!entry.isPrimary()) {
                    ((RuntimeEndpoint)endpoint).bind(registry, this);
                    // }
                    foundEndpoints.add(endpoint);
                    logger.fine("Found endpoint with matching service  - " + endpoint);
View Full Code Here

Examples of org.apache.tuscany.sca.endpoint.tribes.AbstractReplicatedMap.MapEntry

        }
        map.put(endpoint.getURI(), endpoint);
    }

    public void entryAdded(Object key, Object value) {
        MapEntry entry = (MapEntry)value;
        Endpoint newEp = (Endpoint)entry.getValue();
        if (!isLocal(entry)) {
            logger.info(id + " Remote endpoint added: " + entry.getValue());
        }
        endpointAdded(newEp);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.endpoint.tribes.AbstractReplicatedMap.MapEntry

        }
        endpointAdded(newEp);
    }

    public void entryRemoved(Object key, Object value) {
        MapEntry entry = (MapEntry)value;
        if (!isLocal(entry)) {
            logger.info(id + " Remote endpoint removed: " + entry.getValue());
        }
        endpointRemoved((Endpoint)entry.getValue());
    }
View Full Code Here

Examples of org.apache.tuscany.sca.endpoint.tribes.AbstractReplicatedMap.MapEntry

        }
        endpointRemoved((Endpoint)entry.getValue());
    }

    public void entryUpdated(Object key, Object oldValue, Object newValue) {
        MapEntry oldEntry = (MapEntry)oldValue;
        MapEntry newEntry = (MapEntry)newValue;
        if (!isLocal(newEntry)) {
            logger.info(id + " Remote endpoint updated: " + newEntry.getValue());
        }
        Endpoint oldEp = (Endpoint)oldEntry.getValue();
        Endpoint newEp = (Endpoint)newEntry.getValue();
        endpointUpdated(oldEp, newEp);
    }
View Full Code Here

Examples of org.assertj.core.data.MapEntry

    if (notExpected.isEmpty() && notFound.isEmpty()) {
      // check entries order
      int index = 0;
      for (K keyFromActual : actual.keySet()) {
        if (!areEqual(keyFromActual, entries[index].key)) {
          MapEntry actualEntry = entry(keyFromActual, actual.get(keyFromActual));
          throw failures.failure(info, shouldContainExactly(actualEntry, entries[index], index));
        }
        index++;
      }
      // all entries are in the same order.
View Full Code Here

Examples of org.earth3d.server.mapcreator.data.MapEntry

      for(int i2=0; i2<mapsNodeList.getLength(); i2++) {
        Node maptileNode = mapsNodeList.item(i2);
        if (maptileNode.getNodeType() == Node.ELEMENT_NODE) {
          Element elemMap = (Element) maptileNode;
          if (elemMap.getTagName().equalsIgnoreCase("map")) {
            MapEntry newMap = new MapEntry(configfile.getParentFile().getPath(), elemMap);
            maps.add(newMap);
          }
          if (elemMap.getTagName().equalsIgnoreCase("heightfield")) {
            MapEntry newHeightfield = new MapEntry(configfile.getParentFile().getPath(), elemMap);
            heightfields.add(newHeightfield);
          }
        }
      }
    }
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.