|
||||||||||
| 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 Object |
message
|
protected AtmosphereResourceImpl |
resource
|
| Constructor Summary | |
|---|---|
AtmosphereResourceEventImpl(AtmosphereResourceImpl resource)
|
|
AtmosphereResourceEventImpl(AtmosphereResourceImpl resource,
boolean isCancelled,
boolean isResumedOnTimeout)
|
|
AtmosphereResourceEventImpl(AtmosphereResourceImpl resource,
boolean isCancelled,
boolean isResumedOnTimeout,
boolean isClosedByClient,
Throwable throwable)
|
|
AtmosphereResourceEventImpl(AtmosphereResourceImpl resource,
boolean isCancelled,
boolean isResumedOnTimeout,
Throwable throwable)
|
|
| Method Summary | |
|---|---|
Broadcaster |
broadcaster()
Return the broadcaster associated with the AtmosphereResource this object contains. |
AtmosphereResourceEvent |
destroy()
|
boolean |
equals(Object o)
|
Object |
getMessage()
Return the object that were pass to Broadcaster.broadcast(java.lang.Object) |
AtmosphereResource |
getResource()
Return the AtmosphereResource associated with this event |
int |
hashCode()
|
boolean |
isCancelled()
Return true when the remote client close the connection. |
boolean |
isClosedByClient()
Return true if the client closed the connection and send the Atmosphere close message. |
AtmosphereResourceEventImpl |
isClosedByClient(boolean isClosedByClient)
|
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 AtmosphereResourceEventImpl |
setCancelled(boolean isCancelled)
|
protected AtmosphereResourceEventImpl |
setIsResumedOnTimeout(boolean isResumedOnTimeout)
|
AtmosphereResourceEventImpl |
setMessage(Object message)
Set the message broadcasted using Broadcaster.broadcast(java.lang.Object) |
AtmosphereResourceEvent |
setThrowable(Throwable t)
|
Throwable |
throwable()
Return a Throwable if an unexpected exception occured. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Object message
protected AtmosphereResourceImpl resource
| Constructor Detail |
|---|
public AtmosphereResourceEventImpl(AtmosphereResourceImpl resource)
public AtmosphereResourceEventImpl(AtmosphereResourceImpl resource,
boolean isCancelled,
boolean isResumedOnTimeout)
public AtmosphereResourceEventImpl(AtmosphereResourceImpl resource,
boolean isCancelled,
boolean isResumedOnTimeout,
Throwable throwable)
public AtmosphereResourceEventImpl(AtmosphereResourceImpl resource,
boolean isCancelled,
boolean isResumedOnTimeout,
boolean isClosedByClient,
Throwable throwable)
| Method Detail |
|---|
public boolean isResuming()
AtmosphereResource.resume() has been
invoked
isResuming in interface AtmosphereResourceEventAtmosphereResource.resume() has been
invoked and set to truepublic boolean isSuspended()
AtmosphereResource.suspend() has been
invoked and set to true
isSuspended in interface AtmosphereResourceEventAtmosphereResource.suspend() has been
invoked and set to truepublic boolean isClosedByClient()
OnDisconnectInterceptor in order to receive the proper value,
and enableProtocol set to true on the client side (enabledProtocol is true by default).
isClosedByClient in interface AtmosphereResourceEventpublic Object getMessage()
Broadcaster.broadcast(java.lang.Object)
getMessage in interface AtmosphereResourceEventBroadcaster.broadcast(java.lang.Object)public AtmosphereResourceEventImpl setMessage(Object message)
Broadcaster.broadcast(java.lang.Object)
setMessage in interface AtmosphereResourceEventmessage - The message broadcasted using Broadcaster.broadcast(java.lang.Object)public AtmosphereResourceEventImpl isClosedByClient(boolean isClosedByClient)
public boolean isResumedOnTimeout()
isResumedOnTimeout in interface AtmosphereResourceEventpublic boolean isCancelled()
isCancelled in interface AtmosphereResourceEventprotected AtmosphereResourceEventImpl setCancelled(boolean isCancelled)
protected AtmosphereResourceEventImpl setIsResumedOnTimeout(boolean isResumedOnTimeout)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Throwable throwable()
Throwable if an unexpected exception occured.
throwable in interface AtmosphereResourceEventThrowable if an unexpected exception occured.public Broadcaster broadcaster()
AtmosphereResource this object contains.
broadcaster in interface AtmosphereResourceEventpublic AtmosphereResource getResource()
AtmosphereResource associated with this event
getResource in interface AtmosphereResourceEventAtmosphereResourcepublic AtmosphereResourceEvent setThrowable(Throwable t)
public AtmosphereResourceEvent destroy()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||