金蝶BOS通讯平台JAVA API指南
1.主要的接口类以及说明 1
1.1 com.kingdee.bos.message.client.BizInterface 1
boolean connect(String host,int port,String loginAccount,String loginPassword) 1
void disConnect() 2
boolean isConnect() 2
boolean sendMessage(KDMessage msg) 2
void addMsgListener(KDMsgListener listener); 2
void addConnectMonitor(ConnectMonitor monitor) 2
1.2 com.kingdee.bos.message.client.BizInterfaceFactory 2
BizInterface getInstance() 2
1.3 com.kingdee.bos.message.client.KDMsgListener 2
void onMessage(KDMessage msg) 3
void onError(KDMsgError error) 3
1.4 com.kingdee.bos.message.client.ConnectMonitor 3
void onConnect(BizInterface biz) 3
void onConnect(BizInterface biz) 3
1.5 com.kingdee.bos.message.common.KDMessage 3
String getTitle() 3
String getContent() 3
1.6 com.kingdee.bos.message.common.KDMsgCreater 3
KDMsgCreater create() 4
KDMessage createMsgForSMS (String numberList,String title); 4
KDMessage createMsgForSMS String numberList,String title,String funcNo) 4
KDMesage createMsgForMail(String mailList,String title,String content) 4
KDMesage createMsgForMail(String mailList,String title,String content,String[] filePaths) 4
KDMesage createMsgForBiz(String title,String content,String bizname); 5
调用示例代码 DEMO 5
1