public class HttpRequestPropertyIO extends AbstractHttpPropertyIO
HttpServletRequest.getParameterMap() and from HttpServletRequest.getHeaders(...). DEFAULT_PARAMETER_VALUES_DIVIDER| Constructor and Description |
|---|
HttpRequestPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest)
Constructor, with DEFAULT_PARAMETER_VALUES_DIVIDER as default "parameterValuesDivider".
|
HttpRequestPropertyIO(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)
Sets the name,value as String in the IO.
|
addHttpRequestHeadersProperties, addHttpRequestParamsProperties, getHttpServletRequest, getParameterValuesDivider, getSource, validatebackup, getCacheTime, getLastLoaded, getLastSaved, getLogger, getTypedProperties, getTypedValue, getValue, isCached, isReadonly, logPerformanceGetProperties, logPerformanceSetValue, reload, setCacheTime, storeTypedValue, updateLastLoaded, updateLastSaved, validateWritablepublic HttpRequestPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest - the HttpServletRequest from where to get ParameterValue(s).public HttpRequestPropertyIO(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
PropertyIOpropertyName - the name of the propertyvalue - the string value of the property.PropertyIOException - if the IO is readonly or failed to write the value.