Package com.sissi.protocol.iq.bytestreams

Examples of com.sissi.protocol.iq.bytestreams.Bytestreams


   *
   * @see com.sissi.pipeline.Input#input(com.sissi.context.JIDContext, com.sissi.protocol.Protocol)
   */
  public boolean input(JIDContext context, Protocol protocol) {
    String host = protocol.cast(Si.class).setId(protocol.parent().getId()).host(super.build(protocol.parent().getTo()).asString(this.resource), context.jid().asString(this.resource));
    context.write(new IQ().add(new Bytestreams().setSid(this.persistent.peek(MongoUtils.asMap(BasicDBObjectBuilder.start(Dictionary.FIELD_SID, protocol.parent().getId()).get()), MongoUtils.asMap(BasicDBObjectBuilder.start("$addToSet", BasicDBObjectBuilder.start(Dictionary.FIELD_HOST, host).get()).get())).get(Dictionary.FIELD_SID).toString()).add(this.streamhost, true)).setFrom(this.delegation).setId(host).setType(ProtocolType.SET));
    return true;
  }
View Full Code Here


    this.tracerContext = tracerContext;
  }

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    Bytestreams bytestreams = protocol.cast(Bytestreams.class);
    return bytestreams.sid() ? this.trace(context, bytestreams) : true;
  }
View Full Code Here

TOP

Related Classes of com.sissi.protocol.iq.bytestreams.Bytestreams

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.