|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AtmosphereResourceEventImpl
public class AtmosphereResourceEventImpl
AtmosphereResourceEvent implementation for Servlet Container.
| Field Summary | |
|---|---|
protected boolean |
isResumedOnTimeout
|
protected Object |
message
|
protected AtmosphereResourceImpl |
r
|
| Constructor Summary | |
|---|---|
AtmosphereResourceEventImpl(AtmosphereResourceImpl r)
|
|
AtmosphereResourceEventImpl(AtmosphereResourceImpl r,
boolean isCancelled,
boolean isResumedOnTimeout)
|
|
| Method Summary | |
|---|---|
Object |
getMessage()
Return the object that were pass to Broadcaster.broadcast(java.lang.Object) |
AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> |
getResource()
Return the AtmosphereResource associated with this event |
boolean |
isCancelled()
Return true when the remote client close the connection. |
boolean |
isResumedOnTimeout()
Return true is the response gets resumed after a timeout. |
boolean |
isResuming()
Return true/tt> if that AtmosphereResource.resume() has been
invoked |
boolean |
isSuspended()
Return true/tt> if that AtmosphereResource.suspend() has been
invoked and set to true |
protected void |
setCancelled(boolean isCancelled)
|
void |
setMessage(Object message)
Set the message broadcasted using Broadcaster.broadcast(java.lang.Object) |
void |
write(OutputStream os,
Object o)
Write the Object using the OutputStream by invoking
the current Serializer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean isResumedOnTimeout
protected Object message
protected final AtmosphereResourceImpl r
| Constructor Detail |
|---|
public AtmosphereResourceEventImpl(AtmosphereResourceImpl r)
public AtmosphereResourceEventImpl(AtmosphereResourceImpl r,
boolean isCancelled,
boolean isResumedOnTimeout)
| Method Detail |
|---|
public boolean isResuming()
AtmosphereResource.resume() has been
invoked
isResuming in interface AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>AtmosphereResource.resume() has been
invoked and set to truepublic boolean isSuspended()
AtmosphereResource.suspend() has been
invoked and set to true
isSuspended in interface AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>AtmosphereResource.suspend() has been
invoked and set to truepublic Object getMessage()
Broadcaster.broadcast(java.lang.Object)
getMessage in interface AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>Broadcaster.broadcast(java.lang.Object)public void setMessage(Object message)
Broadcaster.broadcast(java.lang.Object)
message - The message broadcasted using Broadcaster.broadcast(java.lang.Object)public boolean isResumedOnTimeout()
isResumedOnTimeout in interface AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>public boolean isCancelled()
isCancelled in interface AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>protected void setCancelled(boolean isCancelled)
public AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> getResource()
AtmosphereResource associated with this event
getResource in interface AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>AtmosphereResource
public void write(OutputStream os,
Object o)
throws IOException
Object using the OutputStream by invoking
the current Serializer. If Serializer is null, the Object
will be directly written using the {
write in interface AtmosphereResourceEvent<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>os - OutputStreamo - Object
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||