Smack

org.jivesoftware.smackx.bytestreams
Interface BytestreamRequest

All Known Implementing Classes:
InBandBytestreamRequest, Socks5BytestreamRequest

public interface BytestreamRequest

BytestreamRequest provides an interface to handle incoming bytestream requests.

There are two implementations of the interface. See Socks5BytestreamRequest and InBandBytestreamRequest.

Author:
Henning Staib

Method Summary
 BytestreamSession accept()
          Accepts the bytestream open request and returns the session to send/receive data.
 String 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.
 

Method Detail

getFrom

String getFrom()
Returns the sender of the bytestream open request.

Returns:
the sender of the bytestream open request

getSessionID

String getSessionID()
Returns the session ID of the bytestream open request.

Returns:
the session ID of the bytestream open request

accept

BytestreamSession accept()
                         throws XMPPException,
                                InterruptedException
Accepts the bytestream open request and returns the session to send/receive data.

Returns:
the session to send/receive data
Throws:
XMPPException - if an error occurred while accepting the bytestream request
InterruptedException - if the thread was interrupted while waiting in a blocking operation

reject

void reject()
Rejects the bytestream request by sending a reject error to the initiator.


Smack

Copyright © 2003-2007 Jive Software.