public final class StreamInitiationManager extends Manager implements FileTransferNegotiator
| Modifier and Type | Method and Description |
|---|---|
AsyncResult<FileTransfer> |
accept(IQ iq,
String sessionId,
FileTransferOffer fileTransferOffer,
Object protocol,
OutputStream outputStream) |
AsyncResult<OutputStream> |
initiateStream(rocks.xmpp.addr.Jid receiver,
SIFileTransferOffer profile,
String mimeType,
long timeout)
Initiates a stream with another entity.
|
void |
reject(IQ iq) |
isEnabled, setEnabledpublic AsyncResult<OutputStream> initiateStream(rocks.xmpp.addr.Jid receiver, SIFileTransferOffer profile, String mimeType, long timeout)
receiver - The receiver, i.e. the XMPP entity you want to negotiate a stream.profile - The profile. Currently there's only the SIFileTransferOffer profile.mimeType - The mime type of the stream.timeout - The timeout, which wait until the stream has been negotiated.public AsyncResult<FileTransfer> accept(IQ iq, String sessionId, FileTransferOffer fileTransferOffer, Object protocol, OutputStream outputStream)
accept in interface FileTransferNegotiatorpublic void reject(IQ iq)
reject in interface FileTransferNegotiatorCopyright © 2014–2016 XMPP.rocks. All rights reserved.