package at.gv.egovernment.moa.spss.slinterface.beans; import java.util.Properties; import org.apache.log4j.Logger; import at.gv.egovernment.moa.spss.slinterface.Constants; /** * @author Gregor Karlinger (mailto:gregor.karlinger@siemens.com) */ public class InitPropertiesBean { private Properties initProps_; private static Logger logger_ = Logger.getLogger(Constants.LH_BEANS_); public InitPropertiesBean(Properties props) { initProps_ = props; } public String getMOASLWebAppURL() { String webAppServerURLProp = initProps_.getProperty(Constants.IP_REW_MOASL_WEBAPPSERV_URL_); logger_.debug("MOA SL Web application server URL property: " + webAppServerURLProp); if (webAppServerURLProp == null || webAppServerURLProp.trim().length() == 0) { String defaultWebAppServerURL = "http://localhost:8080"; logger_.info("MOA SL Web application server URL property not available, using default (" + defaultWebAppServerURL + ")"); return defaultWebAppServerURL; } else return webAppServerURLProp; } }