/** * Establishes an In-Band Bytestream with the given user and returns the session to send/receive * data to/from the user. * <p> * Use this method to establish In-Band Bytestreams to users accepting all incoming In-Band * Bytestream requests since this method doesn't provide a way to tell the user something about * the data to be sent. * <p> * To establish an In-Band Bytestream after negotiation the kind of data to be sent (e.g. file * transfer) use {@link #establishSession(Jid, String)}. * * @param targetJID the JID of the user an In-Band Bytestream should be established * @return the session to send/receive data to/from the user * @throws XMPPException if the user doesn't support or accept in-band bytestreams, or if the * user prefers smaller block sizes * @throws SmackException if there was no response from the server. * @throws InterruptedException */ @Override public InBandBytestreamSession establishSession(Jid targetJID) throws XMPPException, SmackException, InterruptedException { String sessionID = getNextSessionID(); return establishSession(targetJID, sessionID); }
/** * Establishes an In-Band Bytestream with the given user and returns the session to send/receive * data to/from the user. * <p> * Use this method to establish In-Band Bytestreams to users accepting all incoming In-Band * Bytestream requests since this method doesn't provide a way to tell the user something about * the data to be sent. * <p> * To establish an In-Band Bytestream after negotiation the kind of data to be sent (e.g. file * transfer) use {@link #establishSession(String, String)}. * * @param targetJID the JID of the user an In-Band Bytestream should be established * @return the session to send/receive data to/from the user * @throws XMPPException if the user doesn't support or accept in-band bytestreams, or if the * user prefers smaller block sizes */ public InBandBytestreamSession establishSession(String targetJID) throws XMPPException { String sessionID = getNextSessionID(); return establishSession(targetJID, sessionID); }
/** * Establishes an In-Band Bytestream with the given user and returns the session to send/receive * data to/from the user. * <p> * Use this method to establish In-Band Bytestreams to users accepting all incoming In-Band * Bytestream requests since this method doesn't provide a way to tell the user something about * the data to be sent. * <p> * To establish an In-Band Bytestream after negotiation the kind of data to be sent (e.g. file * transfer) use {@link #establishSession(String, String)}. * * @param targetJID the JID of the user an In-Band Bytestream should be established * @return the session to send/receive data to/from the user * @throws XMPPException if the user doesn't support or accept in-band bytestreams, or if the * user prefers smaller block sizes */ public InBandBytestreamSession establishSession(String targetJID) throws XMPPException { String sessionID = getNextSessionID(); return establishSession(targetJID, sessionID); }
/** * Establishes an In-Band Bytestream with the given user and returns the session to send/receive * data to/from the user. * <p> * Use this method to establish In-Band Bytestreams to users accepting all incoming In-Band * Bytestream requests since this method doesn't provide a way to tell the user something about * the data to be sent. * <p> * To establish an In-Band Bytestream after negotiation the kind of data to be sent (e.g. file * transfer) use {@link #establishSession(String, String)}. * * @param targetJID the JID of the user an In-Band Bytestream should be established * @return the session to send/receive data to/from the user * @throws XMPPException if the user doesn't support or accept in-band bytestreams, or if the * user prefers smaller block sizes */ public InBandBytestreamSession establishSession(String targetJID) throws XMPPException { String sessionID = getNextSessionID(); return establishSession(targetJID, sessionID); }