org.pentaho.platform.engine.core.system
Class BasePentahoRequestContext

java.lang.Object
  extended by org.pentaho.platform.engine.core.system.BasePentahoRequestContext
All Implemented Interfaces:
IPentahoRequestContext

public class BasePentahoRequestContext
extends Object
implements IPentahoRequestContext


Field Summary
 String contextPath
           
static String EMPTY
           
static String SLASH
           
 
Constructor Summary
BasePentahoRequestContext(String contextPath)
           
 
Method Summary
 String getContextPath()
          Returns the portion of the request URI that indicates the context of the request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextPath

public String contextPath

SLASH

public static final String SLASH
See Also:
Constant Field Values

EMPTY

public static final String EMPTY
See Also:
Constant Field Values
Constructor Detail

BasePentahoRequestContext

public BasePentahoRequestContext(String contextPath)
Method Detail

getContextPath

public String getContextPath()
Description copied from interface: IPentahoRequestContext
Returns the portion of the request URI that indicates the context of the request. The context path always comes first in a request URI. The path starts with a "/" character and end with a "/" character. For servlets in the default (root) context, this method returns "/". The container does not decode this string. It is possible that a servlet container may match a context by more than one context path. In such cases this method will return the actual context path used by the request

Specified by:
getContextPath in interface IPentahoRequestContext