public interface IRequestParamContainer extends com.helger.commons.collection.attr.IAttributeContainerAny<String>
String and String[] entries are
present. If the request was parsed as a multipart request, it may also
container IFileItem or IFileItem[] entries.com.helger.commons.collection.attr.IAttributeContainer.IAfterSetValueCallback<KEYTYPE,VALUETYPE>, com.helger.commons.collection.attr.IAttributeContainer.IBeforeSetValueCallback<KEYTYPE,VALUETYPE>| Modifier and Type | Method and Description |
|---|---|
default com.helger.commons.collection.impl.ICommonsMap<String,IFileItem> |
getAllUploadedFileItems() |
default com.helger.commons.collection.impl.ICommonsMap<String,IFileItem[]> |
getAllUploadedFileItemsComplete() |
default com.helger.commons.collection.impl.ICommonsList<IFileItem> |
getAllUploadedFileItemValues() |
default IFileItem |
getAsFileItem(String sAttrName)
Get the request attribute denoted by the specified attribute name as an
uploaded file item.
|
default String |
getAsStringTrimmed(String sFieldName)
Same as
getAsString but with a trimmed return value. |
default String |
getAsStringTrimmed(String sFieldName,
String sDefault)
Same as
getAsString but with a trimmed return value. |
default boolean |
hasCheckBoxValue(String sFieldName,
String sFieldValue,
boolean bDefaultValue) |
default boolean |
isCheckBoxChecked(String sFieldName,
boolean bDefaultValue)
Get the value of the checkbox of the request parameter with the given name.
|
getAndSetFlag, getClone, putIn, putIn, putIn, putIn, putIn, putInafterSetValueCallbacks, beforeSetValueCallbacks, getAsBoolean, getAsDouble, getAsFloat, getAsInt, getAsLong, getValue, putAllIn, putInaddAll, containsAnyEntry, containsAnyKey, containsAnyValue, copyOfEntrySet, copyOfKeySet, copyOfKeySet, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, createInstance, findFirstEntry, findFirstKey, findFirstValue, forEach, forEachKey, forEachKey, forEachValue, forEachValue, getAsUnmodifiable, getFirstEntry, getFirstEntry, getFirstKey, getFirstKey, getFirstValue, getFirstValue, getSortedByKey, getSortedByValue, getSwappedKeyValues, isNotEmpty, put, putAll, putAll, putAllMapped, putAllMapped, putAllMapped, putIf, putIfNotNull, removeAll, removeIf, removeIfKey, removeIfValue, removeObject, setAllclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuescontainsNonNullValue, containsNullValue, getAsBigDecimal, getAsBigDecimal, getAsBigInteger, getAsBigInteger, getAsBoolean, getAsBooleanObj, getAsByte, getAsByte, getAsByteArray, getAsByteObj, getAsChar, getAsChar, getAsCharArray, getAsCharArray, getAsCharObj, getAsDouble, getAsDoubleObj, getAsFloat, getAsFloatObj, getAsInt, getAsIntObj, getAsLocalDate, getAsLocalDate, getAsLocalDate, getAsLocalDateTime, getAsLocalDateTime, getAsLocalDateTime, getAsLocalTime, getAsLocalTime, getAsLocalTime, getAsLong, getAsLongObj, getAsShort, getAsShort, getAsShortObj, getAsSqlBlob, getAsSqlClob, getAsSqlDate, getAsSqlNClob, getAsSqlRowId, getAsSqlTime, getAsSqlTimestamp, getAsString, getAsString, getAsStringList, getAsStringList, getAsStringSet, getAsStringSet, getCastedValue, getCastedValue, getCastedValue, getCastedValue, getConvertedValue, getConvertedValue, getSafeCastedValue, getSafeCastedValue, getValueClass, hasStringValue, hasStringValue, onSafeCastError@Nonnull default com.helger.commons.collection.impl.ICommonsMap<String,IFileItem> getAllUploadedFileItems()
@Nonnull default com.helger.commons.collection.impl.ICommonsMap<String,IFileItem[]> getAllUploadedFileItemsComplete()
null but maybe empty map with all contained
IFileItem objects from file uploads. The key of the map is
the field name.@Nonnull default com.helger.commons.collection.impl.ICommonsList<IFileItem> getAllUploadedFileItemValues()
null but maybe empty list of all IFileItem
objects in the request. In comparison to
getAllUploadedFileItems() this method also returns the
content of IFileItem arrays.@Nullable default IFileItem getAsFileItem(@Nullable String sAttrName)
null.sAttrName - The attribute name to resolved. May be null.null if no such attribute is present, or if the
attribute is not a file item.default boolean isCheckBoxChecked(@Nullable String sFieldName, boolean bDefaultValue)
sFieldName - Request parameter name. May be null.bDefaultValue - the default value to be returned, if no request attribute is presenttrue if the checkbox is checked, false if
it is not checked and the default value otherwise.default boolean hasCheckBoxValue(@Nonnull @Nonempty String sFieldName, @Nonnull String sFieldValue, boolean bDefaultValue)
@Nullable default String getAsStringTrimmed(@Nullable String sFieldName)
getAsString but with a trimmed return value.sFieldName - The field name to query. May be null.null if no such parameter name is present.@Nullable default String getAsStringTrimmed(@Nullable String sFieldName, @Nullable String sDefault)
getAsString but with a trimmed return value.sFieldName - The field name to query. May be null.sDefault - The value to be returned if the retrieved value is null .null if no such parameter name is present.Copyright © 2014–2019 Philip Helger. All rights reserved.