com.sun.grizzly.samples.comet.iframechat
Class CometServlet.CometRequestHandler

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

public class CometServlet.CometRequestHandler
extends Object
implements CometHandler<PrintWriter>


Field Summary
 String clientIP
           
 
Constructor Summary
CometServlet.CometRequestHandler()
           
 
Method Summary
 void attach(PrintWriter printWriter)
          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
 

Field Detail

clientIP

public String clientIP
Constructor Detail

CometServlet.CometRequestHandler

public CometServlet.CometRequestHandler()
Method Detail

attach

public void attach(PrintWriter printWriter)
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

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

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


Copyright © 2008 SUN Microsystems. All Rights Reserved.