org.openmuc.webinterface.internal
Class PluginContextImpl
java.lang.Object
org.openmuc.webinterface.internal.PluginContextImpl
- All Implemented Interfaces:
- PluginContext
public class PluginContextImpl
- extends java.lang.Object
- implements PluginContext
Constructor Summary |
PluginContextImpl(java.lang.String pathInfo,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginContextImpl
public PluginContextImpl(java.lang.String pathInfo,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
getApplicationPath
public java.lang.String getApplicationPath()
- Description copied from interface:
PluginContext
- Get the path of plugin application including the application alias.
The path is the path relative to the application containers root.
This should be used for absolute links to local resources.
- Specified by:
getApplicationPath
in interface PluginContext
- Returns:
- the plugins applications base path
getLocalPath
public java.lang.String getLocalPath()
- Description copied from interface:
PluginContext
- Get the plugin applications local path.
This is part of the servlets PathInfo without the servlet context,
plugin category and application alias.
- Specified by:
getLocalPath
in interface PluginContext
- Returns:
- the plug-ins local part of PathInfo
getApplicationAlias
public java.lang.String getApplicationAlias()
- Specified by:
getApplicationAlias
in interface PluginContext
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
- Specified by:
getResponse
in interface PluginContext
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
- Specified by:
getRequest
in interface PluginContext