// FrontEnd Plus for JAD
// DeCompiled : smppEncoder.class
package sms;
import utils.*;
// Referenced classes of package sms:
// Message, Customer, smDL, param,
// messageId, smppHeader, Address, listDLResponse,
// queryAllResponse, Binding, DLName, modDL,
// viewDLresponse, AddressError, queryAll, Member
class smppEncoder extends encoder
{
public void cancel(Message message)
throws encoderException
{
String s = null;
try
{
if(message == null)
throw new encoderException("missing.cancel.");
s = "service.";
if(message.service != null)
asciiz(message.service, 6);
else
int8(0);
s = "id.";
if(message.id != null)
asciiz(message.id, 9);
else
int8(0);
s = "from.";
Address(message.from);
s = "to.";
Address(message.to);
return;
}
catch(encoderException encoderexception)
{
if(s != null)
throw new encoderException(encoderexception + s);
else
throw encoderexception;
}
}
public void modifyCustomer(Customer customer)
throws encoderException
{
String s = null;
try
{
if(customer == null)
throw new encoderException("missing.modifyCustomer.");
s = "id.";
if(customer.id != null)
asciiz(customer.id, 21);
else
int8(0);
s = "name.";
if(customer.name != null)
asciiz(customer.name, 21);
else
int8(0);
s = "streetAddress.";
if(customer.streetAddress != null)
asciiz(customer.streetAddress, 31);
else
int8(0);
s = "smsAddress.";
Address(customer.smsAddress);
s = "serviceLevel.";
int32(customer.serviceLevel);
s = "smsAllowed.";
int8(!customer.smsAllowed ? 0 : 1);
s = "ocos.";
int32(customer.ocos);
s = "tcos.";
int32(customer.tcos);
s = "password.";
if(customer.password != null)
{
asciiz(customer.password, 9);
return;
} else
{
int8(0);
return;
}
}
catch(encoderException encoderexception)
{
if(s != null)
throw new encoderException(encoderexception + s);
else
throw encoderexception;
}
}
public void submitResponse(Message message)
throws encoderException
{
String s = null;
try
{
if(message == null)
throw new encoderException("missing.submitResponse.");
s = "id.";
if(message.id != null)
{
asciiz(message.id, 9);
return;
} else
{
int8(0);
return;
}
}
catch(encoderException encoderexception)
{
if(s != null)
throw new encoderException(encoderexception + s);
else
throw encoderexception;
}
}
public void addDL(smDL smdl)
throws encoderException
{
String s = null;
try
{
if(smdl == null)
throw new encoderException("missing.addDL.");
s = "source.";
Address(smdl.source);
s = "name.";
if(smdl.name != null)
{
asciiz(smdl.name, 21);
return;
} else
{
int8(0);
return;
}
}
catch(encoderException encoderexception)
{
if(s != null)
throw new encoderException(encoderexception + s);
else
throw encoderexception;
}
}
public void paramGet(param param1)
throws encoderException
{
String s = null;
try
{
if(param1 == null)
throw new encoderException("missing.paramGet.");
s = "name.";
if(param1.name != null)
{
asciiz(param1.name, 32);
return;
} else
{
int8(0);
return;
}
}
catch(encoderException encoderexception)
{
if(s != null)
throw new encoderException(encoderexception + s);
else
throw encoderexception;
}
}
public void messageId(messageId messageid)
throws encoderException
{
String s = null;
try
{
if(messageid == null)
throw new encoderException("missing.messageId.");
s = "id.";
if(messageid.id != null)
{
asciiz(messageid.id, 9);
return;
} else
{
int8(0);
return;
}
}
catch(encoderException encoderexception)
{
if(s != null)
throw new encoderException(encoderexception + s);
else
throw encoderexception;
}
}
public void viewDL(smDL smdl)
throws encoderException
{
String s = null;
try
{
if(smdl == null)
throw new encoderException("missing.viewDL.");
s = "source.";
Address(smdl.source);
s = "name.";
if(smdl.name != null)
{
asciiz(smdl.name, 21);
return;
} else
{
int8(0);
return;
}
}
catch(encoderException encoderexception)
{
if(s != null)
throw new encoderException(encoderexception + s);
else
throw encoderexception;
}
}
public void smppHeader(smppHeader smppheader)
throws encoderException
{
String s = null;
try
{
if(smppheader == null)
{
throw new encoderException("missing.smppHeader.");
} else
{
s = "length.";
int32(smppheader.length);
s = "command.";
int32(smppheader.command);
s = "status.";
int32(smppheader.status);
s = "sequence.";
int32(smppheader.sequence);
return;
}
}
catch(encoderException encoderexception)
{
if(s != null)
throw new encoderException(encoderexception + s);
else
throw encoderexception;
}
}
public void Address(Address address)
throws encoderException
{
String s = null;
try
{
if(address == null)
throw new encoderException("missing.Address.");
s = "ton.";
int8(address.ton);
s = "npi.";
int8(address.npi);
s = "msisdn.";
if(address.msisdn != null)
{
asciiz(address.msisdn, 21);
没有合适的资源?快使用搜索试试~ 我知道了~
基于java的开发源码-smpp协议的点对点短信发送源码包.zip
共70个文件
java:70个
2 下载量 52 浏览量
2024-01-08
22:50:54
上传
评论
收藏 79KB ZIP 举报
温馨提示
基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip 基于java的开发源码-smpp协议的点对点短信发送源码包.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于java的开发源码-smpp协议的点对点短信发送源码包.zip (70个子文件)
codefans.net
点对点短消息发送协议(smpp)开发包源码
bureau
DialogLayout.java 4KB
menu.java 3KB
socksDialog.java 3KB
mbox.java 1KB
trans.java 1KB
messageDialog.java 3KB
app.java 3KB
about.java 3KB
smb.java 8KB
configureDialog.java 3KB
utils
encoder.java 3KB
socks.java 5KB
proxyWriter.java 2KB
proxy.java 3KB
encoderException.java 317B
semaphore.java 851B
decoderException.java 316B
decoder.java 4KB
proxyReader.java 5KB
table.java 3KB
coder.java 2KB
fifo.java 2KB
socksException.java 327B
sms
DLName.java 214B
SendResponse.java 263B
Member.java 707B
smDL.java 225B
Message.java 8KB
queryAll.java 236B
smppDecoder.java 34KB
DetailsResponse.java 272B
ParameterResponse.java 218B
AddCustomerResponse.java 279B
Receiver.java 253B
smppDispatcher.java 22KB
smppEncoder.java 35KB
smDLModification.java 658B
Smpp.java 27KB
DelCustomerResponse.java 279B
Errors.java 6KB
messageId.java 153B
AddMemberResponse.java 305B
smppServer.java 15KB
AddDLResponse.java 274B
Binding.java 1KB
listDLResponse.java 256B
GetCustomerResponse.java 279B
AddressError.java 377B
modDL.java 220B
ReplaceResponse.java 272B
DelDLResponse.java 274B
CancelResponse.java 269B
BindResponse.java 263B
StatusResponse.java 269B
SMSException.java 9KB
ListResponse.java 276B
Constants.java 3KB
smppCommands.java 1KB
queryAllResponse.java 264B
smppRequest.java 601B
GetDLResponse.java 277B
param.java 162B
DelMemberResponse.java 305B
ModCustomerResponse.java 279B
smppHeader.java 211B
Customer.java 1KB
Address.java 1KB
GetMemberResponse.java 308B
viewDLresponse.java 260B
smppSyncResponse.java 205B
共 70 条
- 1
资源评论
助力毕业
- 粉丝: 2199
- 资源: 5169
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功