Package com.sissi.context

Examples of com.sissi.context.JIDs


  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    JID group = super.build(protocol.getTo());
    // From = MUC JID
    protocol.setFrom(group.clone().resource(super.ourRelation(context.jid(), group).name()));
    JIDs jids = this.mapping.mapping(group);
    return jids.isEmpty() ? this.writeAndReturn(context, protocol) : this.writeAndReturn(protocol, jids);
  }
View Full Code Here


   * @param context
   * @return
   */
  private boolean init4Fans(Presence presence, JIDContext context) {
    for (JID jid : super.iSubscribedWho(context.jid())) {
      JIDs resoures = super.resources(jid);
      if (resoures.isEmpty()) {
        this.writeOffline(context, jid);
      } else {
        this.writeOnlinePresence(context, jid, resoures);
      }
    }
View Full Code Here

   *
   * @see com.sissi.pipeline.Input#input(com.sissi.context.JIDContext, com.sissi.protocol.Protocol)
   */
  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    JIDs exists = this.mapping.mapping(super.build(protocol.getTo()));
    return exists.isEmpty() || (this.multi ? exists.like(context.jid()) : exists.same(context.jid())) ? true : this.writeAndReturn(context, protocol);
  }
View Full Code Here

TOP

Related Classes of com.sissi.context.JIDs

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.