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.
|
java.lang.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()
java.lang.String getSessionID()
BytestreamSession accept() throws java.lang.InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, Socks5Exception.CouldNotConnectToAnyProvidedSocks5Host, org.jivesoftware.smack.SmackException.NotConnectedException, Socks5Exception.NoSocks5StreamHostsProvided
org.jivesoftware.smack.XMPPException.XMPPErrorException - if an error occurred while accepting the bytestream requestjava.lang.InterruptedException - if the thread was interrupted while waiting in a blocking
operationorg.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.Socks5Exception.CouldNotConnectToAnyProvidedSocks5Host - if no connection to any provided stream host could be establishedSocks5Exception.NoSocks5StreamHostsProvided - if no stream host was provided.void reject()
throws org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.