FileDocCategorySizeDatePackage
ConfigBean.javaAPI DocExample928Wed Jul 16 16:31:28 BST 2003com.develop.ss.test

ConfigBean.java

package com.develop.ss.test;

import java.util.Properties;
import java.io.IOException;

public class ConfigBean {
  String webServiceEndpoint;
  String webServiceWsdl;
  String searchJspUrl;
  String webappUrl;

  public ConfigBean() throws IOException {
    Properties props = new Properties();
    props.load(getClass().getResourceAsStream("/com.develop.ss.test.properties"));
    webServiceEndpoint = props.getProperty("web.service.endpoint");
    webServiceWsdl = props.getProperty("web.service.wsdl");
    searchJspUrl = props.getProperty("search.jsp.url");
    webappUrl = props.getProperty("webapp.url");
  }

  public String getWebappUrl() {
    return webappUrl;
  }

  public String getWebServiceEndpoint() {
    return webServiceEndpoint;
  }

  public String getSearchJspUrl() {
    return searchJspUrl;
  }

  public String getWebServiceWsdl() {
    return webServiceWsdl;
  }
}