com.sun.grizzly.samples.comet
Class AjaxCometServlet.ChatListnerHandler

java.lang.Object
  extended by com.sun.grizzly.samples.comet.AjaxCometServlet.ChatListnerHandler
All Implemented Interfaces:
CometHandler<PrintWriter>
Enclosing class:
AjaxCometServlet

public class AjaxCometServlet.ChatListnerHandler
extends Object
implements CometHandler<PrintWriter>


Constructor Summary
AjaxCometServlet.ChatListnerHandler()
           
 
Method Summary
 void attach(PrintWriter writer)
          Attach an intance of E to this class.
 void onEvent(CometEvent event)
          Receive CometEvent notification.
 void onInitialize(CometEvent event)
          Receive CometEvent notification when the underlying tcp communication is started by the client
 void onInterrupt(CometEvent event)
          Receive CometEvent notification when the underlying tcp communication is resumed by the Grizzly ARP.
 void onTerminate(CometEvent event)
          Receive CometEvent notification when the underlying tcp communication is closed by the CometHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxCometServlet.ChatListnerHandler

public AjaxCometServlet.ChatListnerHandler()
Method Detail

attach

public void attach(PrintWriter writer)
Description copied from interface: CometHandler
Attach an intance of E to this class.

Specified by:
attach in interface CometHandler<PrintWriter>

onEvent

public void onEvent(CometEvent event)
             throws IOException
Description copied from interface: CometHandler
Receive CometEvent notification.

Specified by:
onEvent in interface CometHandler<PrintWriter>
Throws:
IOException

onInitialize

public void onInitialize(CometEvent event)
                  throws IOException
Description copied from interface: CometHandler
Receive CometEvent notification when the underlying tcp communication is started by the client

Specified by:
onInitialize in interface CometHandler<PrintWriter>
Throws:
IOException

onInterrupt

public void onInterrupt(CometEvent event)
                 throws IOException
Description copied from interface: CometHandler
Receive CometEvent notification when the underlying tcp communication is resumed by the Grizzly ARP.

Specified by:
onInterrupt in interface CometHandler<PrintWriter>
Throws:
IOException

onTerminate

public void onTerminate(CometEvent event)
                 throws IOException
Description copied from interface: CometHandler
Receive CometEvent notification when the underlying tcp communication is closed by the CometHandler

Specified by:
onTerminate in interface CometHandler<PrintWriter>
Throws:
IOException


Copyright © 2010 SUN Microsystems. All Rights Reserved.