Class SessionParameter
java.lang.Object
com.invirgance.convirgance.web.parameter.SessionParameter
- All Implemented Interfaces:
Parameter
Retrieves a value from the http session
- Author:
- jbanes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the value to return if the session value is nullgetName()
The name of the parameter or the session key if name has not been setThe key to retrieve from the sessiongetValue
(HttpRequest request) Extracts a value from the HTTP request.void
setDefaultValue
(String defaultValue) Set the value to return if the session value is nullvoid
Set the name of the parametervoid
setSessionKey
(String key) Set the key to retrieve from the session
-
Constructor Details
-
SessionParameter
public SessionParameter()
-
-
Method Details
-
getName
The name of the parameter or the session key if name has not been set -
setName
Set the name of the parameter- Parameters:
name
- name of the parameter
-
getSessionKey
The key to retrieve from the session- Returns:
- key to retrieve from session
-
setSessionKey
Set the key to retrieve from the session- Parameters:
key
- key to retrieve from session
-
getDefaultValue
Set the value to return if the session value is null- Returns:
- default value to return
-
setDefaultValue
Set the value to return if the session value is null- Parameters:
defaultValue
- default value to return
-
getValue
Description copied from interface:Parameter
Extracts a value from the HTTP request.
-