Package rocks.xmpp.core.session
Class SessionStatusEvent
- java.lang.Object
-
- java.util.EventObject
-
- rocks.xmpp.core.session.SessionStatusEvent
-
- All Implemented Interfaces:
Serializable
public final class SessionStatusEvent extends EventObject
An XMPP session event is fired, whenever the status of a session has changed, e.g. when it is abnormally disconnected.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmppSession.StatusgetOldStatus()Gets the old session status.XmppSession.StatusgetStatus()Gets the session status.ThrowablegetThrowable()Gets the throwable if the session abnormally disconnected or null.StringtoString()-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Method Detail
-
getStatus
public final XmppSession.Status getStatus()
Gets the session status.- Returns:
- The session status.
-
getThrowable
public final Throwable getThrowable()
Gets the throwable if the session abnormally disconnected or null.- Returns:
- The throwable, which caused a disconnection or null.
-
getOldStatus
public final XmppSession.Status getOldStatus()
Gets the old session status.- Returns:
- The old session status.
-
toString
public final String toString()
- Overrides:
toStringin classEventObject
-
-