public interface IParameterProvider
Modifier and Type | Field and Description |
---|---|
static String |
SCOPE_REQUEST |
static String |
SCOPE_SESSION |
Modifier and Type | Method and Description |
---|---|
Object[] |
getArrayParameter(String name,
Object[] defaultValue)
Retrieve the requested parameter as an Object array
|
Date |
getDateParameter(String name,
Date defaultValue)
Retrieve the requested parameter as type java.util.Date.
|
BigDecimal |
getDecimalParameter(String name,
BigDecimal defaultValue)
Retrieve the requested parameter as decimal, returning a java.lang.Object.
|
long |
getLongParameter(String name,
long defaultValue)
Retrieve the requested parameter as primitive Java type long.
|
Object |
getParameter(String name)
Gets the named parameter from the provider as it's native type
|
Iterator |
getParameterNames()
Return list of all avialable parameter names in this provider
|
String[] |
getStringArrayParameter(String name,
String[] defaultValue)
Retrieve the requested parameter as a String array
|
String |
getStringParameter(String name,
String defaultValue)
Retrieve the requested parameter as type java.lang.String
|
boolean |
hasParameter(String name) |
static final String SCOPE_REQUEST
static final String SCOPE_SESSION
String getStringParameter(String name, String defaultValue)
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be foundlong getLongParameter(String name, long defaultValue)
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be foundDate getDateParameter(String name, Date defaultValue)
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be foundBigDecimal getDecimalParameter(String name, BigDecimal defaultValue)
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be foundObject[] getArrayParameter(String name, Object[] defaultValue)
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be foundString[] getStringArrayParameter(String name, String[] defaultValue)
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be foundIterator getParameterNames()
Object getParameter(String name)
name
- The name of the parameter to retrieveboolean hasParameter(String name)
name
- Name of the parameter to look up