Examples of jid()


Examples of com.sissi.context.JIDContext.jid()

    }

    private ByteBuf logIfNecessary(ChannelHandlerContext ctx, ByteBuf byteBuf) {
      if (MainServerHandlerBuilder.this.log.isInfoEnabled()) {
        JIDContext context = ctx.attr(MainServerHandlerBuilder.this.attrContext).get();
        MainServerHandlerBuilder.this.log.info("Read on " + (context != null && context.jid() != null ? context.jid().asString() : "N/A") + ": " + byteBuf.toString(Charset.forName("UTF-8")));
        byteBuf.readerIndex(0);
      }
      return byteBuf;
    }
  }
View Full Code Here

Examples of com.sissi.context.JIDContext.jid()

    }

    private ByteBuf logIfNecessary(ChannelHandlerContext ctx, ByteBuf byteBuf) {
      if (MainServerHandlerBuilder.this.log.isInfoEnabled()) {
        JIDContext context = ctx.attr(MainServerHandlerBuilder.this.attrContext).get();
        MainServerHandlerBuilder.this.log.info("Read on " + (context != null && context.jid() != null ? context.jid().asString() : "N/A") + ": " + byteBuf.toString(Charset.forName("UTF-8")));
        byteBuf.readerIndex(0);
      }
      return byteBuf;
    }
  }
View Full Code Here

Examples of com.sissi.ucenter.relation.muc.MucRelation.jid()

    JID group = super.build(protocol.getTo());
    Room room = this.room.build(group);
    Presence presence = new Presence();
    for (Relation each : super.myRelations(group)) {
      MucRelation relation = each.cast(MucRelation.class);
      JID to = super.build(relation.jid());
      context.write(presence.clear().clauses(super.findOne(to, true).status().clauses()).add(this.judeger.add(new XUser(group, context.jid(), room.allowed(context.jid(), RoomConfig.WHOISEXISTS)).item(new Item(room.allowed(context.jid(), RoomConfig.WHOISALLOW, to), relation))).cast(XUser.class)).setFrom(group.resource(relation.name())));
    }
    return true;
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.