org.pentaho.platform.web.http.session
Class HttpSessionParameterProvider

java.lang.Object
  extended by org.pentaho.platform.engine.core.solution.BaseParameterProvider
      extended by org.pentaho.platform.engine.core.solution.SimpleParameterProvider
          extended by org.pentaho.platform.web.http.session.HttpSessionParameterProvider
All Implemented Interfaces:
IParameterProvider

public class HttpSessionParameterProvider
extends SimpleParameterProvider


Field Summary
 
Fields inherited from interface org.pentaho.platform.api.engine.IParameterProvider
SCOPE_REQUEST, SCOPE_SESSION
 
Constructor Summary
HttpSessionParameterProvider(IPentahoSession session)
           
 
Method Summary
 Object getParameter(String name)
          Gets the named parameter from the provider as it's native type
 String getStringParameter(String name, String defaultValue)
          Retrieve the requested parameter as type java.lang.String
 
Methods inherited from class org.pentaho.platform.engine.core.solution.SimpleParameterProvider
copyAndConvertAdditionalParameters, copyAndConvertParameters, getParameterNames, setParameter, setParameter, setParameter, setParameter, setParameters
 
Methods inherited from class org.pentaho.platform.engine.core.solution.BaseParameterProvider
getArrayParameter, getDateParameter, getDecimalParameter, getListParameter, getLongParameter, getStringArrayParameter, hasParameter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.platform.api.engine.IParameterProvider
getArrayParameter, getDateParameter, getDecimalParameter, getLongParameter, getStringArrayParameter, hasParameter
 

Constructor Detail

HttpSessionParameterProvider

public HttpSessionParameterProvider(IPentahoSession session)
Method Detail

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 retrieve
defaultValue - value to return if the named parameter can not be found
Returns:
value of requested parameter, or the defaultValue if not found