org.glassfish.grizzly.callbackhandler
Class CallbackHandlerAdapter

java.lang.Object
  extended by org.glassfish.grizzly.AbstractProcessor
      extended by org.glassfish.grizzly.callbackhandler.AbstractCallbackHandler
          extended by org.glassfish.grizzly.callbackhandler.CallbackHandlerAdapter
All Implemented Interfaces:
CallbackHandler, Processor

public class CallbackHandlerAdapter
extends AbstractCallbackHandler

Empty adapter for CallbackHandler interface.

Author:
Alexey Stashok
See Also:
CallbackHandler

Field Summary
 
Fields inherited from class org.glassfish.grizzly.callbackhandler.AbstractCallbackHandler
interestedIoEventsMask
 
Constructor Summary
CallbackHandlerAdapter()
           
 
Method Summary
 void onAccept(Context context)
          This method is called when IOEvent.ACCEPTED event occured on Connection.
 void onClose(Context context)
          This method is called when IOEvent.CLOSED event occured on Connection.
 void onConnect(Context context)
          This method is called when IOEvent.CONNECTED event occured on Connection.
 void onRead(Context context)
          This method is called when IOEvent.READ event occured on Connection.
 void onWrite(Context context)
          This method is called when IOEvent.WRITE event occured on Connection.
 
Methods inherited from class org.glassfish.grizzly.callbackhandler.AbstractCallbackHandler
isInterested, process, setInterested
 
Methods inherited from class org.glassfish.grizzly.AbstractProcessor
afterProcess, beforeProcess, context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.grizzly.Processor
afterProcess, beforeProcess, context
 

Constructor Detail

CallbackHandlerAdapter

public CallbackHandlerAdapter()
Method Detail

onAccept

public void onAccept(Context context)
              throws IOException
This method is called when IOEvent.ACCEPTED event occured on Connection.

Parameters:
context - an object containing information about the event processing.
Throws:
IOException

onConnect

public void onConnect(Context context)
               throws IOException
This method is called when IOEvent.CONNECTED event occured on Connection.

Parameters:
context - an object containing information about the event processing.
Throws:
IOException

onRead

public void onRead(Context context)
            throws IOException
This method is called when IOEvent.READ event occured on Connection.

Parameters:
context - an object containing information about the event processing.
Throws:
IOException

onWrite

public void onWrite(Context context)
             throws IOException
This method is called when IOEvent.WRITE event occured on Connection.

Parameters:
context - an object containing information about the event processing.
Throws:
IOException

onClose

public void onClose(Context context)
             throws IOException
This method is called when IOEvent.CLOSED event occured on Connection.

Parameters:
context - an object containing information about the event processing.
Throws:
IOException


Copyright © 2009 SUN Microsystems. All Rights Reserved.