public interface IRequestScope extends IScope
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAttributeAsList(String sName)
Get a list of all attribute values with the same name.
|
List<String> |
getAttributeAsList(String sName,
List<String> aDefault)
Get a list of all attribute values with the same name.
|
String |
getSessionID()
Shortcut for
getSessionID(true) |
String |
getSessionID(boolean bCreateIfNotExisting) |
boolean |
hasAttributeValue(String sName,
String sDesiredValue)
Check if a attribute with the given name is present in the request and has
the specified value.
|
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, containsNoAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getAttributeCount, getAttributeObject, getCastedAttribute, getCastedAttribute, getIterator, getTypedAttribute, getTypedAttributeclear@Nonnull @Nonempty 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 List<String> getAttributeAsList(@Nullable String sName)
sName - The name of the attribute to query.null if no such attribute value exists@Nullable List<String> getAttributeAsList(@Nullable String sName, @Nullable List<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 existsboolean 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 valueboolean 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–2015 Philip Helger. All rights reserved.