📄 receiptreport.java
字号:
package cn.com.ffcs.lbp;
import java.net.MalformedURLException;
import java.net.URL;
import org.apache.axis.types.URI;
import cn.com.chinatelecom.www.schema.ctcc.sms.v2_1.DeliveryInformation;
import cn.com.chinatelecom.www.schema.ctcc.sms.v2_1.DeliveryStatus;
import cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageBindingImpl;
import ffcs.logging.Log;
import ffcs.logging.LogFactory;
public class ReceiptReport {
private Log log = LogFactory.getLog(ReceiptReport.class);
public static int type_sms=1;
public static int type_mms=2;
public static int type_wap=3;
private String correlator;
private URI DA;
private int report_type =0; //1:sms 2:mms 3:wap
private URL callbackURL;
/*
* 构造函数
*/
public ReceiptReport(int type,String msgId,URI address,URI back_url){
report_type=type;
correlator=msgId;
DA=address;
String tmp_url=back_url.toString();
try{
callbackURL=new URL(tmp_url);
}catch (MalformedURLException ex){
log.error("构造ReceiptReport时异常"+ex);
}
}
/**
* @return correlator
*/
public String getCorrelator() {
return correlator;
}
/**
* @param correlator 要设置的 correlator
*/
public void setCorrelator(String correlator) {
this.correlator = correlator;
}
public String toString() {
StringBuffer sb=new StringBuffer("ReceiptReport:");
sb.append(super.toString());
sb.append("correlator");
sb.append("=");
sb.append(correlator);
sb.append(" ");
sb.append("DA");
sb.append("=");
sb.append(DA.toString());
sb.append(" ");
return sb.toString();
}
/**
* @param args
*/
public static void main(String[] args) {
}
/**
* @return callbackURL
*/
public URL getCallbackURL() {
return callbackURL;
}
/**
* @param callbackURL 要设置的 callbackURL
*/
public void setCallbackURL(URL callbackURL) {
this.callbackURL = callbackURL;
}
/**
* @return report_type
*/
public int getReport_type() {
return report_type;
}
/**
* @param report_type 要设置的 report_type
*/
public void setReport_type(int report_type) {
this.report_type = report_type;
}
/**
* @return the dA
*/
public URI getDA() {
return DA;
}
/**
* @param da the dA to set
*/
public void setDA(URI da) {
DA = da;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -