public class HttpRequestParamsPropertyIO extends AbstractHttpPropertyIO
HttpServletRequest.getParameterMap(). ServletRequest.getParameterMap(),
Serialized FormDEFAULT_PARAMETER_VALUES_DIVIDER| Constructor and Description |
|---|
HttpRequestParamsPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest)
Constructor, with DEFAULT_PARAMETER_VALUES_DIVIDER as default "parameterValuesDivider".
|
HttpRequestParamsPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest,
String parameterValuesDivider)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
A short descriptive name of the Property IO.
|
Properties |
getProperties()
Gets all the name,value pair in a Properties class instance.
|
void |
setValue(String propertyName,
String value)
This IO is readonly.
|
addHttpRequestHeadersProperties, addHttpRequestParamsProperties, getHttpServletRequest, getParameterValuesDivider, getSource, validatebackup, getCacheTime, getLastLoaded, getLastSaved, getLogger, getTypedProperties, getTypedValue, getValue, isCached, isReadonly, logPerformanceGetProperties, logPerformanceSetValue, reload, setCacheTime, storeTypedValue, updateLastLoaded, updateLastSaved, validateWritablepublic HttpRequestParamsPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest - the HttpServletRequest from where to get ParameterValue(s).AbstractHttpPropertyIO.DEFAULT_PARAMETER_VALUES_DIVIDERpublic HttpRequestParamsPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest,
String parameterValuesDivider)
httpServletRequest - request the HttpServletRequest from where to get ParameterValue(s).parameterValuesDivider - if a parameter has multiple values they re concatinated to one string with this as divider. Must be not null and none empty.public String getName()
PropertyIOpublic Properties getProperties()
PropertyIOPropertiespublic void setValue(String propertyName, String value) throws PropertyIOException
propertyName - the name of the propertyvalue - the string value of the property.PropertyIOException - if the IO is readonly or failed to write the value.