|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.samples.comet.AjaxCometServlet.ChatListnerHandler
public class AjaxCometServlet.ChatListnerHandler
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 |
---|
public AjaxCometServlet.ChatListnerHandler()
Method Detail |
---|
public void attach(PrintWriter writer)
CometHandler
attach
in interface CometHandler<PrintWriter>
public void onEvent(CometEvent event) throws IOException
CometHandler
CometEvent
notification.
onEvent
in interface CometHandler<PrintWriter>
IOException
public void onInitialize(CometEvent event) throws IOException
CometHandler
CometEvent
notification when the underlying
tcp communication is started by the client
onInitialize
in interface CometHandler<PrintWriter>
IOException
public void onInterrupt(CometEvent event) throws IOException
CometHandler
CometEvent
notification when the underlying
tcp communication is resumed by the Grizzly ARP.
onInterrupt
in interface CometHandler<PrintWriter>
IOException
public void onTerminate(CometEvent event) throws IOException
CometHandler
CometEvent
notification when the underlying
tcp communication is closed by the CometHandler
onTerminate
in interface CometHandler<PrintWriter>
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |