public final class StreamInitiationManager extends Manager implements FileTransferNegotiator
Modifier and Type | Method and Description |
---|---|
AsyncResult<FileTransfer> |
accept(IQ iq,
java.lang.String sessionId,
FileTransferOffer fileTransferOffer,
java.lang.Object protocol,
java.io.OutputStream outputStream) |
AsyncResult<ByteStreamSession> |
initiateStream(Jid receiver,
SIFileTransferOffer profile,
java.lang.String mimeType,
java.time.Duration timeout)
Initiates a stream with another entity.
|
AsyncResult<ByteStreamSession> |
initiateStream(Jid receiver,
SIFileTransferOffer profile,
java.lang.String mimeType,
java.time.Duration timeout,
java.lang.String sessionId)
Initiates a stream with another entity.
|
void |
reject(IQ iq) |
isEnabled, setEnabled
public AsyncResult<ByteStreamSession> initiateStream(Jid receiver, SIFileTransferOffer profile, java.lang.String mimeType, java.time.Duration timeout)
Initiates a stream with another entity.
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<ByteStreamSession> initiateStream(Jid receiver, SIFileTransferOffer profile, java.lang.String mimeType, java.time.Duration timeout, java.lang.String sessionId)
Initiates a stream with another entity.
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.sessionId
- The session id.public AsyncResult<FileTransfer> accept(IQ iq, java.lang.String sessionId, FileTransferOffer fileTransferOffer, java.lang.Object protocol, java.io.OutputStream outputStream)
accept
in interface FileTransferNegotiator
public void reject(IQ iq)
reject
in interface FileTransferNegotiator
Copyright © 2014–2019 XMPP.rocks. All rights reserved.