Example usage for jdk.nashorn.internal.scripts JD get

List of usage examples for jdk.nashorn.internal.scripts JD get

Introduction

In this page you can find the example usage for jdk.nashorn.internal.scripts JD get.

Prototype

@Override
    public Object get(final Object key) 

Source Link

Usage

From source file:capframework.http.core.ConfigFileParser.java

License:Apache License

@Override
public void mapErrors(HashMap<Integer, String> hashMap) {
    for (Object obj : errors.values()) {
        JD jd = (JD) obj;
        Integer errorCode = Integer.valueOf(String.valueOf(jd.get("Error")));
        String handler = String.valueOf(jd.get("Handler"));
        hashMap.put(errorCode, handler);
    }//from  www . j  a  va 2s.c om
}

From source file:capframework.http.core.ConfigFileParser.java

License:Apache License

private void map(NativeArray array, HashMap<String, String> hashMap, String keyName) {
    for (Object obj : array.values()) {
        JD jd = (JD) obj;
        String request = String.valueOf(jd.get(keyName));
        String location = String.valueOf(jd.get("Location"));
        hashMap.put(request, location);/*from   ww  w  .j a v a  2 s .com*/
    }
}