邀请QQ好友-QQ联系人导入(上)
2009-09-06 00:00:00 来源:WEB开发网---------------AuthInfo.java----------------------------
Java代码
package qq;
import java.util.HashMap;
import java.util.Map;
public class AuthInfo {
public static final String PP = "pp";
public static final String START_TIME = "starttime";
public static final String TS = "ts";
public static final String UIN = "uin";
public static final String VERIFY_CODE = "verifycode";
public static final String P = "p";
public static final String COOKIE = "cookie";
public static final String DOMAIN = "domain";
private HashMap<String, String> param = new HashMap<String,String>();
public AuthInfo(){
putParam("aliastype", "@qq.com");
putParam("firstlogin", "false");
putParam("redirecturl", "");
putParam("sid", "0,2,zh_CN");
putParam("delegate_url", "");
putParam("from", "");
putParam("f", "");
putParam("s", "");
}
public void putParam(String key, String value){
param.put(key, value);
}
public String getParam(String key){
return param.get(key);
}
@SuppressWarnings("unchecked")
public Map<String, String> getParam() {
return (Map<String, String>) param.clone();
}
}
更多精彩
赞助商链接