|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.atmosphere.samples.chat.MeteorChat
@MeteorService(path="/*",
interceptors=org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor.class)
public class MeteorChat
Simple Servlet that implement the logic to build a Chat application using
a Meteor to suspend and broadcast chat message.
| Constructor Summary | |
|---|---|
MeteorChat()
|
|
| Method Summary | |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Create a Meteor and use it to suspend the response. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Re-use the Meteor created on the first GET for broadcasting message. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MeteorChat()
| Method Detail |
|---|
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
Meteor and use it to suspend the response.
doGet in class javax.servlet.http.HttpServletreq - An HttpServletRequestres - An HttpServletResponse
IOException
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
Meteor created on the first GET for broadcasting message.
doPost in class javax.servlet.http.HttpServletreq - An HttpServletRequestres - An HttpServletResponse
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||