You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2016/09/20 21:56:25 UTC
svn commit: r1761645 -
/mina/site/trunk/content/mina-project/userguide/ch4-session/ch4-session.mdtext
Author: elecharny
Date: Tue Sep 20 21:56:25 2016
New Revision: 1761645
URL: http://svn.apache.org/viewvc?rev=1761645&view=rev
Log:
Fixed the formating, again
Modified:
mina/site/trunk/content/mina-project/userguide/ch4-session/ch4-session.mdtext
Modified: mina/site/trunk/content/mina-project/userguide/ch4-session/ch4-session.mdtext
URL: http://svn.apache.org/viewvc/mina/site/trunk/content/mina-project/userguide/ch4-session/ch4-session.mdtext?rev=1761645&r1=1761644&r2=1761645&view=diff
==============================================================================
--- mina/site/trunk/content/mina-project/userguide/ch4-session/ch4-session.mdtext (original)
+++ mina/site/trunk/content/mina-project/userguide/ch4-session/ch4-session.mdtext Tue Sep 20 21:56:25 2016
@@ -199,17 +199,17 @@ and here is the factory interface we can
There are many methods available to manipulate the session's attributes :
-* boolean containsAttribute(Object key) : tells if a given attribute is present
-* Object getAttribute(Object key) : gets the value for a given attribute
-* Object getAttribute(Object key, Object defaultValue) : gets the value for a given attribute, or a default value if absent
-* Set<Object> getAttributeKeys() : gets the set of all the stored attributes
-* Object removeAttribute(Object key) : remove a given attribute
-* boolean removeAttribute(Object key, Object value) : remove a given attribute/value pair
-* boolean replaceAttribute(Object key, Object oldValue, Object newValue) : replace a give attribute/value pair
-* Object setAttribute(Object key) : adds a new attribute with no value
-* Object setAttribute(Object key, Object value) : adds a new attribute/value pair
-* Object setAttributeIfAbsent(Object key) : adds a new attribute with no value, if it does not already exist
-* Object setAttributeIfAbsent(Object key, Object value) : adds a new attribute/value pair, if it does not already exist
+ * boolean containsAttribute(Object key) : tells if a given attribute is present
+ * Object getAttribute(Object key) : gets the value for a given attribute
+ * Object getAttribute(Object key, Object defaultValue) : gets the value for a given attribute, or a default value if absent
+ * Set<Object> getAttributeKeys() : gets the set of all the stored attributes
+ * Object removeAttribute(Object key) : remove a given attribute
+ * boolean removeAttribute(Object key, Object value) : remove a given attribute/value pair
+ * boolean replaceAttribute(Object key, Object oldValue, Object newValue) : replace a give attribute/value pair
+ * Object setAttribute(Object key) : adds a new attribute with no value
+ * Object setAttribute(Object key, Object value) : adds a new attribute/value pair
+ * Object setAttributeIfAbsent(Object key) : adds a new attribute with no value, if it does not already exist
+ * Object setAttributeIfAbsent(Object key, Object value) : adds a new attribute/value pair, if it does not already exist
All those methods allows your application to store, remove, get or update the attributes stored into your session. Also note that some attributes are used internally by MINA : don't lightly modify those you didn't create !