org.pentaho.platform.web.http.session
Class HttpSessionParameterProvider
java.lang.Object
org.pentaho.platform.engine.core.solution.BaseParameterProvider
org.pentaho.platform.engine.core.solution.SimpleParameterProvider
org.pentaho.platform.web.http.session.HttpSessionParameterProvider
- All Implemented Interfaces:
- IParameterProvider
public class HttpSessionParameterProvider
- extends SimpleParameterProvider
HttpSessionParameterProvider
public HttpSessionParameterProvider(IPentahoSession session)
getParameter
public Object getParameter(String name)
- Description copied from interface:
IParameterProvider
- Gets the named parameter from the provider as it's native type
- Specified by:
getParameter
in interface IParameterProvider
- Overrides:
getParameter
in class SimpleParameterProvider
- Parameters:
name
- The name of the parameter to retrieve
- Returns:
- The native object
getStringParameter
public String getStringParameter(String name,
String defaultValue)
- Description copied from interface:
IParameterProvider
- Retrieve the requested parameter as type java.lang.String
- Specified by:
getStringParameter
in interface IParameterProvider
- Overrides:
getStringParameter
in class BaseParameterProvider
- Parameters:
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
- Returns:
- value of requested parameter, or the defaultValue if not found