Package com.sissi.context

Examples of com.sissi.context.JID.user()


  }

  private Roster prepare(JIDContext context, Roster roster) {
    for (Relation each : super.myRelations(context.jid())) {
      JID to = super.build(each.jid());
      roster.add(new GroupItem(each.cast(RosterRelation.class)).nickname(this.vcardContext.pull(to, VCardContext.FIELD_NICK).getValue(), to.user()));
    }
    return roster;
  }
}
View Full Code Here


  }

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    JID group = super.build(protocol.parent().getTo());
    protocol.cast(DiscoInfo.class).data(this.vcardContext.pull(group, new XData().setType(XDataType.RESULT).add(this.form))).add(this.identity.clone().setName(group.user())).add(this.feature);
    context.write(protocol.parent().setType(ProtocolType.RESULT).reply());
    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.