Package net.solosky.maplefetion.util

Examples of net.solosky.maplefetion.util.NodeBuilder


     */
    public SipcRequest createSetPersonalInfoRequest()
    {
      SipcRequest req = this.createDefaultSipcRequest(SipcMethod.SERVICE);
     
      NodeBuilder builder = new NodeBuilder();
      //因为用户可以改变自己的信息,这里权限改变了所以不使用BeanHelper来处理
      builder.add("nickname", StringHelper.qouteHtmlSpecialChars(user.getNickName()));
      builder.add("impresa",  StringHelper.qouteHtmlSpecialChars(user.getImpresa()));
      //用户扩展信息。.TODO ..
        //BeanHelper.toUpdateXML(BuddyExtend.class, this.client.getFetionUser(), builder);
     
      String body = MessageTemplate.TMPL_SET_PERSONAL_INFO;
      body = body.replace("{personal}", builder.toXML("personal"));
     
      req.addHeader(SipcHeader.EVENT,"SetUserInfoV4");
     
      req.setBody(new SipcBody(body));
      return req;
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.util.NodeBuilder

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.