public String getConfiguredPassword() { String result = null; Configuration c = getConfiguration(); if (c != null) { NameValue nv = c.findNameValueByName(NMSConstants.PASSWORD); if (nv != null) { result = nv.getValue(); } } return (result); }
/** {@inheritDoc} */ public int getConfiguredUpdateHour() { int result = 4; Configuration c = getConfiguration(); if (c != null) { NameValue nv = c.findNameValueByName(NMSConstants.UPDATE_HOUR); if (nv != null) { result = Util.str2int(nv.getValue(), result); } } return (result); }
public String getConfiguredUserName() { String result = null; Configuration c = getConfiguration(); if (c != null) { NameValue nv = c.findNameValueByName(NMSConstants.USER_NAME); if (nv != null) { result = nv.getValue(); } } return (result); }
public String getConfiguredZipCode() { String result = null; Configuration c = getConfiguration(); if (c != null) { NameValue nv = c.findNameValueByName(NMSConstants.ZIP_CODE); if (nv != null) { result = nv.getValue(); } } return (result); }
public String getConfiguredCountry() { String result = null; Configuration c = getConfiguration(); if (c != null) { NameValue nv = c.findNameValueByName(NMSConstants.COUNTRY); if (nv != null) { result = nv.getValue(); } } return (result); }
/** * Convenience method to get the configured Recorder Source. * * @return A directory path as a String. */ public String getConfiguredRecorderSource() { String result = null; Configuration c = getConfiguration(); if (c != null) { NameValue nv = c.findNameValueByName(NMSConstants.RECORDING_DEVICE); if (nv != null) { result = nv.getValue(); } } return (result); }
/** * Convenience method to get the configured value of PORT, if an OnDemand service defines one. * * @return A String object. */ public int getConfiguredPort() { int result = 8080; Configuration c = getConfiguration(); if (c != null) { NameValue nv = c.findNameValueByName(NMSConstants.PORT); if (nv != null) { result = Util.str2int(nv.getValue(), result); } } return (result); }