public interface BytestreamRequest
There are two implementations of the interface. See Socks5BytestreamRequest
and
InBandBytestreamRequest
.
Modifier and Type | Method and Description |
---|---|
BytestreamSession |
accept()
Accepts the bytestream open request and returns the session to send/receive data.
|
org.jxmpp.jid.Jid |
getFrom()
Returns the sender of the bytestream open request.
|
String |
getSessionID()
Returns the session ID of the bytestream open request.
|
void |
reject()
Rejects the bytestream request by sending a reject error to the initiator.
|
org.jxmpp.jid.Jid getFrom()
String getSessionID()
BytestreamSession accept() throws InterruptedException, XMPPException.XMPPErrorException, SmackException
XMPPException.XMPPErrorException
- if an error occurred while accepting the bytestream requestInterruptedException
- if the thread was interrupted while waiting in a blocking
operationSmackException.NoResponseException
SmackException
void reject() throws SmackException.NotConnectedException, InterruptedException