⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msgbindrcrsp.java

📁 同步接收web services请求
💻 JAVA
字号:
/**
 * 
 */
package com.aceway.vas.sjcraw.cbgp201;

import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;

import com.aceway.vas.sjcraw.cbgp201.common.MsgInfo;


/**
 * @标题: 华为彩铃平台接口规范
 * @说明: 
 * @版权: Copyright(c) 2007 
 * @公司: 北京汉铭信通科技有限公司 
 * @部门: 增值业务部 
 * @作者: 武达
 * @Jun 5, 2007
 */
public class MsgBindRcRsp extends Msg{

/*
RandomLength	4	Integer	认证所采用的随机数大小
Random	Max(9000)	String	认证所采用的随机数。为二进制数,所有字符均有效,包括空格。
*/
	
	private int randomLength;
	private String random;
	
	private static int operCode = MsgInfo.CRBT_BING_RC_RSP;
	

	public MsgBindRcRsp(byte[] bytes){
		super(bytes);
		byte[] temp = new byte[super.getBodyBuffer().capacity()-4];
		this.randomLength = super.getBodyBuffer().getInt();
		super.getBodyBuffer().get(temp, 0, temp.length);
		this.random = new String(temp);
		super.getBodyBuffer().flip();
	}


	public String getRandom() {
    	return this.random;
    }


	public int getRandomLength() {
    	return this.randomLength;
    }
	
	

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -