@Override public void newStreamInitiation(Jid from, String streamID) { /* * this method is always called prior to #negotiateIncomingStream() so * the In-Band Bytestream initiation listener must ignore the next * In-Band Bytestream request with the given session ID */ this.manager.ignoreBytestreamRequestOnce(streamID); }
@Override public InputStream createIncomingStream(StreamInitiation initiation) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { /* * In-Band Bytestream initiation listener must ignore next in-band bytestream request with * given session ID */ this.manager.ignoreBytestreamRequestOnce(initiation.getSessionID()); Stanza streamInitiation = initiateIncomingStream(connection(), initiation); return negotiateIncomingStream(streamInitiation); }
byteStreamManager.ignoreBytestreamRequestOnce(sessionID);
public InputStream createIncomingStream(StreamInitiation initiation) throws XMPPException { /* * In-Band Bytestream initiation listener must ignore next in-band * bytestream request with given session ID */ this.manager.ignoreBytestreamRequestOnce(initiation.getSessionID()); Packet streamInitiation = initiateIncomingStream(this.connection, initiation); return negotiateIncomingStream(streamInitiation); }
public InputStream createIncomingStream(StreamInitiation initiation) throws XMPPException { /* * In-Band Bytestream initiation listener must ignore next in-band * bytestream request with given session ID */ this.manager.ignoreBytestreamRequestOnce(initiation.getSessionID()); Packet streamInitiation = initiateIncomingStream(this.connection, initiation); return negotiateIncomingStream(streamInitiation); }
public InputStream createIncomingStream(StreamInitiation initiation) throws XMPPException { /* * In-Band Bytestream initiation listener must ignore next in-band * bytestream request with given session ID */ this.manager.ignoreBytestreamRequestOnce(initiation.getSessionID()); Packet streamInitiation = initiateIncomingStream(this.connection, initiation); return negotiateIncomingStream(streamInitiation); }
public PacketFilter getInitiationPacketFilter(String from, String streamID) { /* * this method is always called prior to #negotiateIncomingStream() so * the In-Band Bytestream initiation listener must ignore the next * In-Band Bytestream request with the given session ID */ this.manager.ignoreBytestreamRequestOnce(streamID); return new AndFilter(new FromContainsFilter(from), new IBBOpenSidFilter(streamID)); }
public PacketFilter getInitiationPacketFilter(String from, String streamID) { /* * this method is always called prior to #negotiateIncomingStream() so * the In-Band Bytestream initiation listener must ignore the next * In-Band Bytestream request with the given session ID */ this.manager.ignoreBytestreamRequestOnce(streamID); return new AndFilter(new FromContainsFilter(from), new IBBOpenSidFilter(streamID)); }
public PacketFilter getInitiationPacketFilter(String from, String streamID) { /* * this method is always called prior to #negotiateIncomingStream() so * the In-Band Bytestream initiation listener must ignore the next * In-Band Bytestream request with the given session ID */ this.manager.ignoreBytestreamRequestOnce(streamID); return new AndFilter(new FromContainsFilter(from), new IBBOpenSidFilter(streamID)); }