Package dev.voidframework.web.http
Class Session
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
An HTTP session.
- Since:
- 1.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIndicate if internal HashMap has been modified. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
toString
-
Field Details
-
isModified
protected transient boolean isModifiedIndicate if internal HashMap has been modified.- Since:
- 1.2.0
-
-
Constructor Details
-
Session
public Session()Build a new instance.- Since:
- 1.0.0
-
Session
Build a new instance.- Parameters:
sesionData- Initial session data- Since:
- 1.0.0
-
-
Method Details
-
remove
Removes a value. -
put
Adds a single value. -
putAll
Adds multiple value. -
clear
public void clear()Clears all values. -
isModified
public boolean isModified()Checks if internal values has been modified.- Returns:
trueif internal values has been modified, otherwise,false- Since:
- 1.2.0
-
equals
-
hashCode
public int hashCode()
-