org.pentaho.platform.engine.core.system
Class BasePentahoRequestContext
java.lang.Object
org.pentaho.platform.engine.core.system.BasePentahoRequestContext
- All Implemented Interfaces:
- IPentahoRequestContext
public class BasePentahoRequestContext
- extends Object
- implements IPentahoRequestContext
Method Summary |
String |
getContextPath()
Returns the portion of the request URI that indicates the context of the request. |
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
BasePentahoRequestContext
public BasePentahoRequestContext(String contextPath)
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