Smack

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

Constructor Summary
protected InBandBytestreamRequest(InBandBytestreamManager manager, Open byteStreamRequest)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InBandBytestreamRequest

protected InBandBytestreamRequest(InBandBytestreamManager manager,
                                  Open byteStreamRequest)
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

Smack

Copyright © 2003-2007 Jive Software.