Package net.solosky.maplefetion.sipc

Examples of net.solosky.maplefetion.sipc.SipcRequest.addHeader()


     * 注销登录请求
     */
    public SipcRequest createLogoutRequest()
    {
      SipcRequest req = this.createDefaultSipcRequest(SipcMethod.REGISTER);
      req.addHeader(SipcHeader.EXPIRED, "0");
      return req;
    }
   
   
    /**
 
View Full Code Here


     
      String body = MessageTemplate.TMPL_GET_CONTACT_INFO;
      body = body.replace("{args}", " uri=\""+uri+"\" version=\"0\" ");
      req.setBody(new SipcBody(body));
     
      req.addHeader(SipcHeader.EVENT, "GetContactInfoV4");
     
      return req;
    }
   
    /**
 
View Full Code Here

     * 订阅异步通知
     */
    public SipcRequest createSubscribeRequest()
    {
      SipcRequest req = this.createDefaultSipcRequest(SipcMethod.SUBSCRIBE);
      req.addHeader(SipcHeader.EVENT, "PresenceV4");
      req.setBody(new SipcBody(MessageTemplate.TMPL_SUBSCRIBE));
     
      return req;
    }
   
View Full Code Here

     * 开始聊天请求
     */
    public SipcRequest createStartChatRequest()
    {
      SipcRequest req = this.createDefaultSipcRequest(SipcMethod.SERVICE);
      req.addHeader(SipcHeader.EVENT,"StartChat");
      return req;
    }
   
    /**
     * 注册聊天服务器
 
View Full Code Here

     * 注册聊天服务器
     */
    public SipcRequest createRegisterChatRequest(String ticket)
    {
      SipcRequest req = this.createDefaultSipcRequest(SipcMethod.REGISTER);
      req.addHeader(SipcHeader.AUTHORIZATION,"TICKS auth=\""+ticket+"\"");
      req.addHeader(SipcHeader.SUPPORTED,"text/html-fragment");
      req.addHeader(SipcHeader.SUPPORTED,"multiparty");
      req.addHeader(SipcHeader.SUPPORTED,"nudge");
      req.addHeader(SipcHeader.SUPPORTED,"share-background");
      req.addHeader(SipcHeader.SUPPORTED,"fetion-show");
View Full Code Here

     */
    public SipcRequest createRegisterChatRequest(String ticket)
    {
      SipcRequest req = this.createDefaultSipcRequest(SipcMethod.REGISTER);
      req.addHeader(SipcHeader.AUTHORIZATION,"TICKS auth=\""+ticket+"\"");
      req.addHeader(SipcHeader.SUPPORTED,"text/html-fragment");
      req.addHeader(SipcHeader.SUPPORTED,"multiparty");
      req.addHeader(SipcHeader.SUPPORTED,"nudge");
      req.addHeader(SipcHeader.SUPPORTED,"share-background");
      req.addHeader(SipcHeader.SUPPORTED,"fetion-show");
     
View Full Code Here

    public SipcRequest createRegisterChatRequest(String ticket)
    {
      SipcRequest req = this.createDefaultSipcRequest(SipcMethod.REGISTER);
      req.addHeader(SipcHeader.AUTHORIZATION,"TICKS auth=\""+ticket+"\"");
      req.addHeader(SipcHeader.SUPPORTED,"text/html-fragment");
      req.addHeader(SipcHeader.SUPPORTED,"multiparty");
      req.addHeader(SipcHeader.SUPPORTED,"nudge");
      req.addHeader(SipcHeader.SUPPORTED,"share-background");
      req.addHeader(SipcHeader.SUPPORTED,"fetion-show");
     
      return req;
View Full Code Here

    {
      SipcRequest req = this.createDefaultSipcRequest(SipcMethod.REGISTER);
      req.addHeader(SipcHeader.AUTHORIZATION,"TICKS auth=\""+ticket+"\"");
      req.addHeader(SipcHeader.SUPPORTED,"text/html-fragment");
      req.addHeader(SipcHeader.SUPPORTED,"multiparty");
      req.addHeader(SipcHeader.SUPPORTED,"nudge");
      req.addHeader(SipcHeader.SUPPORTED,"share-background");
      req.addHeader(SipcHeader.SUPPORTED,"fetion-show");
     
      return req;
    }
View Full Code Here

      SipcRequest req = this.createDefaultSipcRequest(SipcMethod.REGISTER);
      req.addHeader(SipcHeader.AUTHORIZATION,"TICKS auth=\""+ticket+"\"");
      req.addHeader(SipcHeader.SUPPORTED,"text/html-fragment");
      req.addHeader(SipcHeader.SUPPORTED,"multiparty");
      req.addHeader(SipcHeader.SUPPORTED,"nudge");
      req.addHeader(SipcHeader.SUPPORTED,"share-background");
      req.addHeader(SipcHeader.SUPPORTED,"fetion-show");
     
      return req;
    }
   
View Full Code Here

      req.addHeader(SipcHeader.AUTHORIZATION,"TICKS auth=\""+ticket+"\"");
      req.addHeader(SipcHeader.SUPPORTED,"text/html-fragment");
      req.addHeader(SipcHeader.SUPPORTED,"multiparty");
      req.addHeader(SipcHeader.SUPPORTED,"nudge");
      req.addHeader(SipcHeader.SUPPORTED,"share-background");
      req.addHeader(SipcHeader.SUPPORTED,"fetion-show");
     
      return req;
    }
   
    /**
 
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.