Class ByteStreamEvent
- java.lang.Object
-
- java.util.EventObject
-
- rocks.xmpp.extensions.bytestreams.ByteStreamEvent
-
- All Implemented Interfaces:
Serializable
public abstract class ByteStreamEvent extends EventObject
A byte stream event, which notifies a listener about inbound byte stream requests.In order to accept an inbound byte stream, use
accept(), which will return aByteStreamSession. To reject the byte stream, usereject(), which will return a<not-acceptable/>error to the sender.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AsyncResult<ByteStreamSession>accept()Accepts the session.StringgetSessionId()Gets the session id.abstract voidreject()Rejects the session.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Method Detail
-
getSessionId
public final String getSessionId()
Gets the session id.- Returns:
- The session id.
-
accept
public abstract AsyncResult<ByteStreamSession> accept()
Accepts the session.- Returns:
- The byte stream session.
-
reject
public abstract void reject()
Rejects the session.
-
-