org.pentaho.platform.web.http.context
Class WebApplicationContext

java.lang.Object
  extended by org.pentaho.platform.engine.core.system.StandaloneApplicationContext
      extended by org.pentaho.platform.web.http.context.WebApplicationContext
All Implemented Interfaces:
IApplicationContext

public class WebApplicationContext
extends StandaloneApplicationContext


Constructor Summary
WebApplicationContext(String solutionRootPath, String baseUrl, String applicationPath)
           
WebApplicationContext(String solutionRootPath, String baseUrl, String applicationPath, Object context)
           
 
Method Summary
 String getBaseUrl()
          Returns a URL to the server application, up to and including the context.
 String getPentahoServerName()
          Retrieves the descriptive name of the platform application.
 void setBaseUrl(String baseUrl)
           
 
Methods inherited from class org.pentaho.platform.engine.core.system.StandaloneApplicationContext
addEntryPointHandler, addExitPointHandler, createTempFile, createTempFile, getApplicationPath, getContext, getFileOutputPath, getProperty, getProperty, getServerPort, getSolutionPath, getSolutionRootPath, invokeEntryPoints, invokeExitPoints, removeEntryPointHandler, removeExitPointHandler, setContext, setProperties, setSolutionRootPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebApplicationContext

public WebApplicationContext(String solutionRootPath,
                             String baseUrl,
                             String applicationPath,
                             Object context)

WebApplicationContext

public WebApplicationContext(String solutionRootPath,
                             String baseUrl,
                             String applicationPath)
Method Detail

getBaseUrl

public String getBaseUrl()
Description copied from interface: IApplicationContext
Returns a URL to the server application, up to and including the context.

The URL that is returned is derived from the server context, and thus will include the protocol, host name, port, and application context root.

Specified by:
getBaseUrl in interface IApplicationContext
Overrides:
getBaseUrl in class StandaloneApplicationContext
Returns:
the URL to the server application context root.

getPentahoServerName

public String getPentahoServerName()
Description copied from interface: IApplicationContext
Retrieves the descriptive name of the platform application.

The Pentaho server name should specified in the system settings configuration file, using the name element

Specified by:
getPentahoServerName in interface IApplicationContext
Overrides:
getPentahoServerName in class StandaloneApplicationContext
Returns:
the descriptive server name as specified in the system settings, or "Pentaho Business Intelligence Platform" by default.

setBaseUrl

public void setBaseUrl(String baseUrl)
Specified by:
setBaseUrl in interface IApplicationContext
Overrides:
setBaseUrl in class StandaloneApplicationContext