public abstract class AbstractHttpPropertyIO extends AbstractPropertyIO
ServletRequest.getParameterNames(),
ServletRequest.getParameterValues(String),
MarkerListPropertyType,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PARAMETER_VALUES_DIVIDER
If a parameter has multiple values, they are concatinated to one string with this as default divider ","
|
| Constructor and Description |
|---|
AbstractHttpPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest,
String parameterValuesDivider,
boolean readonly,
boolean cached)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHttpRequestHeadersProperties(Properties l_properties)
Finds all headers in the HttpServletRequest, and adds them to the properties.
|
protected void |
addHttpRequestParamsProperties(Properties l_properties)
Finds all parameters in the HttpServletRequest, and adds them to the properties.
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
The HttpServletRequest which was provided in the constructor.
|
String |
getParameterValuesDivider()
Get divider between multiple values for one parameter.
|
String |
getSource()
Returns remote address and session id.
|
void |
validate()
Validates the IO.
|
backup, getCacheTime, getLastLoaded, getLastSaved, getLogger, getTypedProperties, getTypedValue, getValue, isCached, isReadonly, logPerformanceGetProperties, logPerformanceSetValue, reload, setCacheTime, storeTypedValue, updateLastLoaded, updateLastSaved, validateWritableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getProperties, setValuepublic static final String DEFAULT_PARAMETER_VALUES_DIVIDER
public AbstractHttpPropertyIO(javax.servlet.http.HttpServletRequest httpServletRequest,
String parameterValuesDivider,
boolean readonly,
boolean cached)
httpServletRequest - the request.parameterValuesDivider - the string divider, if a named property has multiple values, they concatinated to one string with this as divider.readonly - is the IO readonly.cached - is the IO cached shall the values be cached in the PropertyIO's.public final String getParameterValuesDivider()
public final javax.servlet.http.HttpServletRequest getHttpServletRequest()
public String getSource()
getHttpServletRequest().getRemoteAddr()+" for session "+(session==null ? "[No session]" : session.getId());"
ServletRequest.getRemoteAddr(),
HttpSession.getId()protected final void addHttpRequestParamsProperties(Properties l_properties)
ParameterValuesDivider.l_properties - the properties to add them to.getParameterValuesDivider()protected final void addHttpRequestHeadersProperties(Properties l_properties)
ParameterValuesDivider.l_properties - the properties to add them to.getParameterValuesDivider()public void validate()
throws PropertyIOException
PropertyIOException