|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.samples.comet.CometServlet.CometRequestHandler
public class CometServlet.CometRequestHandler
Field Summary | |
---|---|
protected PrintWriter |
printWriter
|
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 |
---|
protected PrintWriter printWriter
Constructor Detail |
---|
public CometServlet.CometRequestHandler()
Method Detail |
---|
public void attach(PrintWriter printWriter)
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 onTerminate(CometEvent event) throws IOException
CometHandler
CometEvent
notification when the underlying
tcp communication is closed by the CometHandler
onTerminate
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |