📄 xsmse_cancel.java
字号:
// Decompiled by DJ v2.9.9.61 Copyright 2000 Atanas Neshkov Date: 2003-1-3 17:35:34
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: xsmse_cancel.java
package cncgw.xsms;
// Referenced classes of package cncgw.xsms:
// OutOfBoundsException
public final class xsmse_cancel
{
public xsmse_cancel()
{
}
public void set_media_type(String s)
throws OutOfBoundsException
{
if(s.length() > 50)
{
OutOfBoundsException e = new OutOfBoundsException();
throw e;
}else{
media_type = s;
}
}
public void set_service_type(String s)
throws OutOfBoundsException
{
if(s.length() > 6)
{
OutOfBoundsException e = new OutOfBoundsException();
throw e;
}else{
service_type = s;
}
}
public void set_message_id(String s)
throws OutOfBoundsException
{
if(s.length() > 18)
{
OutOfBoundsException e = new OutOfBoundsException();
throw e;
}else{
message_id = s;
}
}
public void set_source_address(String s)
throws OutOfBoundsException
{
if(s.length() > 21)
{
OutOfBoundsException e = new OutOfBoundsException();
throw e;
}else{
source_address = s;
}
}
public void set_destination_address(String s)
throws OutOfBoundsException
{
if(s.length() > 21)
{
OutOfBoundsException e = new OutOfBoundsException();
throw e;
}else{
destination_address = s;
}
}
public String getCancalBodyXML()
{
StringBuffer sb = new StringBuffer();
sb.append("<message_body>");
sb.append("<media_type>"+media_type+"</media_type>");
sb.append("<service_type>"+service_type+"</service_type>");
sb.append("<message_id>"+message_id+"</message_id>");
sb.append("<source_address_ton>"+source_address_ton+"</source_address_ton>");
sb.append("<source_address_npi>"+source_address_npi+"</source_address_npi>");
sb.append("<source_address>"+source_address+"</source_address>");
sb.append("<dest_address_ton>"+dest_address_ton+"</dest_address_ton>");
sb.append("<dest_address_npi>"+dest_address_npi+"</dest_address_npi>");
sb.append("<destination_address>"+destination_address+"</destination_address>");
sb.append("</message_body>");
sb.append("</xsmp>");
return sb.toString();
}
protected String media_type = "";
protected String service_type = "";
protected String message_id = "";
protected byte source_address_ton = 0;
protected byte source_address_npi = 0;
protected String source_address = "";
protected byte dest_address_ton = 0;
protected byte dest_address_npi = 0;
protected String destination_address = "";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -