Code example for Dictionary

Methods: get

0
        this.path = getProperty(props, COMETD_PATH, DEFAULT_COMETD_PATH);
    } 
 
    private String getProperty(Dictionary props, String name, String defValue)
    { 
        Object value = props.get(name);
        if (value == null)
        { 
            value = this.context.getProperty(name);
        } 
 
        return value != null ? String.valueOf(value) : defValue;
    } 
}