Package com.sissi.protocol

Examples of com.sissi.protocol.Protocol


    this.next = next;
  }

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    Protocol response = this.prepare(protocol.parent().reply().setType(this.type));
    context.write(this.clear ? response.clear() : response);
    return this.next;
  }
View Full Code Here


  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    XUser user = this.extracter.extract(protocol.cast(Owner.class).getX(), new XUser()).cast(XUser.class);
    if (user.contain()) {
      JID group = super.build(protocol.parent().getTo());
      Protocol message = new Message().noneThread().muc(user).setType(MessageType.GROUPCHAT).setFrom(group);
      for (JID jid : super.whoSubscribedMe(group)) {
        super.findOne(jid, true).write(message);
      }
    }
    return true;
View Full Code Here

   * 获取或堵塞
   *
   * @throws Exception
   */
  protected void getAndFeed() throws Exception {
    Protocol protocol = Protocol.class.cast(this.future.get(this.interval.getInterval(), this.interval.getUnit()));
    if (protocol != null) {
      this.feeder.feed(protocol);
    }
  }
View Full Code Here

TOP

Related Classes of com.sissi.protocol.Protocol

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.