public interface IRequestScope extends IScope
| Modifier and Type | Method and Description |
|---|---|
default ICommonsList<String> |
getAttributeAsList(String sName)
Get a list of all attribute values with the same name.
|
ICommonsList<String> |
getAttributeAsList(String sName,
ICommonsList<String> aDefault)
Get a list of all attribute values with the same name.
|
default String |
getSessionID()
Shortcut for
getSessionID(true) |
String |
getSessionID(boolean bCreateIfNotExisting) |
default boolean |
hasAttributeValue(String sName,
String sDesiredValue)
Check if a attribute with the given name is present in the request and has
the specified value.
|
default boolean |
hasAttributeValue(String sName,
String sDesiredValue,
boolean bDefault)
Check if a attribute with the given name is present in the request and has
the specified value.
|
destroyScope, getAllScopeRenewalAwareAttributes, getID, initScope, isDestroyed, isInDestruction, isValid, runAtomic, runAtomicgetAndSetAttributeFlag, setAttribute, setAttribute, setAttribute, setAttributeremoveAttribute, setAttribute, setAttributes, setAttributescontainsAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getAttributeCount, getAttributeObject, getCastedAttribute, getCastedAttribute, getIterator, getTypedAttribute, getTypedAttribute, isEmpty, isNotEmptycleargetComparatorID@Nonnull @Nonempty default String getSessionID()
getSessionID(true)null if no session ID is present and no session should
be created.@Nullable String getSessionID(boolean bCreateIfNotExisting)
bCreateIfNotExisting - if true a session ID is created if needednull if no session ID is present and no session should
be created.@Nullable default ICommonsList<String> getAttributeAsList(@Nullable String sName)
sName - The name of the attribute to query.null if no such attribute value exists@Nullable ICommonsList<String> getAttributeAsList(@Nullable String sName, @Nullable ICommonsList<String> aDefault)
sName - The name of the attribute to query.aDefault - The default value to be returned, if no such attribute is present.aDefault if no such attribute value existsdefault boolean hasAttributeValue(@Nullable String sName, @Nullable String sDesiredValue)
sName - The name of the attribute to checksDesiredValue - The value to be matchedtrue if an attribute with the given name is present
and has the desired valuedefault boolean hasAttributeValue(@Nullable String sName, @Nullable String sDesiredValue, boolean bDefault)
sName - The name of the attribute to checksDesiredValue - The value to be matchedbDefault - the default value to be returned, if the specified attribute is not
presenttrue if an attribute with the given name is present
and has the desired value, false if the attribute is
present but has a different value. If the attribute is not present,
the default value is returned.Copyright © 2014–2016 Philip Helger. All rights reserved.