Author: elecharny Date: Tue Sep 20 22:02:55 2016 New Revision: 1761647 URL: http://svn.apache.org/viewvc?rev=1761647&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=1761647&r1=1761646&r2=1761647&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 22:02:55 2016 @@ -199,18 +199,19 @@ 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 - +<ul> +<li>boolean containsAttribute(Object key) : tells if a given attribute is present</li> +<li>Object getAttribute(Object key) : gets the value for a given attribute</li> +<li>Object getAttribute(Object key, Object defaultValue) : gets the value for a given attribute, or a default value if absent</li> +<li>Set\<Object\> getAttributeKeys() : gets the set of all the stored attributes</li> +<li>Object removeAttribute(Object key) : remove a given attribute</li> +<li>boolean removeAttribute(Object key, Object value) : remove a given attribute/value pair</li> +<li>boolean replaceAttribute(Object key, Object oldValue, Object newValue) : replace a give attribute/value pair</li> +<li>Object setAttribute(Object key) : adds a new attribute with no value</li> +<li>Object setAttribute(Object key, Object value) : adds a new attribute/value pair</li> +<li>Object setAttributeIfAbsent(Object key) : adds a new attribute with no value, if it does not already exist</li> +<li>Object setAttributeIfAbsent(Object key, Object value) : adds a new attribute/value pair, if it does not already exist</li> +</ul> 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 !