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, getSourcebackup, getCacheTime, getLastLoaded, getLastSaved, getLogger, getTypedProperties, getTypedValue, getValue, isCached, isReadonly, logPerformanceGetProperties, logPerformanceSetValue, reload, setCacheTime, storeTypedValue, updateLastLoaded, updateLastSaved, validateWritablepublic 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()
PropertyIOpublic 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.public void validate()
throws PropertyIOException
AbstractHttpPropertyIOvalidate in interface PropertyIOvalidate in class AbstractHttpPropertyIOPropertyIOExceptionpublic Properties getProperties()
PropertyIOPropertiesprotected final void addHttpResponseHeadersProperties(Properties l_properties)
ParameterValuesDivider.l_properties - the properties to add them to.AbstractHttpPropertyIO.getParameterValuesDivider()