com.sun.grizzly.tcp
Class NotesManagerImpl

java.lang.Object
  extended by com.sun.grizzly.tcp.NotesManagerImpl
All Implemented Interfaces:
NotesManager<Object>

public class NotesManagerImpl
extends Object
implements NotesManager<Object>

Simple API to handle notes with Request/Response object.

Author:
Jeanfrancois Arcand

Constructor Summary
NotesManagerImpl()
           
 
Method Summary
 Object getNote(int key)
          Return the note associated with key,
 Object removeNote(int key)
          Remove the note associated with the key token.
 void setNote(int key, Object value)
          Add a note.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotesManagerImpl

public NotesManagerImpl()
Method Detail

setNote

public void setNote(int key,
                    Object value)
Add a note.

Specified by:
setNote in interface NotesManager<Object>

getNote

public Object getNote(int key)
Return the note associated with key,

Specified by:
getNote in interface NotesManager<Object>

removeNote

public Object removeNote(int key)
Remove the note associated with the key token.

Specified by:
removeNote in interface NotesManager<Object>


Copyright © 2008 SUN Microsystems. All Rights Reserved.