|
RichFaces Core Implementation 4.2.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.richfaces.application.push.impl.RequestImpl
public class RequestImpl
| Constructor Summary | |
|---|---|
RequestImpl(org.atmosphere.cpr.Meteor meteor,
org.richfaces.application.push.Session session)
|
|
| Method Summary | |
|---|---|
org.richfaces.application.push.Session |
getSession()
|
boolean |
isPolling()
|
void |
onBroadcast(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
This method is called once the broadcast event occurs. |
void |
onDisconnect(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
|
void |
onResume(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
|
void |
onSuspend(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
|
void |
onThrowable(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
|
void |
postMessages()
Tries to push messages, when there are some in the session's queue. |
void |
resume()
|
void |
suspend()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestImpl(org.atmosphere.cpr.Meteor meteor,
org.richfaces.application.push.Session session)
| Method Detail |
|---|
public void suspend()
suspend in interface org.richfaces.application.push.Requestpublic void resume()
resume in interface org.richfaces.application.push.Requestpublic boolean isPolling()
isPolling in interface org.richfaces.application.push.Requestpublic org.richfaces.application.push.Session getSession()
getSession in interface org.richfaces.application.push.Requestpublic void postMessages()
Tries to push messages, when there are some in the session's queue.
When detects that request is currently broadcasting, it ignores the call, since the sending of the messages will be
proceed later as stated by onBroadcast(AtmosphereResourceEvent) method.
postMessages in interface org.richfaces.application.push.Requestpublic void onSuspend(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
onSuspend in interface org.atmosphere.cpr.AtmosphereResourceEventListenerpublic void onResume(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
onResume in interface org.atmosphere.cpr.AtmosphereResourceEventListenerpublic void onDisconnect(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
onDisconnect in interface org.atmosphere.cpr.AtmosphereResourceEventListenerpublic void onBroadcast(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
This method is called once the broadcast event occurs.
Once this event occurs, he broadcasting is done, so we can clean up.
This method clears the broadcasted messages from session and then opens the request for further broadcasting.
In case this request is long-polling, the request is completed and client needs to start new request for receiving new messages.
In another case - the request is done by websocket - it tries to send messages which could be posted when broadcasting.
onBroadcast in interface org.atmosphere.cpr.AtmosphereResourceEventListenerpublic void onThrowable(org.atmosphere.cpr.AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> event)
onThrowable in interface org.atmosphere.cpr.AtmosphereResourceEventListener
|
RichFaces Core Implementation 4.2.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||