public class HttpResponseHeadersPropertyIO extends AbstractHttpPropertyIO
DEFAULT_PARAMETER_VALUES_DIVIDER
Constructor and Description |
---|
HttpResponseHeadersPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Constructor, with DEFAULT_PARAMETER_VALUES_DIVIDER as default multi values divider.
|
HttpResponseHeadersPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String parameterValuesDivider) |
Modifier and Type | Method and Description |
---|---|
protected void |
addHttpResponseHeadersProperties(Properties l_properties)
Finds all headers in the HttpServletResponse, and adds them to the properties.
|
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
The HttpServletResponse which was provided in the constructor.
|
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.
|
void |
validate()
Validates the IO.
|
addHttpRequestHeadersProperties, addHttpRequestParamsProperties, getHttpServletRequest, getParameterValuesDivider, getSource
backup, getCacheTime, getLastLoaded, getLastSaved, getLogger, getTypedProperties, getTypedValue, getValue, isCached, isReadonly, logPerformanceGetProperties, logPerformanceSetValue, reload, setCacheTime, storeTypedValue, updateLastLoaded, updateLastSaved, validateWritable
public HttpResponseHeadersPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
httpServletRequest
- the HttpServletRequest used the get the source.httpServletResponse
- the HttpServletResponse where to get and set HttpResponse headers.public HttpResponseHeadersPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String parameterValuesDivider)
httpServletRequest
- the HttpServletRequest used the get the source.httpServletResponse
- the HttpServletResponse where to get and set HttpResponse headers.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 javax.servlet.http.HttpServletResponse getHttpServletResponse()
public String getName()
PropertyIO
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.public void validate() throws PropertyIOException
AbstractHttpPropertyIO
validate
in interface PropertyIO
validate
in class AbstractHttpPropertyIO
PropertyIOException
public Properties getProperties()
PropertyIO
Properties
protected final void addHttpResponseHeadersProperties(Properties l_properties)
ParameterValuesDivider
.l_properties
- the properties to add them to.AbstractHttpPropertyIO.getParameterValuesDivider()