public class

AppGlobalContextImpl

extends Object
implements AppGlobalContext
java.lang.Object
   ↳ com.microstrategy.web.platform.AppGlobalContextImpl

Class Overview

The class AppGlobalContextImpl provides the default implementation of the interface AppGlobalContext which is applicable only to ASPx application.

Summary

Public Constructors
AppGlobalContextImpl()
The default constructor of this class.
Public Methods
String getApplicationPath()
Returns the application path.
String getBasePath()
Returns current application's base path.
String getInitParameter(String paramName)
Returns initialization parameter value
Enumeration getInitParameterNames()
Returns enumeration of initialization parameter names
String getRequestServerName()
Returns the request server name.
String getServletName()
Returns the name of the servlet used to initialized this AppGlobalContext.
void loadInitParameters(String relPath, String servletName)
Loads servlet's initialization parameters from the web.xml
void setApplicationPath(String applPath)
Sets the application's base URL used to build link and form URLs.
void setBasePath(String basePath)
Sets the base path for loading different application resources.
void setRequestServerName(String serverName)
Sets the request server name
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.microstrategy.web.platform.AppGlobalContext

Public Constructors

public AppGlobalContextImpl ()

The default constructor of this class.

Public Methods

public String getApplicationPath ()

Returns the application path.

Returns
  • The current application's path.
Throws
IllegalStateException thrown when the application path has not been set.

public String getBasePath ()

Returns current application's base path.

Returns
  • The curretn application's base path.
Throws
IllegalStateException thrown when the application's base path has not been set.

public String getInitParameter (String paramName)

Returns initialization parameter value

Parameters
paramName parameter name
Returns
  • parameter value

public Enumeration getInitParameterNames ()

Returns enumeration of initialization parameter names

Returns
  • enumeration of initialization parameter names

public String getRequestServerName ()

Returns the request server name.

Returns
  • The request server name.
Throws
IllegalStateException thrown when the server name has not been set.

public String getServletName ()

Returns the name of the servlet used to initialized this AppGlobalContext.

public void loadInitParameters (String relPath, String servletName)

Loads servlet's initialization parameters from the web.xml

Parameters
relPath relative path to the xml file containig parameters (include the xml name)
servletName servlet name

public void setApplicationPath (String applPath)

Sets the application's base URL used to build link and form URLs.

Parameters
applPath application path

public void setBasePath (String basePath)

Sets the base path for loading different application resources.

Parameters
basePath a path to a root directory of application resources. All resource pathes are resolved relative to this path.

public void setRequestServerName (String serverName)

Sets the request server name

Parameters
serverName The server who serves the request.