public class HttpRequestHeadersPropertyIO extends AbstractHttpPropertyIO
HttpServletRequest.getHeaderNames()
" and "HttpServletRequest.getHeaders(key)
". HttpServletRequest.getHeaderNames()
,
HttpServletRequest.getHeaders(String)
,
Serialized FormDEFAULT_PARAMETER_VALUES_DIVIDER
Constructor and Description |
---|
HttpRequestHeadersPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest)
Constructor, with DEFAULT_PARAMETER_VALUES_DIVIDER as default "parameterValuesDivider".
|
HttpRequestHeadersPropertyIO(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, validate
backup, getCacheTime, getLastLoaded, getLastSaved, getLogger, getTypedProperties, getTypedValue, getValue, isCached, isReadonly, logPerformanceGetProperties, logPerformanceSetValue, reload, setCacheTime, storeTypedValue, updateLastLoaded, updateLastSaved, validateWritable
public HttpRequestHeadersPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest) throws NullPointerException
httpServletRequest
- the HttpServletRequest from where to get header names and values.NullPointerException
AbstractHttpPropertyIO.DEFAULT_PARAMETER_VALUES_DIVIDER
public HttpRequestHeadersPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest, String parameterValuesDivider)
httpServletRequest
- the HttpServletRequest from where to get header names and values.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()
PropertyIO
public Properties getProperties()
PropertyIO
Properties
public void setValue(String propertyName, String value) throws PropertyIOException
PropertyIO
propertyName
- the name of the propertyvalue
- the string value of the property.PropertyIOException
- if the IO is readonly or failed to write the value.