org.jivesoftware.smackx.bytestreams.ibb
Class InBandBytestreamRequest

java.lang.Object
  extended by org.jivesoftware.smackx.bytestreams.ibb.InBandBytestreamRequest
All Implemented Interfaces:
BytestreamRequest

public class InBandBytestreamRequest
extends java.lang.Object
implements BytestreamRequest

InBandBytestreamRequest class handles incoming In-Band Bytestream requests.

Author:
Henning Staib

Method Summary
 InBandBytestreamSession accept()
          Accepts the In-Band Bytestream open request and returns the session to send/receive data.
 java.lang.String getFrom()
          Returns the sender of the In-Band Bytestream open request.
 java.lang.String getSessionID()
          Returns the session ID of the In-Band Bytestream open request.
 void reject()
          Rejects the In-Band Bytestream request by sending a reject error to the initiator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFrom

public java.lang.String getFrom()
Returns the sender of the In-Band Bytestream open request.

Specified by:
getFrom in interface BytestreamRequest
Returns:
the sender of the In-Band Bytestream open request

getSessionID

public java.lang.String getSessionID()
Returns the session ID of the In-Band Bytestream open request.

Specified by:
getSessionID in interface BytestreamRequest
Returns:
the session ID of the In-Band Bytestream open request

accept

public InBandBytestreamSession accept()
                               throws XMPPException
Accepts the In-Band Bytestream open request and returns the session to send/receive data.

Specified by:
accept in interface BytestreamRequest
Returns:
the session to send/receive data
Throws:
XMPPException - if stream is invalid.

reject

public void reject()
Rejects the In-Band Bytestream request by sending a reject error to the initiator.

Specified by:
reject in interface BytestreamRequest