Code example for ConcurrentHashMap

Methods: put

0
     * @param key the key name for the new param. 
     * @param value the value string for the new param. 
     */ 
    public void put(String key, String value){
        if(key != null && value != null) {
            urlParams.put(key, value);
        } 
    } 
 
    /** 
     * Adds a file to the request. 
     * @param key the key name for the new param. 
     * @param file the file to add. 
     */ 
    public void put(String key, File file) throws FileNotFoundException {
        put(key, new FileInputStream(file), file.getName());
    } 
 
    /** 
     * Adds param with more than one value. 
     * @param key the key name for the new param.