1 17 18 package org.pentaho.core.system; 19 20 import org.pentaho.messages.Messages; 21 22 public class WebApplicationContext extends StandaloneApplicationContext { 23 24 private String baseUrl; 25 26 public WebApplicationContext(String solutionRootPath, String baseUrl, String applicationPath) { 27 super(solutionRootPath, applicationPath); 28 this.baseUrl = baseUrl; 29 } 30 31 public String getBaseUrl() { 32 if (!baseUrl.endsWith("/")) { baseUrl = baseUrl + "/"; } 35 return baseUrl; 36 } 37 38 public String getPentahoServerName() { 39 return PentahoSystem.getSystemSetting("name", Messages.getString("PentahoSystem.USER_SYSTEM_TITLE")); } 41 42 } 43 | Popular Tags |