Example usage for org.apache.wicket.util.collections MultiMap getFirstValue

List of usage examples for org.apache.wicket.util.collections MultiMap getFirstValue

Introduction

In this page you can find the example usage for org.apache.wicket.util.collections MultiMap getFirstValue.

Prototype

public V getFirstValue(final K key) 

Source Link

Document

Gets the first value in the value list

Usage

From source file:org.forgerock.openam.amutils.config.processors.PlatformServiceProcessor.java

License:CDDL license

private void processServers(SubConfiguration serversConfig) {
    for (SubConfiguration server : serversConfig.getSubConfiguration()) {
        String serverName = server.getName();
        MultiMap<String, String> properties = processAttributes(server.getAttributeValuePair());
        String serverId = properties.getFirstValue("serverid");
        servers.put(serverId, new Server(serverName, properties));
    }//from w ww.  ja va2s . co  m
}