Get the property object as String, or return defaultVal if property is not defined.

@param name
property name.
@param defaultVal
default property value.
@return
property value as String, return defaultVal if property is undefined.
974501
public static String getString(String name, String defaultVal){
        if(getConfiguration().containsKey(name)){
            return getConfiguration().getString(name);
        } else {
            return defaultVal;
        }
    }
108472
public String getParameter(String name, String defaultValue) {
        parseBody();
        return params.getValue(name, defaultValue);
    }
954940
public static long getLong(String name, long defaultVal){
        if(getConfiguration().containsKey(name)){
            return getConfiguration().getLong(name);
        } else {
            return defaultVal;
        }
    }
850320
public static String getEnv(String name, String defaultValue) {
        Map<String, String> env = System.getenv();

        // try to get value from environment variables
        if (env.get(name) != null) {
            return env.get(name);
        }

        // fall back to system properties
        return System.getProperty(name, defaultValue);
    }
1247352
@SuppressWarnings("null")
	public static String value(String key, String defaultValue) {
		return System.getProperty(key, defaultValue);
	}
442463
public static String getProperty(String propertyName, String defaultValue) {
        String value = get(propertyName);
        return value == null ? defaultValue : value;
    }
78882
@SuppressWarnings("unchecked")
    public <T> T getProperty(String propName, T defaultValue) {
        String propValue = props.getProperty(propName);
        if (propValue == null)
            return defaultValue;
        return ReflectionUtil.<T>getObjectInstance(propValue);
    }
724242
public float getFloat(String name, float defaultVal){
        if(this.configuration.containsKey(name)){
            return this.configuration.getFloat(name);
        } else {
            return defaultVal;
        }
    }
116803
public String get(String propertyName, String defaultValue)
    {
        return properties.getProperty(propertyName, defaultValue);
    }
414517
public String getResponseHeaderValue(String name, String defaultVal) {
        if (m_response.containsHeader(name)) {
            return m_response.getFirstHeader(name).getValue();
        } else {
            return defaultVal;
        }
    }
526508
public String getValueWithDefault(String keyMsgType, String defaultVal) {
        return keyToValue.getOrDefault(keyMsgType, defaultVal);
    }
232428
public String checkProp(final Properties pr, final String name, final String defaultVal) {
    String val = pr.getProperty(name);

    if (val == null) {
      pr.put(name, defaultVal);
      val = defaultVal;
    }

    return val;
  }
732337
public String getProperty(String propName, String defaultValue) {
        return props.getProperty(propName, defaultValue);
    }
367730
public String getStringProperty( String key , String defaultValue )
    {
        return getStringProperty(key,defaultValue,true);
    }
1100461
public static String getProperty(String name) {
        if (propertyProvider == null) {
            initPropertyProvider();
        }
        
        return propertyProvider.getProperty(name);
    }
337504
public static Properties getProps(Properties props, String name, Properties defaultProperties) {
        final String propString = props.getProperty(name);
        if (propString == null) return defaultProperties;
        String[] propValues = propString.split(",");
        if (propValues.length < 1) {
            throw new IllegalArgumentException("Illegal format of specifying properties '" + propString + "'");
        }
        Properties properties = new Properties();
        for (int i = 0; i < propValues.length; i++) {
            String[] prop = propValues[i].split("=");
            if (prop.length != 2) throw new IllegalArgumentException("Illegal format of specifying properties '" + propValues[i] + "'");
            properties.put(prop[0], prop[1]);
        }
        return properties;
    }
504777
public String getString(String nameOfField, String defaultValue) {
		String value = (String) stringData.get(nameOfField);
		
		if (value == null) {
			return defaultValue;
		}
		
		return value;
	}