From 1b373bea2d49d1beea337b5b05ca456167ec1bbe Mon Sep 17 00:00:00 2001 From: "@jyuhsin" <729757837@qq.com> Date: Wed, 26 Nov 2025 11:29:44 +0800 Subject: [PATCH] commit --- .../com/budwk/app/base/sms/SmsService.java | 12 +- .../base/sms/impl/hgu/SmsHguServiceImpl.java | 94 ++ .../app/base/sms/impl/hgu/util/SignUtil.java | 321 ++++++ .../sms/impl/njupt/SmsNjuptServiceImpl.java | 85 -- .../impl/njupt/ucp/serv/MessageSender.java | 31 - .../impl/njupt/ucp/serv/client/Address.java | 112 --- .../njupt/ucp/serv/client/Attachment.java | 133 --- .../impl/njupt/ucp/serv/client/Channel.java | 208 ---- .../ucp/serv/client/ChannelDeliverState.java | 265 ----- .../ucp/serv/client/ChannelMessageDetail.java | 323 ------ .../ChannelMessageDetailProperties.java | 107 -- .../ChannelMessageDetailPropertiesEntry.java | 112 --- .../impl/njupt/ucp/serv/client/Message.java | 280 ------ .../ucp/serv/client/MessageException.java | 104 -- .../ucp/serv/client/MessageProperties.java | 112 --- .../serv/client/MessagePropertiesEntry.java | 117 --- .../impl/njupt/ucp/serv/client/Recipient.java | 113 --- .../njupt/ucp/serv/client/SendResult.java | 171 ---- .../client/UcpWebServPortBindingStub.java | 940 ------------------ .../ucp/serv/client/UcpWebServ_PortType.java | 36 - .../ucp/serv/client/UcpWebServ_Service.java | 18 - .../client/UcpWebServ_ServiceLocator.java | 127 --- .../njupt/ucp/serv/client/WrongAddress.java | 208 ---- .../sms/impl/njupt/ucp/ws/MessageService.java | 38 - .../impl/njupt/ucp/ws/SmsMessageSender.java | 46 - .../impl/njupt/ucp/ws/SmsMessageSender1.java | 48 - .../ws/client/SmsServicePortBindingStub.java | 350 ------- .../ucp/ws/client/SmsService_PortType.java | 22 - .../ucp/ws/client/SmsService_Service.java | 18 - .../ws/client/SmsService_ServiceLocator.java | 127 --- .../njupt/ucp/ws/client/msg/UcpMessage.java | 217 ---- .../msg/UcpMessageServicePortBindingStub.java | 236 ----- .../msg/UcpMessageService_PortType.java | 15 - .../client/msg/UcpMessageService_Service.java | 18 - .../msg/UcpMessageService_ServiceLocator.java | 127 --- .../one/SmsService1PortBindingStub.java | 362 ------- .../ws/client/one/SmsService1_PortType.java | 22 - .../ws/client/one/SmsService1_Service.java | 18 - .../one/SmsService1_ServiceLocator.java | 127 --- .../impl/njupt/ucp/ws/om/DeliverState.java | 156 --- .../njupt/ucp/ws/om/MessageException.java | 104 -- .../impl/njupt/ucp/ws/om/MessageState.java | 214 ---- .../ucp/ws/om/MessageStateProperties.java | 112 --- .../ws/om/MessageStatePropertiesEntry.java | 117 --- .../sms/impl/njupt/ucp/ws/om/SendResult.java | 150 --- .../impl/njupt/ucp/ws/om/WrongAddress.java | 117 --- .../njupt/ucp/ws/util/MessageBuilder.java | 117 --- .../impl/njupt/ucp/ws/util/TokenBuilder.java | 68 -- 48 files changed, 416 insertions(+), 6559 deletions(-) create mode 100644 src/main/java/com/budwk/app/base/sms/impl/hgu/SmsHguServiceImpl.java create mode 100644 src/main/java/com/budwk/app/base/sms/impl/hgu/util/SignUtil.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/SmsNjuptServiceImpl.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/MessageSender.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Address.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Attachment.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Channel.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelDeliverState.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetail.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailProperties.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailPropertiesEntry.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Message.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageException.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageProperties.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessagePropertiesEntry.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Recipient.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/SendResult.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServPortBindingStub.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_PortType.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_Service.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_ServiceLocator.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/WrongAddress.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/MessageService.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender1.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsServicePortBindingStub.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_PortType.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_Service.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_ServiceLocator.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessage.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageServicePortBindingStub.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_PortType.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_Service.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_ServiceLocator.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1PortBindingStub.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_PortType.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_Service.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_ServiceLocator.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/DeliverState.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageException.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageState.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStateProperties.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStatePropertiesEntry.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/SendResult.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/WrongAddress.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/MessageBuilder.java delete mode 100644 src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/TokenBuilder.java diff --git a/src/main/java/com/budwk/app/base/sms/SmsService.java b/src/main/java/com/budwk/app/base/sms/SmsService.java index df7cd4d..df1fbe1 100644 --- a/src/main/java/com/budwk/app/base/sms/SmsService.java +++ b/src/main/java/com/budwk/app/base/sms/SmsService.java @@ -19,21 +19,11 @@ public interface SmsService { */ void send(String loginName, String title, String content); - /** - * 单发 - * @param loginName 工号 - * @param title 标题 - * @param content 内容 - * @param link 链接 - */ - void send(String loginName, String title, String content, String link); - /** * 群发 多人接收内容相同时使用该方法 * @param loginNames 工号 * @param title 标题 * @param content 内容 - * @param link 链接 */ - void massSend(List loginNames, String title, String content, String link); + void massSend(List loginNames, String title, String content); } diff --git a/src/main/java/com/budwk/app/base/sms/impl/hgu/SmsHguServiceImpl.java b/src/main/java/com/budwk/app/base/sms/impl/hgu/SmsHguServiceImpl.java new file mode 100644 index 0000000..73b3575 --- /dev/null +++ b/src/main/java/com/budwk/app/base/sms/impl/hgu/SmsHguServiceImpl.java @@ -0,0 +1,94 @@ +package com.budwk.app.base.sms.impl.hgu; + +import cn.hutool.http.HttpRequest; +import cn.hutool.http.HttpResponse; +import com.budwk.app.base.sms.SmsService; +import com.budwk.app.base.sms.impl.hgu.util.SignUtil; +import lombok.extern.slf4j.Slf4j; +import org.nutz.ioc.loader.annotation.IocBean; +import org.nutz.json.Json; +import org.nutz.lang.random.R; +import org.nutz.lang.util.NutMap; + +import java.util.List; +import java.util.Map; + +/** + * @ClassName SmsHguServiceImpl + * @Author JyuHsin + * @Date 2025/11/26 10:05 + * @Version 1.0 + * @Description TODO + */ +@IocBean +@Slf4j +public class SmsHguServiceImpl implements SmsService { + + private static final String APPID = "zhgh"; + private static final String SECRET = "6ffc5c78-4a02-438b-ada1-a50189767945"; + private static final String URL = "https://opengw.hgu.edu.cn/com.sudytech.msgcenter/ucp/_web/_apps/ucpmsg/api/v3/sendMessage.rst"; + + @Override + public void send(String loginName, String content) { + send(loginName, "智慧工会", content); + } + + @Override + public void send(String loginName, String title, String content) { + Map paramMap = Map.of("address", "(%s)".formatted(loginName), "type", "uc_ux"); + doSend(title, content, List.of(paramMap)); + } + + @Override + public void massSend(List loginNames, String title, String content) { + List> receivers = loginNames.stream() + .map(name -> Map.of("address", "(%s)".formatted(name), "type", "uc_ux")) + .toList(); + doSend(title, content, receivers); + } + + private void doSend(String title, String content, List> receivers) { + // 随机字符串 + String nonce = R.UU32(); + // 时间戳 + long timestamp = System.currentTimeMillis(); + // 生成签名 + String signature = SignUtil.buildSign(SignUtil.ALGORITHM_SHA1, APPID, String.valueOf(timestamp), nonce, "", SECRET); + + // 记录签名验证结果 + boolean isValid = SignUtil.checkSign(SignUtil.ALGORITHM_SHA1, APPID, String.valueOf(timestamp), nonce, "", SECRET, signature, 20); + log.debug("Signature valid: {}", isValid); + + NutMap paramsMap = new NutMap(); + paramsMap.put("title", title); + paramsMap.put("content", content); + paramsMap.put("receivers", receivers); + paramsMap.put("channels", 4); + paramsMap.put("plannedTime", ""); + + log.debug("send params: {}", Json.toJson(paramsMap)); + + HttpRequest request = HttpRequest.post(URL) + .header("sd-appid", APPID) + .header("sd-algorithm", SignUtil.ALGORITHM_SHA1) + .header("sd-timestamp", String.valueOf(timestamp)) + .header("sd-nonce", nonce) + .header("sd-signature", signature) + .body(Json.toJson(paramsMap)); + + try { + HttpResponse response = request.execute(); + NutMap bodyMap = Json.fromJson(NutMap.class, response.body()); + NutMap resultMap = bodyMap.getAs("result", NutMap.class); + NutMap dataMap = resultMap.getAs("data", NutMap.class); + log.info("send response body: {}", response.body()); + if(dataMap.getBoolean("successed")) { + log.info("send success code: {}, successed: {}", dataMap.getInt("code"), dataMap.getBoolean("successed")); + } else { + log.error("send error code: {}, successed: {}", dataMap.getInt("code"), dataMap.getBoolean("successed")); + } + } catch (Exception e) { + log.error("Failed to send: {}", e.getMessage(), e); + } + } +} diff --git a/src/main/java/com/budwk/app/base/sms/impl/hgu/util/SignUtil.java b/src/main/java/com/budwk/app/base/sms/impl/hgu/util/SignUtil.java new file mode 100644 index 0000000..432c09c --- /dev/null +++ b/src/main/java/com/budwk/app/base/sms/impl/hgu/util/SignUtil.java @@ -0,0 +1,321 @@ +package com.budwk.app.base.sms.impl.hgu.util; + +import org.apache.commons.codec.binary.Hex; + +import javax.crypto.Mac; +import javax.crypto.spec.SecretKeySpec; +import javax.servlet.http.HttpServletRequest; +import java.security.MessageDigest; +import java.util.*; + +/** + * @ClassName SignUtil + * @Author JyuHsin + * @Date 2025/11/26 10:06 + * @Version 1.0 + * @Description TODO + */ +public class SignUtil { + + /** + + * 签名算法类型sha1 + + */ + public static final String ALGORITHM_SHA1 = "SHA1"; + /** + + * 签名算法类型sha-256 + + */ + public static final String ALGORITHM_SHA256 = "SHA-256"; + /** + + * 签名算法类型MD5 + + */ + public static final String ALGORITHM_MD5 = "MD5"; + /** + + * 签名算法类型HMAC-SHA256 + + */ + public static final String ALGORITHM_HMACSHA256= "HMAC-SHA256"; + + /** + + * 支持的签名算法 + + */ + private static final List allowedAlgorithms = new ArrayList(); + + public SignUtil() { + } + + /** + + * 生成签名 + + * @param algorithm 签名算法。SHA1,MD5,SHA-256,HMAC-SHA256 + + * @param appId 应用标识,此标识是提前分配给调用系统的 + + * @param timestamp 时间戳。长整数,是UNIX时间的毫秒数,即产生签名时的时间距1970年1月1日零时的毫秒数的十进制字符串。 + + * 此时间戳代表了签名的时效性,如果此时间与当前时间差大于某个值(建议不超过20分钟)时,系统认为此签名已经失效 + + * @param nonce 随机数。用于参与签名运算 + + * @param summary 摘要,业务接口增加字段的hash值。参与签名,进一步签名的参数值如extraText=“loginName=0810035&userId=2”, + + * 需要hash后传输,业务系统在校验sign的基础上进一步校验此值。hex(hash(extraText))后的内容, + + * 其中hash算法根据摘要版本使用对应的算法(如sha1、md5、sha-256等)。 + + * @param secretKey 平台分配给业务系统的私钥 + + * @return + + */ + public static String buildSign(String algorithm, String appId, String timestamp, String nonce, String summary, String secretKey) { + if (!isEmpty(algorithm) && !isEmpty(appId) && !isEmpty(timestamp) && !isEmpty(nonce)) { + if (!allowedAlgorithms.contains(algorithm)) { + throw new RuntimeException("UnSupport algorithm type!"); + } else { + StringBuilder sb = new StringBuilder(); + sb.append("sd-algorithm=").append(algorithm); + sb.append("&sd-appid=").append(appId); + sb.append("&sd-nonce=").append(nonce); + if (!isEmpty(summary)) { + sb.append("&sd-summary=").append(summary); + } + + sb.append("&sd-timestamp=").append(timestamp); + sb.append("&key=").append(secretKey); + String stringSignTemp = sb.toString(); + System.out.println("stringSignTemp:" + stringSignTemp); + + if ("HMAC-SHA256".equals(algorithm)) { + try { + return hmac(secretKey, stringSignTemp, "HmacSHA256"); + } catch (Exception var9) { + System.out.println("hmac error"+ var9); + return null; + } + } else { + try { + return sha(stringSignTemp, algorithm); + } catch (Exception var10) { + System.out.println("sha error"+var10); + return null; + } + } + } + } else { + throw new RuntimeException("Sign parameters not allow null!"); + } + } + + /** + + * 检查签名是否合法 + + * @param algorithm 签名算法。SHA1,MD5,SHA-256,HMAC-SHA256 + + * @param appId 应用标识,此标识是提前分配给调用系统的 + + * @param timestamp 时间戳。长整数,是UNIX时间的毫秒数,即产生签名时的时间距1970年1月1日零时的毫秒数的十进制字符串。 + + * 此时间戳代表了签名的时效性,如果此时间与当前时间差大于某个值(建议不超过20分钟)时,系统认为此签名已经失效 + + * @param nonce 随机数。用于参与签名运算 + + * @param summary 摘要,业务接口增加字段的hash值。参与签名,进一步签名的参数值如extraText=“loginName=0810035&userId=2”, + + * 需要hash后传输,业务系统在校验sign的基础上进一步校验此值。hex(hash(extraText))后的内容, + + * 其中hash算法根据摘要版本使用对应的算法(如sha1、md5、sha-256等)。 + + * @param secretKey 平台分配给业务系统的私钥 + + * @param sign 需要校验的签名 + + * @param signInvalidTime 签名有效期 单位分钟 + + * @return + + */ + public static boolean checkSign(String algorithm, String appId, String timestamp, String nonce, String summary, String secretKey, String sign, long signInvalidTime) { + long now = System.currentTimeMillis(); + long timesta = Long.parseLong(timestamp); + if (now - timesta > signInvalidTime * 60L * 1000L) { + throw new RuntimeException("签名已失效!"); + } else { + String buildSign = buildSign(algorithm, appId, timestamp, nonce, summary, secretKey); + return !isEmpty(buildSign) && !isEmpty(sign) && buildSign.equals(sign); + } + } + + public static boolean checkSign(HttpServletRequest request, String secretKey, long signInvalidTime) { + boolean fromHead = false; + String appId = request.getHeader("sd-appid"); + if (!isEmpty(appId)) { + fromHead = true; + } + + String algorithm = null; + String timestamp = null; + String nonce = null; + String summary = null; + String sign = null; + if (fromHead) { + algorithm = request.getHeader("sd-algorithm"); + timestamp = request.getHeader("sd-timestamp"); + nonce = request.getHeader("sd-nonce"); + summary = request.getHeader("sd-summary"); + sign = request.getHeader("sd-signature"); + } else { + appId = request.getParameter("sd-appid"); + algorithm = request.getParameter("sd-algorithm"); + timestamp = request.getParameter("sd-timestamp"); + nonce = request.getParameter("sd-nonce"); + summary = request.getParameter("sd-summary"); + sign = request.getParameter("sd-signature"); + } + + return checkSign(algorithm, appId, timestamp, nonce, summary, secretKey, sign, signInvalidTime); + } + + public static String buildSummaryText(HttpServletRequest request, String algorithm, String... paramNames) { + List list = new ArrayList(); + String[] var4 = paramNames; + int var5 = paramNames.length; + + for(int var6 = 0; var6 < var5; ++var6) { + String name = var4[var6]; + String[] values = request.getParameterValues(name); + if (values != null && values.length != 0) { + String[] var9 = values; + int var10 = values.length; + + for(int var11 = 0; var11 < var10; ++var11) { + String value = var9[var11]; + list.add(new String[]{name, value}); + } + } + } + + if (list.isEmpty()) { + return null; + } else { + Collections.sort(list, new Comparator() { + public int compare(String[] o1, String[] o2) { + int value = o1[0].compareTo(o2[0]); + return value == 0 ? o1[1].compareTo(o2[1]) : value; + } + }); + StringBuilder builder = new StringBuilder(); + Iterator var14 = list.iterator(); + + while(var14.hasNext()) { + String[] param = (String[])var14.next(); + builder.append(param[0]).append("=").append(param[1]).append("&"); + } + + builder.deleteCharAt(builder.length() - 1); + String summaryText = builder.toString(); + return summaryText; + } + } + /** + + * 签名摘要 + + * @param algorithm hash算法 SHA1,MD5,SHA-256 + + * @param summaryText 摘要内容 + + * @return + + */ + public static String buildSummary(String algorithm, String summaryText) { + try { + return sha(summaryText, algorithm); + } catch (Exception var3) { + System.out.println("sha error" + var3); + return null; + } + } + /** + + * 检查摘要签名 + + * @param algorithm + + * @param summaryText + + * @param summarySign + + * @return + + */ + + public static boolean checkSummary(String algorithm, String summaryText, String summarySign) { + String sign = buildSummary(algorithm, summaryText); + return !isEmpty(sign) && !isEmpty(summarySign) && summarySign.equals(sign); + } + /** + + * sha + + * @param text + + * @param signType + + * @return + + * @throws Exception + + */ + + private static String sha(String text, String signType) throws Exception { + MessageDigest sha = MessageDigest.getInstance(signType); + byte[] digest = sha.digest(text.getBytes("UTF-8")); + return Hex.encodeHexString(digest, false); + } + /** + + * hmac + + * @param accessSecret + + * @param stringToSign + + * @param singType + + * @return + + * @throws Exception + + */ + private static String hmac(String accessSecret, String stringToSign, String singType) throws Exception { + Mac mac = Mac.getInstance(singType); + mac.init(new SecretKeySpec(accessSecret.getBytes("UTF-8"), singType)); + byte[] signData = mac.doFinal(stringToSign.getBytes("UTF-8")); + return Hex.encodeHexString(signData, false); + } + + static { + allowedAlgorithms.add(ALGORITHM_SHA1); + allowedAlgorithms.add(ALGORITHM_SHA256); + allowedAlgorithms.add(ALGORITHM_MD5); + allowedAlgorithms.add(ALGORITHM_HMACSHA256); + } + + public static boolean isEmpty(String str) { + if(str == null || str.trim().equals("")) { + return true; + } + return false; + } +} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/SmsNjuptServiceImpl.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/SmsNjuptServiceImpl.java deleted file mode 100644 index f826df4..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/SmsNjuptServiceImpl.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.budwk.app.base.sms.impl.njupt; - -import cn.hutool.core.util.ArrayUtil; -import cn.hutool.core.util.ObjectUtil; -import cn.hutool.core.util.StrUtil; -import com.budwk.app.base.sms.SmsService; -import com.budwk.app.base.sms.impl.njupt.ucp.serv.MessageSender; -import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.*; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.util.TokenBuilder; -import com.budwk.app.web.commons.base.Globals; -import lombok.extern.slf4j.Slf4j; -import org.nutz.ioc.loader.annotation.IocBean; -import org.nutz.json.Json; - -import java.util.ArrayList; -import java.util.List; - -/** - * 南邮短信实现 - * channeIds 短信、邮箱、及时消息(1,2,3) - */ -@IocBean -@Slf4j -public class SmsNjuptServiceImpl implements SmsService { - @Override - public void send(String loginName, String content) { - Address[] address = new Address[]{ - new Address("(" + loginName + ")", "uc_ux") - }; - Message message = builder(address, null, content, null); - send(message); - } - - @Override - public void send(String loginName, String title, String content) { - Address[] address = new Address[]{ - new Address("(" + loginName + ")", "uc_ux") - }; - Message message = builder(address, title, content, null); - send(message); - } - - @Override - public void send(String loginName, String title, String content, String link) { - Address[] address = new Address[]{ - new Address("(" + loginName + ")", "uc_ux") - }; - Message message = builder(address, title, content, link); - send(message); - } - - @Override - public void massSend(List loginNames, String title, String content, String link) { -// List
sms = loginNames.stream().map(loginName -> new Address(loginName, "sms")).toList(); - List
sms = loginNames.stream().map(loginName -> new Address("(" + loginName + ")", "uc_ux")).toList(); - Address[] addresses = ArrayUtil.toArray(sms, Address.class); - Message message = builder(addresses, title, content, link); - send(message); - } - - private void send(Message message) { - - } - - - private Message builder(Address[] address, String title, String content, String linkUrl) { - Message message = new Message(); - message.setTo(address); //接收人地址 - message.setSubject(title); //标题 - message.setContent(content); //内容 - message.setMsgType(StrUtil.isNotBlank(linkUrl) ? 1 : 0); //是否有链接 - MessagePropertiesEntry signature = buildProperty("smsSignature", ""); //用户签名 - MessagePropertiesEntry innermsg = buildProperty("innerMsg", "true"); //支持站内信 - MessagePropertiesEntry imLinkUrl = buildProperty("im_linkUrl", linkUrl);//短信中的链接 - MessagePropertiesEntry[] entrys = StrUtil.isNotBlank(linkUrl) ? new MessagePropertiesEntry[]{signature, innermsg, imLinkUrl} : new MessagePropertiesEntry[]{signature, innermsg}; - message.setProperties(new MessageProperties(entrys)); - return message; - } - - private MessagePropertiesEntry buildProperty(String key, String value) { - return new MessagePropertiesEntry(key, value); - } - - -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/MessageSender.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/MessageSender.java deleted file mode 100644 index fe493fa..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/MessageSender.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.budwk.app.base.sms.impl.njupt.ucp.serv; - -import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.UcpWebServ_PortType; -import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.UcpWebServ_Service; -import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.UcpWebServ_ServiceLocator; - -import java.net.URL; - -public class MessageSender { - public static final int[] MESSAGE_SOLUTION = new int[]{1}; - public static final int CHANNEL_SMS = 1; - public static final int CHANNEL_EMAIL = 2; - public static final int CHANNEL_IM = 3; - private String ws_url; - - public MessageSender(String url) { - this.ws_url = url; - } - - public MessageSender(String path, String url) { - this.ws_url = url; - System.setProperty("javax.net.ssl.keyStore", path); - System.setProperty("javax.net.ssl.keyStorePassword", "changeit"); - System.setProperty("javax.net.ssl.keyStoreType", "PKCS12"); - } - - public UcpWebServ_PortType loadUcpClient() throws Exception { - UcpWebServ_Service uws_s = new UcpWebServ_ServiceLocator(); - return uws_s.getUcpWebServPort(new URL(this.ws_url)); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Address.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Address.java deleted file mode 100644 index f4ca773..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Address.java +++ /dev/null @@ -1,112 +0,0 @@ -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; - -public class Address implements Serializable { - private String address; - private String type; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(Address.class, true); - - public Address() { - } - - public Address(String address, String type) { - this.address = address; - this.type = type; - } - - public String getAddress() { - return this.address; - } - - public void setAddress(String address) { - this.address = address; - } - - public String getType() { - return this.type; - } - - public void setType(String type) { - this.type = type; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof Address)) { - return false; - } else { - Address other = (Address)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && (this.type == null && other.getType() == null || this.type != null && this.type.equals(other.getType())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getAddress() != null) { - _hashCode += this.getAddress().hashCode(); - } - - if (this.getType() != null) { - _hashCode += this.getType().hashCode(); - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("address"); - elemField.setXmlName(new QName("", "address")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("type"); - elemField.setXmlName(new QName("", "type")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Attachment.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Attachment.java deleted file mode 100644 index 0530085..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Attachment.java +++ /dev/null @@ -1,133 +0,0 @@ -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; - -public class Attachment implements Serializable { - private String content; - private String mimeType; - private String name; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(Attachment.class, true); - - public Attachment() { - } - - public Attachment(String content, String mimeType, String name) { - this.content = content; - this.mimeType = mimeType; - this.name = name; - } - - public String getContent() { - return this.content; - } - - public void setContent(String content) { - this.content = content; - } - - public String getMimeType() { - return this.mimeType; - } - - public void setMimeType(String mimeType) { - this.mimeType = mimeType; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof Attachment)) { - return false; - } else { - Attachment other = (Attachment)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.content == null && other.getContent() == null || this.content != null && this.content.equals(other.getContent())) && (this.mimeType == null && other.getMimeType() == null || this.mimeType != null && this.mimeType.equals(other.getMimeType())) && (this.name == null && other.getName() == null || this.name != null && this.name.equals(other.getName())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getContent() != null) { - _hashCode += this.getContent().hashCode(); - } - - if (this.getMimeType() != null) { - _hashCode += this.getMimeType().hashCode(); - } - - if (this.getName() != null) { - _hashCode += this.getName().hashCode(); - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "attachment")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("content"); - elemField.setXmlName(new QName("", "content")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("mimeType"); - elemField.setXmlName(new QName("", "mimeType")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("name"); - elemField.setXmlName(new QName("", "name")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Channel.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Channel.java deleted file mode 100644 index 32335be..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Channel.java +++ /dev/null @@ -1,208 +0,0 @@ -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.lang.reflect.Array; -import java.util.Arrays; - -public class Channel implements Serializable { - private String[] addressTypes; - private String config; - private String friendlyName; - private int id; - private String implClass; - private String name; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(Channel.class, true); - - public Channel() { - } - - public Channel(String[] addressTypes, String config, String friendlyName, int id, String implClass, String name) { - this.addressTypes = addressTypes; - this.config = config; - this.friendlyName = friendlyName; - this.id = id; - this.implClass = implClass; - this.name = name; - } - - public String[] getAddressTypes() { - return this.addressTypes; - } - - public void setAddressTypes(String[] addressTypes) { - this.addressTypes = addressTypes; - } - - public String getAddressTypes(int i) { - return this.addressTypes[i]; - } - - public void setAddressTypes(int i, String _value) { - this.addressTypes[i] = _value; - } - - public String getConfig() { - return this.config; - } - - public void setConfig(String config) { - this.config = config; - } - - public String getFriendlyName() { - return this.friendlyName; - } - - public void setFriendlyName(String friendlyName) { - this.friendlyName = friendlyName; - } - - public int getId() { - return this.id; - } - - public void setId(int id) { - this.id = id; - } - - public String getImplClass() { - return this.implClass; - } - - public void setImplClass(String implClass) { - this.implClass = implClass; - } - - public String getName() { - return this.name; - } - - public void setName(String name) { - this.name = name; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof Channel)) { - return false; - } else { - Channel other = (Channel)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.addressTypes == null && other.getAddressTypes() == null || this.addressTypes != null && Arrays.equals(this.addressTypes, other.getAddressTypes())) && (this.config == null && other.getConfig() == null || this.config != null && this.config.equals(other.getConfig())) && (this.friendlyName == null && other.getFriendlyName() == null || this.friendlyName != null && this.friendlyName.equals(other.getFriendlyName())) && this.id == other.getId() && (this.implClass == null && other.getImplClass() == null || this.implClass != null && this.implClass.equals(other.getImplClass())) && (this.name == null && other.getName() == null || this.name != null && this.name.equals(other.getName())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getAddressTypes() != null) { - for(int i = 0; i < Array.getLength(this.getAddressTypes()); ++i) { - Object obj = Array.get(this.getAddressTypes(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - if (this.getConfig() != null) { - _hashCode += this.getConfig().hashCode(); - } - - if (this.getFriendlyName() != null) { - _hashCode += this.getFriendlyName().hashCode(); - } - - _hashCode += this.getId(); - if (this.getImplClass() != null) { - _hashCode += this.getImplClass().hashCode(); - } - - if (this.getName() != null) { - _hashCode += this.getName().hashCode(); - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "channel")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("addressTypes"); - elemField.setXmlName(new QName("", "addressTypes")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(true); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("config"); - elemField.setXmlName(new QName("", "config")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("friendlyName"); - elemField.setXmlName(new QName("", "friendlyName")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("id"); - elemField.setXmlName(new QName("", "id")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("implClass"); - elemField.setXmlName(new QName("", "implClass")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("name"); - elemField.setXmlName(new QName("", "name")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelDeliverState.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelDeliverState.java deleted file mode 100644 index c0419ab..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelDeliverState.java +++ /dev/null @@ -1,265 +0,0 @@ -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.util.Calendar; - -public class ChannelDeliverState implements Serializable { - private int billCount; - private String chanelDeliverId; - private int channelId; - private String errorMessage; - private int frameNo; - private Recipient recipientBy; - private String recvMessageId; - private Calendar sendTime; - private Recipient sendTo; - private int state; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(ChannelDeliverState.class, true); - - public ChannelDeliverState() { - } - - public ChannelDeliverState(int billCount, String chanelDeliverId, int channelId, String errorMessage, int frameNo, Recipient recipientBy, String recvMessageId, Calendar sendTime, Recipient sendTo, int state) { - this.billCount = billCount; - this.chanelDeliverId = chanelDeliverId; - this.channelId = channelId; - this.errorMessage = errorMessage; - this.frameNo = frameNo; - this.recipientBy = recipientBy; - this.recvMessageId = recvMessageId; - this.sendTime = sendTime; - this.sendTo = sendTo; - this.state = state; - } - - public int getBillCount() { - return this.billCount; - } - - public void setBillCount(int billCount) { - this.billCount = billCount; - } - - public String getChanelDeliverId() { - return this.chanelDeliverId; - } - - public void setChanelDeliverId(String chanelDeliverId) { - this.chanelDeliverId = chanelDeliverId; - } - - public int getChannelId() { - return this.channelId; - } - - public void setChannelId(int channelId) { - this.channelId = channelId; - } - - public String getErrorMessage() { - return this.errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - - public int getFrameNo() { - return this.frameNo; - } - - public void setFrameNo(int frameNo) { - this.frameNo = frameNo; - } - - public Recipient getRecipientBy() { - return this.recipientBy; - } - - public void setRecipientBy(Recipient recipientBy) { - this.recipientBy = recipientBy; - } - - public String getRecvMessageId() { - return this.recvMessageId; - } - - public void setRecvMessageId(String recvMessageId) { - this.recvMessageId = recvMessageId; - } - - public Calendar getSendTime() { - return this.sendTime; - } - - public void setSendTime(Calendar sendTime) { - this.sendTime = sendTime; - } - - public Recipient getSendTo() { - return this.sendTo; - } - - public void setSendTo(Recipient sendTo) { - this.sendTo = sendTo; - } - - public int getState() { - return this.state; - } - - public void setState(int state) { - this.state = state; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof ChannelDeliverState)) { - return false; - } else { - ChannelDeliverState other = (ChannelDeliverState)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = this.billCount == other.getBillCount() && (this.chanelDeliverId == null && other.getChanelDeliverId() == null || this.chanelDeliverId != null && this.chanelDeliverId.equals(other.getChanelDeliverId())) && this.channelId == other.getChannelId() && (this.errorMessage == null && other.getErrorMessage() == null || this.errorMessage != null && this.errorMessage.equals(other.getErrorMessage())) && this.frameNo == other.getFrameNo() && (this.recipientBy == null && other.getRecipientBy() == null || this.recipientBy != null && this.recipientBy.equals(other.getRecipientBy())) && (this.recvMessageId == null && other.getRecvMessageId() == null || this.recvMessageId != null && this.recvMessageId.equals(other.getRecvMessageId())) && (this.sendTime == null && other.getSendTime() == null || this.sendTime != null && this.sendTime.equals(other.getSendTime())) && (this.sendTo == null && other.getSendTo() == null || this.sendTo != null && this.sendTo.equals(other.getSendTo())) && this.state == other.getState(); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - _hashCode += this.getBillCount(); - if (this.getChanelDeliverId() != null) { - _hashCode += this.getChanelDeliverId().hashCode(); - } - - _hashCode += this.getChannelId(); - if (this.getErrorMessage() != null) { - _hashCode += this.getErrorMessage().hashCode(); - } - - _hashCode += this.getFrameNo(); - if (this.getRecipientBy() != null) { - _hashCode += this.getRecipientBy().hashCode(); - } - - if (this.getRecvMessageId() != null) { - _hashCode += this.getRecvMessageId().hashCode(); - } - - if (this.getSendTime() != null) { - _hashCode += this.getSendTime().hashCode(); - } - - if (this.getSendTo() != null) { - _hashCode += this.getSendTo().hashCode(); - } - - _hashCode += this.getState(); - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "channelDeliverState")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("billCount"); - elemField.setXmlName(new QName("", "billCount")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("chanelDeliverId"); - elemField.setXmlName(new QName("", "chanelDeliverId")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("channelId"); - elemField.setXmlName(new QName("", "channelId")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("errorMessage"); - elemField.setXmlName(new QName("", "errorMessage")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("frameNo"); - elemField.setXmlName(new QName("", "frameNo")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("recipientBy"); - elemField.setXmlName(new QName("", "recipientBy")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "recipient")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("recvMessageId"); - elemField.setXmlName(new QName("", "recvMessageId")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("sendTime"); - elemField.setXmlName(new QName("", "sendTime")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "dateTime")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("sendTo"); - elemField.setXmlName(new QName("", "sendTo")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "recipient")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("state"); - elemField.setXmlName(new QName("", "state")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetail.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetail.java deleted file mode 100644 index 80e5bd5..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetail.java +++ /dev/null @@ -1,323 +0,0 @@ -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.util.Calendar; - -public class ChannelMessageDetail implements Serializable { - private int billCount; - private String chanelDeliverId; - private int channelId; - private String errorMessage; - private int frameNo; - private ChannelMessageDetailProperties properties; - private Recipient recipientBy; - private String recvMessageId; - private String replyContent; - private int replyCount; - private Calendar sendTime; - private Recipient sendTo; - private int state; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(ChannelMessageDetail.class, true); - - public ChannelMessageDetail() { - } - - public ChannelMessageDetail(int billCount, String chanelDeliverId, int channelId, String errorMessage, int frameNo, ChannelMessageDetailProperties properties, Recipient recipientBy, String recvMessageId, String replyContent, int replyCount, Calendar sendTime, Recipient sendTo, int state) { - this.billCount = billCount; - this.chanelDeliverId = chanelDeliverId; - this.channelId = channelId; - this.errorMessage = errorMessage; - this.frameNo = frameNo; - this.properties = properties; - this.recipientBy = recipientBy; - this.recvMessageId = recvMessageId; - this.replyContent = replyContent; - this.replyCount = replyCount; - this.sendTime = sendTime; - this.sendTo = sendTo; - this.state = state; - } - - public int getBillCount() { - return this.billCount; - } - - public void setBillCount(int billCount) { - this.billCount = billCount; - } - - public String getChanelDeliverId() { - return this.chanelDeliverId; - } - - public void setChanelDeliverId(String chanelDeliverId) { - this.chanelDeliverId = chanelDeliverId; - } - - public int getChannelId() { - return this.channelId; - } - - public void setChannelId(int channelId) { - this.channelId = channelId; - } - - public String getErrorMessage() { - return this.errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - - public int getFrameNo() { - return this.frameNo; - } - - public void setFrameNo(int frameNo) { - this.frameNo = frameNo; - } - - public ChannelMessageDetailProperties getProperties() { - return this.properties; - } - - public void setProperties(ChannelMessageDetailProperties properties) { - this.properties = properties; - } - - public Recipient getRecipientBy() { - return this.recipientBy; - } - - public void setRecipientBy(Recipient recipientBy) { - this.recipientBy = recipientBy; - } - - public String getRecvMessageId() { - return this.recvMessageId; - } - - public void setRecvMessageId(String recvMessageId) { - this.recvMessageId = recvMessageId; - } - - public String getReplyContent() { - return this.replyContent; - } - - public void setReplyContent(String replyContent) { - this.replyContent = replyContent; - } - - public int getReplyCount() { - return this.replyCount; - } - - public void setReplyCount(int replyCount) { - this.replyCount = replyCount; - } - - public Calendar getSendTime() { - return this.sendTime; - } - - public void setSendTime(Calendar sendTime) { - this.sendTime = sendTime; - } - - public Recipient getSendTo() { - return this.sendTo; - } - - public void setSendTo(Recipient sendTo) { - this.sendTo = sendTo; - } - - public int getState() { - return this.state; - } - - public void setState(int state) { - this.state = state; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof ChannelMessageDetail)) { - return false; - } else { - ChannelMessageDetail other = (ChannelMessageDetail)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = this.billCount == other.getBillCount() && (this.chanelDeliverId == null && other.getChanelDeliverId() == null || this.chanelDeliverId != null && this.chanelDeliverId.equals(other.getChanelDeliverId())) && this.channelId == other.getChannelId() && (this.errorMessage == null && other.getErrorMessage() == null || this.errorMessage != null && this.errorMessage.equals(other.getErrorMessage())) && this.frameNo == other.getFrameNo() && (this.properties == null && other.getProperties() == null || this.properties != null && this.properties.equals(other.getProperties())) && (this.recipientBy == null && other.getRecipientBy() == null || this.recipientBy != null && this.recipientBy.equals(other.getRecipientBy())) && (this.recvMessageId == null && other.getRecvMessageId() == null || this.recvMessageId != null && this.recvMessageId.equals(other.getRecvMessageId())) && (this.replyContent == null && other.getReplyContent() == null || this.replyContent != null && this.replyContent.equals(other.getReplyContent())) && this.replyCount == other.getReplyCount() && (this.sendTime == null && other.getSendTime() == null || this.sendTime != null && this.sendTime.equals(other.getSendTime())) && (this.sendTo == null && other.getSendTo() == null || this.sendTo != null && this.sendTo.equals(other.getSendTo())) && this.state == other.getState(); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - _hashCode += this.getBillCount(); - if (this.getChanelDeliverId() != null) { - _hashCode += this.getChanelDeliverId().hashCode(); - } - - _hashCode += this.getChannelId(); - if (this.getErrorMessage() != null) { - _hashCode += this.getErrorMessage().hashCode(); - } - - _hashCode += this.getFrameNo(); - if (this.getProperties() != null) { - _hashCode += this.getProperties().hashCode(); - } - - if (this.getRecipientBy() != null) { - _hashCode += this.getRecipientBy().hashCode(); - } - - if (this.getRecvMessageId() != null) { - _hashCode += this.getRecvMessageId().hashCode(); - } - - if (this.getReplyContent() != null) { - _hashCode += this.getReplyContent().hashCode(); - } - - _hashCode += this.getReplyCount(); - if (this.getSendTime() != null) { - _hashCode += this.getSendTime().hashCode(); - } - - if (this.getSendTo() != null) { - _hashCode += this.getSendTo().hashCode(); - } - - _hashCode += this.getState(); - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "channelMessageDetail")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("billCount"); - elemField.setXmlName(new QName("", "billCount")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("chanelDeliverId"); - elemField.setXmlName(new QName("", "chanelDeliverId")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("channelId"); - elemField.setXmlName(new QName("", "channelId")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("errorMessage"); - elemField.setXmlName(new QName("", "errorMessage")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("frameNo"); - elemField.setXmlName(new QName("", "frameNo")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("properties"); - elemField.setXmlName(new QName("", "properties")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">channelMessageDetail>properties")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("recipientBy"); - elemField.setXmlName(new QName("", "recipientBy")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "recipient")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("recvMessageId"); - elemField.setXmlName(new QName("", "recvMessageId")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("replyContent"); - elemField.setXmlName(new QName("", "replyContent")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("replyCount"); - elemField.setXmlName(new QName("", "replyCount")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("sendTime"); - elemField.setXmlName(new QName("", "sendTime")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "dateTime")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("sendTo"); - elemField.setXmlName(new QName("", "sendTo")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "recipient")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("state"); - elemField.setXmlName(new QName("", "state")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailProperties.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailProperties.java deleted file mode 100644 index 9f34d87..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailProperties.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.lang.reflect.Array; -import java.util.Arrays; - -public class ChannelMessageDetailProperties implements Serializable { - private ChannelMessageDetailPropertiesEntry[] entry; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(ChannelMessageDetailProperties.class, true); - - public ChannelMessageDetailProperties() { - } - - public ChannelMessageDetailProperties(ChannelMessageDetailPropertiesEntry[] entry) { - this.entry = entry; - } - - public ChannelMessageDetailPropertiesEntry[] getEntry() { - return this.entry; - } - - public void setEntry(ChannelMessageDetailPropertiesEntry[] entry) { - this.entry = entry; - } - - public ChannelMessageDetailPropertiesEntry getEntry(int i) { - return this.entry[i]; - } - - public void setEntry(int i, ChannelMessageDetailPropertiesEntry _value) { - this.entry[i] = _value; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof ChannelMessageDetailProperties)) { - return false; - } else { - ChannelMessageDetailProperties other = (ChannelMessageDetailProperties)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = this.entry == null && other.getEntry() == null || this.entry != null && Arrays.equals(this.entry, other.getEntry()); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getEntry() != null) { - for(int i = 0; i < Array.getLength(this.getEntry()); ++i) { - Object obj = Array.get(this.getEntry(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">channelMessageDetail>properties")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("entry"); - elemField.setXmlName(new QName("", "entry")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">>channelMessageDetail>properties>entry")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailPropertiesEntry.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailPropertiesEntry.java deleted file mode 100644 index a9a7522..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/ChannelMessageDetailPropertiesEntry.java +++ /dev/null @@ -1,112 +0,0 @@ -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; - -public class ChannelMessageDetailPropertiesEntry implements Serializable { - private String key; - private String value; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(ChannelMessageDetailPropertiesEntry.class, true); - - public ChannelMessageDetailPropertiesEntry() { - } - - public ChannelMessageDetailPropertiesEntry(String key, String value) { - this.key = key; - this.value = value; - } - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof ChannelMessageDetailPropertiesEntry)) { - return false; - } else { - ChannelMessageDetailPropertiesEntry other = (ChannelMessageDetailPropertiesEntry)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.key == null && other.getKey() == null || this.key != null && this.key.equals(other.getKey())) && (this.value == null && other.getValue() == null || this.value != null && this.value.equals(other.getValue())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getKey() != null) { - _hashCode += this.getKey().hashCode(); - } - - if (this.getValue() != null) { - _hashCode += this.getValue().hashCode(); - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">>channelMessageDetail>properties>entry")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("key"); - elemField.setXmlName(new QName("", "key")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("value"); - elemField.setXmlName(new QName("", "value")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Message.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Message.java deleted file mode 100644 index f00497b..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Message.java +++ /dev/null @@ -1,280 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.lang.reflect.Array; -import java.util.Arrays; - -public class Message implements Serializable { - private Address[] bcc; - private Address[] cc; - private String content; - private int msgType; - private boolean needReply; - private MessageProperties properties; - private String subject; - private Address[] to; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(Message.class, true); - - public Message() { - } - - public Message(Address[] bcc, Address[] cc, String content, int msgType, boolean needReply, MessageProperties properties, String subject, Address[] to) { - this.bcc = bcc; - this.cc = cc; - this.content = content; - this.msgType = msgType; - this.needReply = needReply; - this.properties = properties; - this.subject = subject; - this.to = to; - } - - public Address[] getBcc() { - return this.bcc; - } - - public void setBcc(Address[] bcc) { - this.bcc = bcc; - } - - public Address getBcc(int i) { - return this.bcc[i]; - } - - public void setBcc(int i, Address _value) { - this.bcc[i] = _value; - } - - public Address[] getCc() { - return this.cc; - } - - public void setCc(Address[] cc) { - this.cc = cc; - } - - public Address getCc(int i) { - return this.cc[i]; - } - - public void setCc(int i, Address _value) { - this.cc[i] = _value; - } - - public String getContent() { - return this.content; - } - - public void setContent(String content) { - this.content = content; - } - - public int getMsgType() { - return this.msgType; - } - - public void setMsgType(int msgType) { - this.msgType = msgType; - } - - public boolean isNeedReply() { - return this.needReply; - } - - public void setNeedReply(boolean needReply) { - this.needReply = needReply; - } - - public MessageProperties getProperties() { - return this.properties; - } - - public void setProperties(MessageProperties properties) { - this.properties = properties; - } - - public String getSubject() { - return this.subject; - } - - public void setSubject(String subject) { - this.subject = subject; - } - - public Address[] getTo() { - return this.to; - } - - public void setTo(Address[] to) { - this.to = to; - } - - public Address getTo(int i) { - return this.to[i]; - } - - public void setTo(int i, Address _value) { - this.to[i] = _value; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof Message)) { - return false; - } else { - Message other = (Message)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.bcc == null && other.getBcc() == null || this.bcc != null && Arrays.equals(this.bcc, other.getBcc())) && (this.cc == null && other.getCc() == null || this.cc != null && Arrays.equals(this.cc, other.getCc())) && (this.content == null && other.getContent() == null || this.content != null && this.content.equals(other.getContent())) && this.msgType == other.getMsgType() && this.needReply == other.isNeedReply() && (this.properties == null && other.getProperties() == null || this.properties != null && this.properties.equals(other.getProperties())) && (this.subject == null && other.getSubject() == null || this.subject != null && this.subject.equals(other.getSubject())) && (this.to == null && other.getTo() == null || this.to != null && Arrays.equals(this.to, other.getTo())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - int i; - Object obj; - if (this.getBcc() != null) { - for(i = 0; i < Array.getLength(this.getBcc()); ++i) { - obj = Array.get(this.getBcc(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - if (this.getCc() != null) { - for(i = 0; i < Array.getLength(this.getCc()); ++i) { - obj = Array.get(this.getCc(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - if (this.getContent() != null) { - _hashCode += this.getContent().hashCode(); - } - - _hashCode += this.getMsgType(); - _hashCode += (this.isNeedReply() ? Boolean.TRUE : Boolean.FALSE).hashCode(); - if (this.getProperties() != null) { - _hashCode += this.getProperties().hashCode(); - } - - if (this.getSubject() != null) { - _hashCode += this.getSubject().hashCode(); - } - - if (this.getTo() != null) { - for(i = 0; i < Array.getLength(this.getTo()); ++i) { - obj = Array.get(this.getTo(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "message")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("bcc"); - elemField.setXmlName(new QName("", "bcc")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address")); - elemField.setMinOccurs(0); - elemField.setNillable(true); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("cc"); - elemField.setXmlName(new QName("", "cc")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address")); - elemField.setMinOccurs(0); - elemField.setNillable(true); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("content"); - elemField.setXmlName(new QName("", "content")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("msgType"); - elemField.setXmlName(new QName("", "msgType")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("needReply"); - elemField.setXmlName(new QName("", "needReply")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "boolean")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("properties"); - elemField.setXmlName(new QName("", "properties")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">message>properties")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("subject"); - elemField.setXmlName(new QName("", "subject")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("to"); - elemField.setXmlName(new QName("", "to")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address")); - elemField.setMinOccurs(0); - elemField.setNillable(true); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageException.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageException.java deleted file mode 100644 index b547520..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageException.java +++ /dev/null @@ -1,104 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.AxisFault; -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.SerializationContext; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; -import org.xml.sax.Attributes; - -import javax.xml.namespace.QName; -import java.io.IOException; -import java.io.Serializable; - -public class MessageException extends AxisFault implements Serializable { - private String message1; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(MessageException.class, true); - - public MessageException() { - } - - public MessageException(String message1) { - this.message1 = message1; - } - - public String getMessage1() { - return this.message1; - } - - public void setMessage1(String message1) { - this.message1 = message1; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof MessageException)) { - return false; - } else { - MessageException other = (MessageException)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = this.message1 == null && other.getMessage1() == null || this.message1 != null && this.message1.equals(other.getMessage1()); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getMessage1() != null) { - _hashCode += this.getMessage1().hashCode(); - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - public void writeDetails(QName qname, SerializationContext context) throws IOException { - context.serialize(qname, (Attributes)null, this); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "MessageException")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("message1"); - elemField.setXmlName(new QName("", "message")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageProperties.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageProperties.java deleted file mode 100644 index e2aab06..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessageProperties.java +++ /dev/null @@ -1,112 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.lang.reflect.Array; -import java.util.Arrays; - -public class MessageProperties implements Serializable { - private MessagePropertiesEntry[] entry; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(MessageProperties.class, true); - - public MessageProperties() { - } - - public MessageProperties(MessagePropertiesEntry[] entry) { - this.entry = entry; - } - - public MessagePropertiesEntry[] getEntry() { - return this.entry; - } - - public void setEntry(MessagePropertiesEntry[] entry) { - this.entry = entry; - } - - public MessagePropertiesEntry getEntry(int i) { - return this.entry[i]; - } - - public void setEntry(int i, MessagePropertiesEntry _value) { - this.entry[i] = _value; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof MessageProperties)) { - return false; - } else { - MessageProperties other = (MessageProperties)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = this.entry == null && other.getEntry() == null || this.entry != null && Arrays.equals(this.entry, other.getEntry()); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getEntry() != null) { - for(int i = 0; i < Array.getLength(this.getEntry()); ++i) { - Object obj = Array.get(this.getEntry(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">message>properties")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("entry"); - elemField.setXmlName(new QName("", "entry")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">>message>properties>entry")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessagePropertiesEntry.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessagePropertiesEntry.java deleted file mode 100644 index 7b34a02..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/MessagePropertiesEntry.java +++ /dev/null @@ -1,117 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; - -public class MessagePropertiesEntry implements Serializable { - private String key; - private String value; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(MessagePropertiesEntry.class, true); - - public MessagePropertiesEntry() { - } - - public MessagePropertiesEntry(String key, String value) { - this.key = key; - this.value = value; - } - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof MessagePropertiesEntry)) { - return false; - } else { - MessagePropertiesEntry other = (MessagePropertiesEntry)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.key == null && other.getKey() == null || this.key != null && this.key.equals(other.getKey())) && (this.value == null && other.getValue() == null || this.value != null && this.value.equals(other.getValue())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getKey() != null) { - _hashCode += this.getKey().hashCode(); - } - - if (this.getValue() != null) { - _hashCode += this.getValue().hashCode(); - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", ">>message>properties>entry")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("key"); - elemField.setXmlName(new QName("", "key")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("value"); - elemField.setXmlName(new QName("", "value")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Recipient.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Recipient.java deleted file mode 100644 index be04d73..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/Recipient.java +++ /dev/null @@ -1,113 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; - -public class Recipient implements Serializable { - private Address address; - private int type; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(Recipient.class, true); - - public Recipient() { - } - - public Recipient(Address address, int type) { - this.address = address; - this.type = type; - } - - public Address getAddress() { - return this.address; - } - - public void setAddress(Address address) { - this.address = address; - } - - public int getType() { - return this.type; - } - - public void setType(int type) { - this.type = type; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof Recipient)) { - return false; - } else { - Recipient other = (Recipient)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && this.type == other.getType(); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getAddress() != null) { - _hashCode += this.getAddress().hashCode(); - } - - _hashCode += this.getType(); - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "recipient")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("address"); - elemField.setXmlName(new QName("", "address")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("type"); - elemField.setXmlName(new QName("", "type")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/SendResult.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/SendResult.java deleted file mode 100644 index a5e7fec..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/SendResult.java +++ /dev/null @@ -1,171 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.lang.reflect.Array; -import java.util.Arrays; - -public class SendResult implements Serializable { - private String errorInfo; - private String messageId; - private boolean succeeded; - private WrongAddress[] wrongAddresses; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(SendResult.class, true); - - public SendResult() { - } - - public SendResult(String errorInfo, String messageId, boolean succeeded, WrongAddress[] wrongAddresses) { - this.errorInfo = errorInfo; - this.messageId = messageId; - this.succeeded = succeeded; - this.wrongAddresses = wrongAddresses; - } - - public String getErrorInfo() { - return this.errorInfo; - } - - public void setErrorInfo(String errorInfo) { - this.errorInfo = errorInfo; - } - - public String getMessageId() { - return this.messageId; - } - - public void setMessageId(String messageId) { - this.messageId = messageId; - } - - public boolean isSucceeded() { - return this.succeeded; - } - - public void setSucceeded(boolean succeeded) { - this.succeeded = succeeded; - } - - public WrongAddress[] getWrongAddresses() { - return this.wrongAddresses; - } - - public void setWrongAddresses(WrongAddress[] wrongAddresses) { - this.wrongAddresses = wrongAddresses; - } - - public WrongAddress getWrongAddresses(int i) { - return this.wrongAddresses[i]; - } - - public void setWrongAddresses(int i, WrongAddress _value) { - this.wrongAddresses[i] = _value; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof SendResult)) { - return false; - } else { - SendResult other = (SendResult)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.errorInfo == null && other.getErrorInfo() == null || this.errorInfo != null && this.errorInfo.equals(other.getErrorInfo())) && (this.messageId == null && other.getMessageId() == null || this.messageId != null && this.messageId.equals(other.getMessageId())) && this.succeeded == other.isSucceeded() && (this.wrongAddresses == null && other.getWrongAddresses() == null || this.wrongAddresses != null && Arrays.equals(this.wrongAddresses, other.getWrongAddresses())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getErrorInfo() != null) { - _hashCode += this.getErrorInfo().hashCode(); - } - - if (this.getMessageId() != null) { - _hashCode += this.getMessageId().hashCode(); - } - - _hashCode += (this.isSucceeded() ? Boolean.TRUE : Boolean.FALSE).hashCode(); - if (this.getWrongAddresses() != null) { - for(int i = 0; i < Array.getLength(this.getWrongAddresses()); ++i) { - Object obj = Array.get(this.getWrongAddresses(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "sendResult")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("errorInfo"); - elemField.setXmlName(new QName("", "errorInfo")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("messageId"); - elemField.setXmlName(new QName("", "messageId")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("succeeded"); - elemField.setXmlName(new QName("", "succeeded")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "boolean")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("wrongAddresses"); - elemField.setXmlName(new QName("", "wrongAddresses")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "wrongAddress")); - elemField.setMinOccurs(0); - elemField.setNillable(true); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServPortBindingStub.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServPortBindingStub.java deleted file mode 100644 index b37ec73..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServPortBindingStub.java +++ /dev/null @@ -1,940 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.AxisFault; -import org.apache.axis.NoEndPointException; -import org.apache.axis.client.Call; -import org.apache.axis.client.Stub; -import org.apache.axis.constants.Style; -import org.apache.axis.constants.Use; -import org.apache.axis.description.FaultDesc; -import org.apache.axis.description.OperationDesc; -import org.apache.axis.description.ParameterDesc; -import org.apache.axis.encoding.DeserializerFactory; -import org.apache.axis.encoding.ser.*; -import org.apache.axis.soap.SOAPConstants; -import org.apache.axis.utils.JavaUtils; - -import javax.xml.namespace.QName; -import javax.xml.rpc.Service; -import javax.xml.rpc.encoding.SerializerFactory; -import java.net.URL; -import java.rmi.RemoteException; -import java.util.Calendar; -import java.util.Enumeration; -import java.util.Vector; - -public class UcpWebServPortBindingStub extends Stub implements UcpWebServ_PortType { - private Vector cachedSerClasses; - private Vector cachedSerQNames; - private Vector cachedSerFactories; - private Vector cachedDeserFactories; - static OperationDesc[] _operations = new OperationDesc[12]; - - private static void _initOperationDesc1() { - OperationDesc oper = new OperationDesc(); - oper.setName("sendMessage"); - ParameterDesc param = new ParameterDesc(new QName("", "boxId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "message"), (byte)1, new QName("http://serv.ucp.sudytech.com/", "message"), Message.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "channels"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), int[].class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "usesSignature"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "boolean"), Boolean.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "plannedTime"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "dateTime"), Calendar.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "sendResult")); - oper.setReturnClass(SendResult.class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true)); - _operations[0] = oper; - oper = new OperationDesc(); - oper.setName("addAttachment"); - param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "attachment"), (byte)1, new QName("http://serv.ucp.sudytech.com/", "attachment"), Attachment.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - oper.setReturnClass(String.class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true)); - _operations[1] = oper; - oper = new OperationDesc(); - oper.setName("deleteAttachment"); - param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "attachmentId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "boolean")); - oper.setReturnClass(Boolean.TYPE); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true)); - _operations[2] = oper; - oper = new OperationDesc(); - oper.setName("createMessage"); - param = new ParameterDesc(new QName("", "boxId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "message"), (byte)1, new QName("http://serv.ucp.sudytech.com/", "message"), Message.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - oper.setReturnClass(String.class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true)); - _operations[3] = oper; - oper = new OperationDesc(); - oper.setName("deleteMessage"); - param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "boolean")); - oper.setReturnClass(Boolean.TYPE); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true)); - _operations[4] = oper; - oper = new OperationDesc(); - oper.setName("sendSavedMessage"); - param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "channels"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), int[].class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "usesSignature"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "boolean"), Boolean.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "plannedTime"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "dateTime"), Calendar.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "sendResult")); - oper.setReturnClass(SendResult.class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true)); - _operations[5] = oper; - oper = new OperationDesc(); - oper.setName("sendIndivMessage"); - param = new ParameterDesc(new QName("", "boxId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "message"), (byte)1, new QName("http://serv.ucp.sudytech.com/", "message"), Message.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "channels"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), int[].class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "usesSignature"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "boolean"), Boolean.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "solution"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "datasrc"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "idvidualParams"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "plannedTime"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "dateTime"), Calendar.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "sendResult")); - oper.setReturnClass(SendResult.class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true)); - _operations[6] = oper; - oper = new OperationDesc(); - oper.setName("sendIndivSavedMessage"); - param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "channels"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), int[].class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "usesSignature"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "boolean"), Boolean.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "solution"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "datasrc"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "idvidualParams"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "plannedTime"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "dateTime"), Calendar.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "sendResult")); - oper.setReturnClass(SendResult.class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://serv.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.serv.client.MessageException", new QName("http://serv.ucp.sudytech.com/", "MessageException"), true)); - _operations[7] = oper; - oper = new OperationDesc(); - oper.setName("getMessageDeliverCount"); - param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "channel"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - oper.setReturnClass(Integer.TYPE); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - _operations[8] = oper; - oper = new OperationDesc(); - oper.setName("getMessageDelivers"); - param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "channel"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "beginIndex"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "count"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "channelDeliverState")); - oper.setReturnClass(ChannelDeliverState[].class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - _operations[9] = oper; - } - - private static void _initOperationDesc2() { - OperationDesc oper = new OperationDesc(); - oper.setName("getChannelMessageDetailCount"); - ParameterDesc param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "channel"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - oper.setReturnClass(Integer.TYPE); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - _operations[10] = oper; - oper = new OperationDesc(); - oper.setName("getChannelMessageDetails"); - param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "channel"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "beginIndex"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "count"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "serviceToken"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://serv.ucp.sudytech.com/", "channelMessageDetail")); - oper.setReturnClass(ChannelMessageDetail[].class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - _operations[11] = oper; - } - - public UcpWebServPortBindingStub() throws AxisFault { - this((Service)null); - } - - public UcpWebServPortBindingStub(URL endpointURL, Service service) throws AxisFault { - this(service); - super.cachedEndpoint = endpointURL; - } - - public UcpWebServPortBindingStub(Service service) throws AxisFault { - this.cachedSerClasses = new Vector(); - this.cachedSerQNames = new Vector(); - this.cachedSerFactories = new Vector(); - this.cachedDeserFactories = new Vector(); - if (service == null) { - super.service = new org.apache.axis.client.Service(); - } else { - super.service = service; - } - - ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); - Class beansf = BeanSerializerFactory.class; - Class beandf = BeanDeserializerFactory.class; - Class enumsf = EnumSerializerFactory.class; - Class enumdf = EnumDeserializerFactory.class; - Class arraysf = ArraySerializerFactory.class; - Class arraydf = ArrayDeserializerFactory.class; - Class simplesf = SimpleSerializerFactory.class; - Class simpledf = SimpleDeserializerFactory.class; - Class simplelistsf = SimpleListSerializerFactory.class; - Class simplelistdf = SimpleListDeserializerFactory.class; - QName qName = new QName("http://serv.ucp.sudytech.com/", ">>channelMessageDetail>properties>entry"); - this.cachedSerQNames.add(qName); - Class cls = ChannelMessageDetailPropertiesEntry.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", ">>message>properties>entry"); - this.cachedSerQNames.add(qName); - cls = MessagePropertiesEntry.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", ">channelMessageDetail>properties"); - this.cachedSerQNames.add(qName); - cls = ChannelMessageDetailProperties.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", ">message>properties"); - this.cachedSerQNames.add(qName); - cls = MessageProperties.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", "address"); - this.cachedSerQNames.add(qName); - cls = Address.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", "attachment"); - this.cachedSerQNames.add(qName); - cls = Attachment.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", "channel"); - this.cachedSerQNames.add(qName); - cls = Channel.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", "channelDeliverState"); - this.cachedSerQNames.add(qName); - cls = ChannelDeliverState.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", "channelMessageDetail"); - this.cachedSerQNames.add(qName); - cls = ChannelMessageDetail.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", "message"); - this.cachedSerQNames.add(qName); - cls = Message.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", "MessageException"); - this.cachedSerQNames.add(qName); - cls = MessageException.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", "recipient"); - this.cachedSerQNames.add(qName); - cls = Recipient.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", "sendResult"); - this.cachedSerQNames.add(qName); - cls = SendResult.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://serv.ucp.sudytech.com/", "wrongAddress"); - this.cachedSerQNames.add(qName); - cls = WrongAddress.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - } - - protected Call createCall() throws RemoteException { - try { - Call _call = super._createCall(); - if (super.maintainSessionSet) { - _call.setMaintainSession(super.maintainSession); - } - - if (super.cachedUsername != null) { - _call.setUsername(super.cachedUsername); - } - - if (super.cachedPassword != null) { - _call.setPassword(super.cachedPassword); - } - - if (super.cachedEndpoint != null) { - _call.setTargetEndpointAddress(super.cachedEndpoint); - } - - if (super.cachedTimeout != null) { - _call.setTimeout(super.cachedTimeout); - } - - if (super.cachedPortName != null) { - _call.setPortName(super.cachedPortName); - } - - Enumeration keys = super.cachedProperties.keys(); - - while(keys.hasMoreElements()) { - String key = (String)keys.nextElement(); - _call.setProperty(key, super.cachedProperties.get(key)); - } - - synchronized(this) { - if (this.firstCall()) { - _call.setEncodingStyle((String)null); - - for(int i = 0; i < this.cachedSerFactories.size(); ++i) { - Class cls = (Class)this.cachedSerClasses.get(i); - QName qName = (QName)this.cachedSerQNames.get(i); - Object x = this.cachedSerFactories.get(i); - if (x instanceof Class) { - Class sf = (Class)this.cachedSerFactories.get(i); - Class df = (Class)this.cachedDeserFactories.get(i); - _call.registerTypeMapping(cls, qName, sf, df, false); - } else if (x instanceof SerializerFactory) { - org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)this.cachedSerFactories.get(i); - DeserializerFactory df = (DeserializerFactory)this.cachedDeserFactories.get(i); - _call.registerTypeMapping(cls, qName, sf, df, false); - } - } - } - } - - return _call; - } catch (Throwable var12) { - throw new AxisFault("Failure trying to get the Call object", var12); - } - } - - public SendResult sendMessage(int boxId, Message message, int[] channels, boolean usesSignature, Calendar plannedTime, String serviceToken) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[0]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "sendMessage")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{new Integer(boxId), message, channels, new Boolean(usesSignature), plannedTime, serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (SendResult)_resp; - } catch (Exception var10) { - return (SendResult)JavaUtils.convert(_resp, SendResult.class); - } - } - } catch (AxisFault var11) { - if (var11.detail != null) { - if (var11.detail instanceof RemoteException) { - throw (RemoteException)var11.detail; - } - - if (var11.detail instanceof MessageException) { - throw (MessageException)var11.detail; - } - } - - throw var11; - } - } - } - - public String addAttachment(String messageId, Attachment attachment, String serviceToken) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[1]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "addAttachment")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, attachment, serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (String)_resp; - } catch (Exception var7) { - return (String)JavaUtils.convert(_resp, String.class); - } - } - } catch (AxisFault var8) { - if (var8.detail != null) { - if (var8.detail instanceof RemoteException) { - throw (RemoteException)var8.detail; - } - - if (var8.detail instanceof MessageException) { - throw (MessageException)var8.detail; - } - } - - throw var8; - } - } - } - - public boolean deleteAttachment(String messageId, String attachmentId, String serviceToken) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[2]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "deleteAttachment")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, attachmentId, serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (Boolean)_resp; - } catch (Exception var7) { - return (Boolean)JavaUtils.convert(_resp, Boolean.TYPE); - } - } - } catch (AxisFault var8) { - if (var8.detail != null) { - if (var8.detail instanceof RemoteException) { - throw (RemoteException)var8.detail; - } - - if (var8.detail instanceof MessageException) { - throw (MessageException)var8.detail; - } - } - - throw var8; - } - } - } - - public String createMessage(int boxId, Message message, String serviceToken) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[3]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "createMessage")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{new Integer(boxId), message, serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (String)_resp; - } catch (Exception var7) { - return (String)JavaUtils.convert(_resp, String.class); - } - } - } catch (AxisFault var8) { - if (var8.detail != null) { - if (var8.detail instanceof RemoteException) { - throw (RemoteException)var8.detail; - } - - if (var8.detail instanceof MessageException) { - throw (MessageException)var8.detail; - } - } - - throw var8; - } - } - } - - public boolean deleteMessage(String messageId, String serviceToken) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[4]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "deleteMessage")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (Boolean)_resp; - } catch (Exception var6) { - return (Boolean)JavaUtils.convert(_resp, Boolean.TYPE); - } - } - } catch (AxisFault var7) { - if (var7.detail != null) { - if (var7.detail instanceof RemoteException) { - throw (RemoteException)var7.detail; - } - - if (var7.detail instanceof MessageException) { - throw (MessageException)var7.detail; - } - } - - throw var7; - } - } - } - - public SendResult sendSavedMessage(String messageId, int[] channels, boolean usesSignature, Calendar plannedTime, String serviceToken) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[5]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "sendSavedMessage")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, channels, new Boolean(usesSignature), plannedTime, serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (SendResult)_resp; - } catch (Exception var9) { - return (SendResult)JavaUtils.convert(_resp, SendResult.class); - } - } - } catch (AxisFault var10) { - if (var10.detail != null) { - if (var10.detail instanceof RemoteException) { - throw (RemoteException)var10.detail; - } - - if (var10.detail instanceof MessageException) { - throw (MessageException)var10.detail; - } - } - - throw var10; - } - } - } - - public SendResult sendIndivMessage(int boxId, Message message, int[] channels, boolean usesSignature, int solution, String datasrc, String idvidualParams, Calendar plannedTime, String serviceToken) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[6]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "sendIndivMessage")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{new Integer(boxId), message, channels, new Boolean(usesSignature), new Integer(solution), datasrc, idvidualParams, plannedTime, serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (SendResult)_resp; - } catch (Exception var13) { - return (SendResult)JavaUtils.convert(_resp, SendResult.class); - } - } - } catch (AxisFault var14) { - if (var14.detail != null) { - if (var14.detail instanceof RemoteException) { - throw (RemoteException)var14.detail; - } - - if (var14.detail instanceof MessageException) { - throw (MessageException)var14.detail; - } - } - - throw var14; - } - } - } - - public SendResult sendIndivSavedMessage(String messageId, int[] channels, boolean usesSignature, int solution, String datasrc, String idvidualParams, Calendar plannedTime, String serviceToken) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[7]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "sendIndivSavedMessage")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, channels, new Boolean(usesSignature), new Integer(solution), datasrc, idvidualParams, plannedTime, serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (SendResult)_resp; - } catch (Exception var12) { - return (SendResult)JavaUtils.convert(_resp, SendResult.class); - } - } - } catch (AxisFault var13) { - if (var13.detail != null) { - if (var13.detail instanceof RemoteException) { - throw (RemoteException)var13.detail; - } - - if (var13.detail instanceof MessageException) { - throw (MessageException)var13.detail; - } - } - - throw var13; - } - } - } - - public int getMessageDeliverCount(String messageId, int channel, String serviceToken) throws RemoteException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[8]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "getMessageDeliverCount")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, new Integer(channel), serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (Integer)_resp; - } catch (Exception var7) { - return (Integer)JavaUtils.convert(_resp, Integer.TYPE); - } - } - } catch (AxisFault var8) { - throw var8; - } - } - } - - public ChannelDeliverState[] getMessageDelivers(String messageId, int channel, int beginIndex, int count, String serviceToken) throws RemoteException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[9]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "getMessageDelivers")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, new Integer(channel), new Integer(beginIndex), new Integer(count), serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (ChannelDeliverState[])((ChannelDeliverState[])_resp); - } catch (Exception var9) { - return (ChannelDeliverState[])((ChannelDeliverState[])JavaUtils.convert(_resp, ChannelDeliverState[].class)); - } - } - } catch (AxisFault var10) { - throw var10; - } - } - } - - public int getChannelMessageDetailCount(String messageId, int channel, String serviceToken) throws RemoteException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[10]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "getChannelMessageDetailCount")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, new Integer(channel), serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (Integer)_resp; - } catch (Exception var7) { - return (Integer)JavaUtils.convert(_resp, Integer.TYPE); - } - } - } catch (AxisFault var8) { - throw var8; - } - } - } - - public ChannelMessageDetail[] getChannelMessageDetails(String messageId, int channel, int beginIndex, int count, String serviceToken) throws RemoteException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[11]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://serv.ucp.sudytech.com/", "getChannelMessageDetails")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, new Integer(channel), new Integer(beginIndex), new Integer(count), serviceToken}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (ChannelMessageDetail[])((ChannelMessageDetail[])_resp); - } catch (Exception var9) { - return (ChannelMessageDetail[])((ChannelMessageDetail[])JavaUtils.convert(_resp, ChannelMessageDetail[].class)); - } - } - } catch (AxisFault var10) { - throw var10; - } - } - } - - static { - _initOperationDesc1(); - _initOperationDesc2(); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_PortType.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_PortType.java deleted file mode 100644 index 3c9c0e3..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_PortType.java +++ /dev/null @@ -1,36 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import java.rmi.Remote; -import java.rmi.RemoteException; -import java.util.Calendar; - -public interface UcpWebServ_PortType extends Remote { - SendResult sendMessage(int var1, Message var2, int[] var3, boolean var4, Calendar var5, String var6) throws RemoteException, MessageException; - - String addAttachment(String var1, Attachment var2, String var3) throws RemoteException, MessageException; - - boolean deleteAttachment(String var1, String var2, String var3) throws RemoteException, MessageException; - - String createMessage(int var1, Message var2, String var3) throws RemoteException, MessageException; - - boolean deleteMessage(String var1, String var2) throws RemoteException, MessageException; - - SendResult sendSavedMessage(String var1, int[] var2, boolean var3, Calendar var4, String var5) throws RemoteException, MessageException; - - SendResult sendIndivMessage(int var1, Message var2, int[] var3, boolean var4, int var5, String var6, String var7, Calendar var8, String var9) throws RemoteException, MessageException; - - SendResult sendIndivSavedMessage(String var1, int[] var2, boolean var3, int var4, String var5, String var6, Calendar var7, String var8) throws RemoteException, MessageException; - - int getMessageDeliverCount(String var1, int var2, String var3) throws RemoteException; - - ChannelDeliverState[] getMessageDelivers(String var1, int var2, int var3, int var4, String var5) throws RemoteException; - - int getChannelMessageDetailCount(String var1, int var2, String var3) throws RemoteException; - - ChannelMessageDetail[] getChannelMessageDetails(String var1, int var2, int var3, int var4, String var5) throws RemoteException; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_Service.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_Service.java deleted file mode 100644 index 8cf0fc2..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_Service.java +++ /dev/null @@ -1,18 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import javax.xml.rpc.Service; -import javax.xml.rpc.ServiceException; -import java.net.URL; - -public interface UcpWebServ_Service extends Service { - String getUcpWebServPortAddress(); - - UcpWebServ_PortType getUcpWebServPort() throws ServiceException; - - UcpWebServ_PortType getUcpWebServPort(URL var1) throws ServiceException; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_ServiceLocator.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_ServiceLocator.java deleted file mode 100644 index 8cda203..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/UcpWebServ_ServiceLocator.java +++ /dev/null @@ -1,127 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.AxisFault; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.client.Service; -import org.apache.axis.client.Stub; - -import javax.xml.namespace.QName; -import javax.xml.rpc.ServiceException; -import java.net.MalformedURLException; -import java.net.URL; -import java.rmi.Remote; -import java.util.HashSet; -import java.util.Iterator; - -public class UcpWebServ_ServiceLocator extends Service implements UcpWebServ_Service { - private String UcpWebServPort_address = "http://172.18.10.32:8181/UcpWebServ"; - private String UcpWebServPortWSDDServiceName = "UcpWebServPort"; - private HashSet ports = null; - - public UcpWebServ_ServiceLocator() { - } - - public UcpWebServ_ServiceLocator(EngineConfiguration config) { - super(config); - } - - public UcpWebServ_ServiceLocator(String wsdlLoc, QName sName) throws ServiceException { - super(wsdlLoc, sName); - } - - public String getUcpWebServPortAddress() { - return this.UcpWebServPort_address; - } - - public String getUcpWebServPortWSDDServiceName() { - return this.UcpWebServPortWSDDServiceName; - } - - public void setUcpWebServPortWSDDServiceName(String name) { - this.UcpWebServPortWSDDServiceName = name; - } - - public UcpWebServ_PortType getUcpWebServPort() throws ServiceException { - URL endpoint; - try { - endpoint = new URL(this.UcpWebServPort_address); - } catch (MalformedURLException var3) { - throw new ServiceException(var3); - } - - return this.getUcpWebServPort(endpoint); - } - - public UcpWebServ_PortType getUcpWebServPort(URL portAddress) throws ServiceException { - try { - UcpWebServPortBindingStub _stub = new UcpWebServPortBindingStub(portAddress, this); - _stub.setPortName(this.getUcpWebServPortWSDDServiceName()); - return _stub; - } catch (AxisFault var3) { - return null; - } - } - - public void setUcpWebServPortEndpointAddress(String address) { - this.UcpWebServPort_address = address; - } - - public Remote getPort(Class serviceEndpointInterface) throws ServiceException { - try { - if (UcpWebServ_PortType.class.isAssignableFrom(serviceEndpointInterface)) { - UcpWebServPortBindingStub _stub = new UcpWebServPortBindingStub(new URL(this.UcpWebServPort_address), this); - _stub.setPortName(this.getUcpWebServPortWSDDServiceName()); - return _stub; - } - } catch (Throwable var3) { - throw new ServiceException(var3); - } - - throw new ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); - } - - public Remote getPort(QName portName, Class serviceEndpointInterface) throws ServiceException { - if (portName == null) { - return this.getPort(serviceEndpointInterface); - } else { - String inputPortName = portName.getLocalPart(); - if ("UcpWebServPort".equals(inputPortName)) { - return this.getUcpWebServPort(); - } else { - Remote _stub = this.getPort(serviceEndpointInterface); - ((Stub)_stub).setPortName(portName); - return _stub; - } - } - } - - public QName getServiceName() { - return new QName("http://serv.ucp.sudytech.com/", "UcpWebServ"); - } - - public Iterator getPorts() { - if (this.ports == null) { - this.ports = new HashSet(); - this.ports.add(new QName("http://serv.ucp.sudytech.com/", "UcpWebServPort")); - } - - return this.ports.iterator(); - } - - public void setEndpointAddress(String portName, String address) throws ServiceException { - if ("UcpWebServPort".equals(portName)) { - this.setUcpWebServPortEndpointAddress(address); - } else { - throw new ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - - public void setEndpointAddress(QName portName, String address) throws ServiceException { - this.setEndpointAddress(portName.getLocalPart(), address); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/WrongAddress.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/WrongAddress.java deleted file mode 100644 index 372d9f3..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/serv/client/WrongAddress.java +++ /dev/null @@ -1,208 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.serv.client; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.lang.reflect.Array; -import java.util.Arrays; - -public class WrongAddress implements Serializable { - private Address address; - private String errorInfo; - private int errorType; - private Channel[] forbiddenChannels; - private Address[] subAddresses; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(WrongAddress.class, true); - - public WrongAddress() { - } - - public WrongAddress(Address address, String errorInfo, int errorType, Channel[] forbiddenChannels, Address[] subAddresses) { - this.address = address; - this.errorInfo = errorInfo; - this.errorType = errorType; - this.forbiddenChannels = forbiddenChannels; - this.subAddresses = subAddresses; - } - - public Address getAddress() { - return this.address; - } - - public void setAddress(Address address) { - this.address = address; - } - - public String getErrorInfo() { - return this.errorInfo; - } - - public void setErrorInfo(String errorInfo) { - this.errorInfo = errorInfo; - } - - public int getErrorType() { - return this.errorType; - } - - public void setErrorType(int errorType) { - this.errorType = errorType; - } - - public Channel[] getForbiddenChannels() { - return this.forbiddenChannels; - } - - public void setForbiddenChannels(Channel[] forbiddenChannels) { - this.forbiddenChannels = forbiddenChannels; - } - - public Channel getForbiddenChannels(int i) { - return this.forbiddenChannels[i]; - } - - public void setForbiddenChannels(int i, Channel _value) { - this.forbiddenChannels[i] = _value; - } - - public Address[] getSubAddresses() { - return this.subAddresses; - } - - public void setSubAddresses(Address[] subAddresses) { - this.subAddresses = subAddresses; - } - - public Address getSubAddresses(int i) { - return this.subAddresses[i]; - } - - public void setSubAddresses(int i, Address _value) { - this.subAddresses[i] = _value; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof WrongAddress)) { - return false; - } else { - WrongAddress other = (WrongAddress)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && (this.errorInfo == null && other.getErrorInfo() == null || this.errorInfo != null && this.errorInfo.equals(other.getErrorInfo())) && this.errorType == other.getErrorType() && (this.forbiddenChannels == null && other.getForbiddenChannels() == null || this.forbiddenChannels != null && Arrays.equals(this.forbiddenChannels, other.getForbiddenChannels())) && (this.subAddresses == null && other.getSubAddresses() == null || this.subAddresses != null && Arrays.equals(this.subAddresses, other.getSubAddresses())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getAddress() != null) { - _hashCode += this.getAddress().hashCode(); - } - - if (this.getErrorInfo() != null) { - _hashCode += this.getErrorInfo().hashCode(); - } - - _hashCode += this.getErrorType(); - int i; - Object obj; - if (this.getForbiddenChannels() != null) { - for(i = 0; i < Array.getLength(this.getForbiddenChannels()); ++i) { - obj = Array.get(this.getForbiddenChannels(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - if (this.getSubAddresses() != null) { - for(i = 0; i < Array.getLength(this.getSubAddresses()); ++i) { - obj = Array.get(this.getSubAddresses(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://serv.ucp.sudytech.com/", "wrongAddress")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("address"); - elemField.setXmlName(new QName("", "address")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("errorInfo"); - elemField.setXmlName(new QName("", "errorInfo")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("errorType"); - elemField.setXmlName(new QName("", "errorType")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("forbiddenChannels"); - elemField.setXmlName(new QName("", "forbiddenChannels")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "channel")); - elemField.setMinOccurs(0); - elemField.setNillable(true); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("subAddresses"); - elemField.setXmlName(new QName("", "subAddresses")); - elemField.setXmlType(new QName("http://serv.ucp.sudytech.com/", "address")); - elemField.setMinOccurs(0); - elemField.setNillable(true); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/MessageService.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/MessageService.java deleted file mode 100644 index f22bd68..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/MessageService.java +++ /dev/null @@ -1,38 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws; - -import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg.UcpMessage; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg.UcpMessageService_PortType; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg.UcpMessageService_Service; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg.UcpMessageService_ServiceLocator; - -import java.net.URL; - -public class MessageService { - private String url; - - public MessageService(String url) { - this.url = url; - } - - public UcpMessageService_PortType loadMessageServiceClient() throws Exception { - UcpMessageService_Service service = new UcpMessageService_ServiceLocator(); - return service.getUcpMessageServicePort(new URL(this.url)); - } - - public int findUnreadMessageCount(String loginName) throws Exception { - return this.loadMessageServiceClient().findUnreadMessageCount(loginName); - } - - public UcpMessage[] findUnreadMessages(String loginName) throws Exception { - return this.loadMessageServiceClient().findUnreadMessages(loginName, -1, -1); - } - - public UcpMessage[] findUnreadMessages(String loginName, int beginIndex, int count) throws Exception { - return this.loadMessageServiceClient().findUnreadMessages(loginName, beginIndex, count); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender.java deleted file mode 100644 index ec48f93..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender.java +++ /dev/null @@ -1,46 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws; - -import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.SmsService_PortType; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.SmsService_Service; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.SmsService_ServiceLocator; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.DeliverState; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageState; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.SendResult; - -import java.net.URL; - -public class SmsMessageSender { - private String url; - - public SmsMessageSender(String path, String url) { - this.url = url; - System.setProperty("javax.net.ssl.keyStore", path); - System.setProperty("javax.net.ssl.keyStorePassword", "changeit"); - System.setProperty("javax.net.ssl.keyStoreType", "PKCS12"); - } - - private SmsService_PortType loadSmsClient() throws Exception { - SmsService_Service service = new SmsService_ServiceLocator(); - return service.getSmsServicePort(new URL(this.url)); - } - - public SendResult send(String context, String[] phones) throws Exception { - SmsService_PortType client = this.loadSmsClient(); - return client.sendSmsMessage(context, phones); - } - - public DeliverState[] findSmsMessageDelivers(String messageId) throws Exception { - SmsService_PortType client = this.loadSmsClient(); - return client.findSmsMessageDelivers(messageId); - } - - public MessageState[] findSmsMessageStates(String messageId) throws Exception { - SmsService_PortType client = this.loadSmsClient(); - return client.findSmsMessageStates(messageId); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender1.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender1.java deleted file mode 100644 index 3dfbfda..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/SmsMessageSender1.java +++ /dev/null @@ -1,48 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws; - - -import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one.SmsService1_PortType; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one.SmsService1_Service; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one.SmsService1_ServiceLocator; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.DeliverState; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageState; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.SendResult; - -import java.net.URL; - -public class SmsMessageSender1 { - private String url; - private String username; - private String password; - - public SmsMessageSender1(String url, String username, String password) { - this.url = url; - this.username = username; - this.password = password; - } - - private SmsService1_PortType loadSmsClient() throws Exception { - SmsService1_Service service = new SmsService1_ServiceLocator(); - return service.getSmsService1Port(new URL(this.url)); - } - - public SendResult send(String context, String[] phones) throws Exception { - SmsService1_PortType client = this.loadSmsClient(); - return client.sendSmsMessage(context, phones, this.username, this.password); - } - - public DeliverState[] findSmsMessageDelivers(String messageId) throws Exception { - SmsService1_PortType client = this.loadSmsClient(); - return client.findSmsMessageDelivers(messageId, this.username, this.password); - } - - public MessageState[] findSmsMessageStates(String messageId) throws Exception { - SmsService1_PortType client = this.loadSmsClient(); - return client.findSmsMessageStates(messageId, this.username, this.password); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsServicePortBindingStub.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsServicePortBindingStub.java deleted file mode 100644 index 53e692a..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsServicePortBindingStub.java +++ /dev/null @@ -1,350 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client; - -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.*; -import org.apache.axis.AxisFault; -import org.apache.axis.NoEndPointException; -import org.apache.axis.client.Call; -import org.apache.axis.client.Stub; -import org.apache.axis.constants.Style; -import org.apache.axis.constants.Use; -import org.apache.axis.description.FaultDesc; -import org.apache.axis.description.OperationDesc; -import org.apache.axis.description.ParameterDesc; -import org.apache.axis.encoding.DeserializerFactory; -import org.apache.axis.encoding.ser.*; -import org.apache.axis.soap.SOAPConstants; -import org.apache.axis.utils.JavaUtils; - -import javax.xml.namespace.QName; -import javax.xml.rpc.Service; -import javax.xml.rpc.encoding.SerializerFactory; -import java.net.URL; -import java.rmi.RemoteException; -import java.util.Enumeration; -import java.util.Vector; - -public class SmsServicePortBindingStub extends Stub implements SmsService_PortType { - private Vector cachedSerClasses; - private Vector cachedSerQNames; - private Vector cachedSerFactories; - private Vector cachedDeserFactories; - static OperationDesc[] _operations = new OperationDesc[3]; - - private static void _initOperationDesc1() { - OperationDesc oper = new OperationDesc(); - oper.setName("findSmsMessageDelivers"); - ParameterDesc param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "deliverState")); - oper.setReturnClass(DeliverState[].class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true)); - _operations[0] = oper; - oper = new OperationDesc(); - oper.setName("sendSmsMessage"); - param = new ParameterDesc(new QName("", "content"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "addresses"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String[].class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "sendResult")); - oper.setReturnClass(SendResult.class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true)); - _operations[1] = oper; - oper = new OperationDesc(); - oper.setName("findSmsMessageStates"); - param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "messageState")); - oper.setReturnClass(MessageState[].class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true)); - _operations[2] = oper; - } - - public SmsServicePortBindingStub() throws AxisFault { - this((Service)null); - } - - public SmsServicePortBindingStub(URL endpointURL, Service service) throws AxisFault { - this(service); - super.cachedEndpoint = endpointURL; - } - - public SmsServicePortBindingStub(Service service) throws AxisFault { - this.cachedSerClasses = new Vector(); - this.cachedSerQNames = new Vector(); - this.cachedSerFactories = new Vector(); - this.cachedDeserFactories = new Vector(); - if (service == null) { - super.service = new org.apache.axis.client.Service(); - } else { - super.service = service; - } - - ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); - Class beansf = BeanSerializerFactory.class; - Class beandf = BeanDeserializerFactory.class; - Class enumsf = EnumSerializerFactory.class; - Class enumdf = EnumDeserializerFactory.class; - Class arraysf = ArraySerializerFactory.class; - Class arraydf = ArrayDeserializerFactory.class; - Class simplesf = SimpleSerializerFactory.class; - Class simpledf = SimpleDeserializerFactory.class; - Class simplelistsf = SimpleListSerializerFactory.class; - Class simplelistdf = SimpleListDeserializerFactory.class; - QName qName = new QName("http://api.ws.ucp.sudytech.com/", ">>messageState>properties>entry"); - this.cachedSerQNames.add(qName); - Class cls = MessageStatePropertiesEntry.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", ">messageState>properties"); - this.cachedSerQNames.add(qName); - cls = MessageStateProperties.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", "deliverState"); - this.cachedSerQNames.add(qName); - cls = DeliverState.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", "MessageException"); - this.cachedSerQNames.add(qName); - cls = MessageException.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", "messageState"); - this.cachedSerQNames.add(qName); - cls = MessageState.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", "sendResult"); - this.cachedSerQNames.add(qName); - cls = SendResult.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", "wrongAddress"); - this.cachedSerQNames.add(qName); - cls = WrongAddress.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - } - - protected Call createCall() throws RemoteException { - try { - Call _call = super._createCall(); - if (super.maintainSessionSet) { - _call.setMaintainSession(super.maintainSession); - } - - if (super.cachedUsername != null) { - _call.setUsername(super.cachedUsername); - } - - if (super.cachedPassword != null) { - _call.setPassword(super.cachedPassword); - } - - if (super.cachedEndpoint != null) { - _call.setTargetEndpointAddress(super.cachedEndpoint); - } - - if (super.cachedTimeout != null) { - _call.setTimeout(super.cachedTimeout); - } - - if (super.cachedPortName != null) { - _call.setPortName(super.cachedPortName); - } - - Enumeration keys = super.cachedProperties.keys(); - - while(keys.hasMoreElements()) { - String key = (String)keys.nextElement(); - _call.setProperty(key, super.cachedProperties.get(key)); - } - - synchronized(this) { - if (this.firstCall()) { - _call.setEncodingStyle((String)null); - - for(int i = 0; i < this.cachedSerFactories.size(); ++i) { - Class cls = (Class)this.cachedSerClasses.get(i); - QName qName = (QName)this.cachedSerQNames.get(i); - Object x = this.cachedSerFactories.get(i); - if (x instanceof Class) { - Class sf = (Class)this.cachedSerFactories.get(i); - Class df = (Class)this.cachedDeserFactories.get(i); - _call.registerTypeMapping(cls, qName, sf, df, false); - } else if (x instanceof SerializerFactory) { - org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)this.cachedSerFactories.get(i); - DeserializerFactory df = (DeserializerFactory)this.cachedDeserFactories.get(i); - _call.registerTypeMapping(cls, qName, sf, df, false); - } - } - } - } - - return _call; - } catch (Throwable var12) { - throw new AxisFault("Failure trying to get the Call object", var12); - } - } - - public DeliverState[] findSmsMessageDelivers(String messageId) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[0]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findSmsMessageDelivers")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (DeliverState[])((DeliverState[])_resp); - } catch (Exception var5) { - return (DeliverState[])((DeliverState[])JavaUtils.convert(_resp, DeliverState[].class)); - } - } - } catch (AxisFault var6) { - if (var6.detail != null) { - if (var6.detail instanceof RemoteException) { - throw (RemoteException)var6.detail; - } - - if (var6.detail instanceof MessageException) { - throw (MessageException)var6.detail; - } - } - - throw var6; - } - } - } - - public SendResult sendSmsMessage(String content, String[] addresses) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[1]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "sendSmsMessage")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{content, addresses}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (SendResult)_resp; - } catch (Exception var6) { - return (SendResult)JavaUtils.convert(_resp, SendResult.class); - } - } - } catch (AxisFault var7) { - if (var7.detail != null) { - if (var7.detail instanceof RemoteException) { - throw (RemoteException)var7.detail; - } - - if (var7.detail instanceof MessageException) { - throw (MessageException)var7.detail; - } - } - - throw var7; - } - } - } - - public MessageState[] findSmsMessageStates(String messageId) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[2]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findSmsMessageStates")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (MessageState[])((MessageState[])_resp); - } catch (Exception var5) { - return (MessageState[])((MessageState[])JavaUtils.convert(_resp, MessageState[].class)); - } - } - } catch (AxisFault var6) { - if (var6.detail != null) { - if (var6.detail instanceof RemoteException) { - throw (RemoteException)var6.detail; - } - - if (var6.detail instanceof MessageException) { - throw (MessageException)var6.detail; - } - } - - throw var6; - } - } - } - - static { - _initOperationDesc1(); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_PortType.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_PortType.java deleted file mode 100644 index 4d867f0..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_PortType.java +++ /dev/null @@ -1,22 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client; - -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.DeliverState; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageException; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageState; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.SendResult; - -import java.rmi.Remote; -import java.rmi.RemoteException; - -public interface SmsService_PortType extends Remote { - DeliverState[] findSmsMessageDelivers(String var1) throws RemoteException, MessageException; - - SendResult sendSmsMessage(String var1, String[] var2) throws RemoteException, MessageException; - - MessageState[] findSmsMessageStates(String var1) throws RemoteException, MessageException; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_Service.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_Service.java deleted file mode 100644 index fad577e..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_Service.java +++ /dev/null @@ -1,18 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client; - -import javax.xml.rpc.Service; -import javax.xml.rpc.ServiceException; -import java.net.URL; - -public interface SmsService_Service extends Service { - String getSmsServicePortAddress(); - - SmsService_PortType getSmsServicePort() throws ServiceException; - - SmsService_PortType getSmsServicePort(URL var1) throws ServiceException; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_ServiceLocator.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_ServiceLocator.java deleted file mode 100644 index 8f5a09c..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/SmsService_ServiceLocator.java +++ /dev/null @@ -1,127 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client; - -import org.apache.axis.AxisFault; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.client.Service; -import org.apache.axis.client.Stub; - -import javax.xml.namespace.QName; -import javax.xml.rpc.ServiceException; -import java.net.MalformedURLException; -import java.net.URL; -import java.rmi.Remote; -import java.util.HashSet; -import java.util.Iterator; - -public class SmsService_ServiceLocator extends Service implements SmsService_Service { - private String SmsServicePort_address = "http://172.18.10.32:8181/SmsService"; - private String SmsServicePortWSDDServiceName = "SmsServicePort"; - private HashSet ports = null; - - public SmsService_ServiceLocator() { - } - - public SmsService_ServiceLocator(EngineConfiguration config) { - super(config); - } - - public SmsService_ServiceLocator(String wsdlLoc, QName sName) throws ServiceException { - super(wsdlLoc, sName); - } - - public String getSmsServicePortAddress() { - return this.SmsServicePort_address; - } - - public String getSmsServicePortWSDDServiceName() { - return this.SmsServicePortWSDDServiceName; - } - - public void setSmsServicePortWSDDServiceName(String name) { - this.SmsServicePortWSDDServiceName = name; - } - - public SmsService_PortType getSmsServicePort() throws ServiceException { - URL endpoint; - try { - endpoint = new URL(this.SmsServicePort_address); - } catch (MalformedURLException var3) { - throw new ServiceException(var3); - } - - return this.getSmsServicePort(endpoint); - } - - public SmsService_PortType getSmsServicePort(URL portAddress) throws ServiceException { - try { - SmsServicePortBindingStub _stub = new SmsServicePortBindingStub(portAddress, this); - _stub.setPortName(this.getSmsServicePortWSDDServiceName()); - return _stub; - } catch (AxisFault var3) { - return null; - } - } - - public void setSmsServicePortEndpointAddress(String address) { - this.SmsServicePort_address = address; - } - - public Remote getPort(Class serviceEndpointInterface) throws ServiceException { - try { - if (SmsService_PortType.class.isAssignableFrom(serviceEndpointInterface)) { - SmsServicePortBindingStub _stub = new SmsServicePortBindingStub(new URL(this.SmsServicePort_address), this); - _stub.setPortName(this.getSmsServicePortWSDDServiceName()); - return _stub; - } - } catch (Throwable var3) { - throw new ServiceException(var3); - } - - throw new ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); - } - - public Remote getPort(QName portName, Class serviceEndpointInterface) throws ServiceException { - if (portName == null) { - return this.getPort(serviceEndpointInterface); - } else { - String inputPortName = portName.getLocalPart(); - if ("SmsServicePort".equals(inputPortName)) { - return this.getSmsServicePort(); - } else { - Remote _stub = this.getPort(serviceEndpointInterface); - ((Stub)_stub).setPortName(portName); - return _stub; - } - } - } - - public QName getServiceName() { - return new QName("http://api.ws.ucp.sudytech.com/", "SmsService"); - } - - public Iterator getPorts() { - if (this.ports == null) { - this.ports = new HashSet(); - this.ports.add(new QName("http://api.ws.ucp.sudytech.com/", "SmsServicePort")); - } - - return this.ports.iterator(); - } - - public void setEndpointAddress(String portName, String address) throws ServiceException { - if ("SmsServicePort".equals(portName)) { - this.setSmsServicePortEndpointAddress(address); - } else { - throw new ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - - public void setEndpointAddress(QName portName, String address) throws ServiceException { - this.setEndpointAddress(portName.getLocalPart(), address); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessage.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessage.java deleted file mode 100644 index 2b0534e..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessage.java +++ /dev/null @@ -1,217 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.lang.reflect.Array; -import java.util.Arrays; - -public class UcpMessage implements Serializable { - private String content; - private String createTime; - private String id; - private String[] properties; - private String sender; - private String subject; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(UcpMessage.class, true); - - public UcpMessage() { - } - - public UcpMessage(String content, String createTime, String id, String[] properties, String sender, String subject) { - this.content = content; - this.createTime = createTime; - this.id = id; - this.properties = properties; - this.sender = sender; - this.subject = subject; - } - - public String getContent() { - return this.content; - } - - public void setContent(String content) { - this.content = content; - } - - public String getCreateTime() { - return this.createTime; - } - - public void setCreateTime(String createTime) { - this.createTime = createTime; - } - - public String getId() { - return this.id; - } - - public void setId(String id) { - this.id = id; - } - - public String[] getProperties() { - return this.properties; - } - - public void setProperties(String[] properties) { - this.properties = properties; - } - - public String getProperties(int i) { - return this.properties[i]; - } - - public void setProperties(int i, String _value) { - this.properties[i] = _value; - } - - public String getSender() { - return this.sender; - } - - public void setSender(String sender) { - this.sender = sender; - } - - public String getSubject() { - return this.subject; - } - - public void setSubject(String subject) { - this.subject = subject; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof UcpMessage)) { - return false; - } else { - UcpMessage other = (UcpMessage)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.content == null && other.getContent() == null || this.content != null && this.content.equals(other.getContent())) && (this.createTime == null && other.getCreateTime() == null || this.createTime != null && this.createTime.equals(other.getCreateTime())) && (this.id == null && other.getId() == null || this.id != null && this.id.equals(other.getId())) && (this.properties == null && other.getProperties() == null || this.properties != null && Arrays.equals(this.properties, other.getProperties())) && (this.sender == null && other.getSender() == null || this.sender != null && this.sender.equals(other.getSender())) && (this.subject == null && other.getSubject() == null || this.subject != null && this.subject.equals(other.getSubject())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getContent() != null) { - _hashCode += this.getContent().hashCode(); - } - - if (this.getCreateTime() != null) { - _hashCode += this.getCreateTime().hashCode(); - } - - if (this.getId() != null) { - _hashCode += this.getId().hashCode(); - } - - if (this.getProperties() != null) { - for(int i = 0; i < Array.getLength(this.getProperties()); ++i) { - Object obj = Array.get(this.getProperties(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - if (this.getSender() != null) { - _hashCode += this.getSender().hashCode(); - } - - if (this.getSubject() != null) { - _hashCode += this.getSubject().hashCode(); - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "ucpMessage")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("content"); - elemField.setXmlName(new QName("", "content")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("createTime"); - elemField.setXmlName(new QName("", "createTime")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("id"); - elemField.setXmlName(new QName("", "id")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("properties"); - elemField.setXmlName(new QName("", "properties")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(true); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("sender"); - elemField.setXmlName(new QName("", "sender")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("subject"); - elemField.setXmlName(new QName("", "subject")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageServicePortBindingStub.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageServicePortBindingStub.java deleted file mode 100644 index 26da6e2..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageServicePortBindingStub.java +++ /dev/null @@ -1,236 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg; - -import org.apache.axis.AxisFault; -import org.apache.axis.NoEndPointException; -import org.apache.axis.client.Call; -import org.apache.axis.client.Stub; -import org.apache.axis.constants.Style; -import org.apache.axis.constants.Use; -import org.apache.axis.description.OperationDesc; -import org.apache.axis.description.ParameterDesc; -import org.apache.axis.encoding.DeserializerFactory; -import org.apache.axis.encoding.ser.*; -import org.apache.axis.soap.SOAPConstants; -import org.apache.axis.utils.JavaUtils; - -import javax.xml.namespace.QName; -import javax.xml.rpc.Service; -import javax.xml.rpc.encoding.SerializerFactory; -import java.net.URL; -import java.rmi.RemoteException; -import java.util.Enumeration; -import java.util.Vector; - -public class UcpMessageServicePortBindingStub extends Stub implements UcpMessageService_PortType { - private Vector cachedSerClasses; - private Vector cachedSerQNames; - private Vector cachedSerFactories; - private Vector cachedDeserFactories; - static OperationDesc[] _operations = new OperationDesc[2]; - - private static void _initOperationDesc1() { - OperationDesc oper = new OperationDesc(); - oper.setName("findUnreadMessageCount"); - ParameterDesc param = new ParameterDesc(new QName("", "arg0"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - oper.setReturnClass(Integer.TYPE); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - _operations[0] = oper; - oper = new OperationDesc(); - oper.setName("findUnreadMessages"); - param = new ParameterDesc(new QName("", "arg0"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "arg1"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "arg2"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "int"), Integer.TYPE, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "ucpMessage")); - oper.setReturnClass(UcpMessage[].class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - _operations[1] = oper; - } - - public UcpMessageServicePortBindingStub() throws AxisFault { - this((Service)null); - } - - public UcpMessageServicePortBindingStub(URL endpointURL, Service service) throws AxisFault { - this(service); - super.cachedEndpoint = endpointURL; - } - - public UcpMessageServicePortBindingStub(Service service) throws AxisFault { - this.cachedSerClasses = new Vector(); - this.cachedSerQNames = new Vector(); - this.cachedSerFactories = new Vector(); - this.cachedDeserFactories = new Vector(); - if (service == null) { - super.service = new org.apache.axis.client.Service(); - } else { - super.service = service; - } - - ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); - Class beansf = BeanSerializerFactory.class; - Class beandf = BeanDeserializerFactory.class; - Class enumsf = EnumSerializerFactory.class; - Class enumdf = EnumDeserializerFactory.class; - Class arraysf = ArraySerializerFactory.class; - Class arraydf = ArrayDeserializerFactory.class; - Class simplesf = SimpleSerializerFactory.class; - Class simpledf = SimpleDeserializerFactory.class; - Class simplelistsf = SimpleListSerializerFactory.class; - Class simplelistdf = SimpleListDeserializerFactory.class; - QName qName = new QName("http://api.ws.ucp.sudytech.com/", "ucpMessage"); - this.cachedSerQNames.add(qName); - Class cls = UcpMessage.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - } - - protected Call createCall() throws RemoteException { - try { - Call _call = super._createCall(); - if (super.maintainSessionSet) { - _call.setMaintainSession(super.maintainSession); - } - - if (super.cachedUsername != null) { - _call.setUsername(super.cachedUsername); - } - - if (super.cachedPassword != null) { - _call.setPassword(super.cachedPassword); - } - - if (super.cachedEndpoint != null) { - _call.setTargetEndpointAddress(super.cachedEndpoint); - } - - if (super.cachedTimeout != null) { - _call.setTimeout(super.cachedTimeout); - } - - if (super.cachedPortName != null) { - _call.setPortName(super.cachedPortName); - } - - Enumeration keys = super.cachedProperties.keys(); - - while(keys.hasMoreElements()) { - String key = (String)keys.nextElement(); - _call.setProperty(key, super.cachedProperties.get(key)); - } - - synchronized(this) { - if (this.firstCall()) { - _call.setEncodingStyle((String)null); - - for(int i = 0; i < this.cachedSerFactories.size(); ++i) { - Class cls = (Class)this.cachedSerClasses.get(i); - QName qName = (QName)this.cachedSerQNames.get(i); - Object x = this.cachedSerFactories.get(i); - if (x instanceof Class) { - Class sf = (Class)this.cachedSerFactories.get(i); - Class df = (Class)this.cachedDeserFactories.get(i); - _call.registerTypeMapping(cls, qName, sf, df, false); - } else if (x instanceof SerializerFactory) { - org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)this.cachedSerFactories.get(i); - DeserializerFactory df = (DeserializerFactory)this.cachedDeserFactories.get(i); - _call.registerTypeMapping(cls, qName, sf, df, false); - } - } - } - } - - return _call; - } catch (Throwable var12) { - throw new AxisFault("Failure trying to get the Call object", var12); - } - } - - public int findUnreadMessageCount(String arg0) throws RemoteException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[0]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findUnreadMessageCount")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{arg0}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (Integer)_resp; - } catch (Exception var5) { - return (Integer)JavaUtils.convert(_resp, Integer.TYPE); - } - } - } catch (AxisFault var6) { - throw var6; - } - } - } - - public UcpMessage[] findUnreadMessages(String arg0, int arg1, int arg2) throws RemoteException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[1]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findUnreadMessages")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{arg0, new Integer(arg1), new Integer(arg2)}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (UcpMessage[])((UcpMessage[])_resp); - } catch (Exception var7) { - return (UcpMessage[])((UcpMessage[])JavaUtils.convert(_resp, UcpMessage[].class)); - } - } - } catch (AxisFault var8) { - throw var8; - } - } - } - - static { - _initOperationDesc1(); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_PortType.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_PortType.java deleted file mode 100644 index 54856c6..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_PortType.java +++ /dev/null @@ -1,15 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg; - -import java.rmi.Remote; -import java.rmi.RemoteException; - -public interface UcpMessageService_PortType extends Remote { - int findUnreadMessageCount(String var1) throws RemoteException; - - UcpMessage[] findUnreadMessages(String var1, int var2, int var3) throws RemoteException; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_Service.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_Service.java deleted file mode 100644 index 50f58bb..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_Service.java +++ /dev/null @@ -1,18 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg; - -import javax.xml.rpc.Service; -import javax.xml.rpc.ServiceException; -import java.net.URL; - -public interface UcpMessageService_Service extends Service { - String getUcpMessageServicePortAddress(); - - UcpMessageService_PortType getUcpMessageServicePort() throws ServiceException; - - UcpMessageService_PortType getUcpMessageServicePort(URL var1) throws ServiceException; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_ServiceLocator.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_ServiceLocator.java deleted file mode 100644 index e62427f..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/msg/UcpMessageService_ServiceLocator.java +++ /dev/null @@ -1,127 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.msg; - -import org.apache.axis.AxisFault; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.client.Service; -import org.apache.axis.client.Stub; - -import javax.xml.namespace.QName; -import javax.xml.rpc.ServiceException; -import java.net.MalformedURLException; -import java.net.URL; -import java.rmi.Remote; -import java.util.HashSet; -import java.util.Iterator; - -public class UcpMessageService_ServiceLocator extends Service implements UcpMessageService_Service { - private String UcpMessageServicePort_address = "http://172.18.10.141:83/UcpMessageService"; - private String UcpMessageServicePortWSDDServiceName = "UcpMessageServicePort"; - private HashSet ports = null; - - public UcpMessageService_ServiceLocator() { - } - - public UcpMessageService_ServiceLocator(EngineConfiguration config) { - super(config); - } - - public UcpMessageService_ServiceLocator(String wsdlLoc, QName sName) throws ServiceException { - super(wsdlLoc, sName); - } - - public String getUcpMessageServicePortAddress() { - return this.UcpMessageServicePort_address; - } - - public String getUcpMessageServicePortWSDDServiceName() { - return this.UcpMessageServicePortWSDDServiceName; - } - - public void setUcpMessageServicePortWSDDServiceName(String name) { - this.UcpMessageServicePortWSDDServiceName = name; - } - - public UcpMessageService_PortType getUcpMessageServicePort() throws ServiceException { - URL endpoint; - try { - endpoint = new URL(this.UcpMessageServicePort_address); - } catch (MalformedURLException var3) { - throw new ServiceException(var3); - } - - return this.getUcpMessageServicePort(endpoint); - } - - public UcpMessageService_PortType getUcpMessageServicePort(URL portAddress) throws ServiceException { - try { - UcpMessageServicePortBindingStub _stub = new UcpMessageServicePortBindingStub(portAddress, this); - _stub.setPortName(this.getUcpMessageServicePortWSDDServiceName()); - return _stub; - } catch (AxisFault var3) { - return null; - } - } - - public void setUcpMessageServicePortEndpointAddress(String address) { - this.UcpMessageServicePort_address = address; - } - - public Remote getPort(Class serviceEndpointInterface) throws ServiceException { - try { - if (UcpMessageService_PortType.class.isAssignableFrom(serviceEndpointInterface)) { - UcpMessageServicePortBindingStub _stub = new UcpMessageServicePortBindingStub(new URL(this.UcpMessageServicePort_address), this); - _stub.setPortName(this.getUcpMessageServicePortWSDDServiceName()); - return _stub; - } - } catch (Throwable var3) { - throw new ServiceException(var3); - } - - throw new ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); - } - - public Remote getPort(QName portName, Class serviceEndpointInterface) throws ServiceException { - if (portName == null) { - return this.getPort(serviceEndpointInterface); - } else { - String inputPortName = portName.getLocalPart(); - if ("UcpMessageServicePort".equals(inputPortName)) { - return this.getUcpMessageServicePort(); - } else { - Remote _stub = this.getPort(serviceEndpointInterface); - ((Stub)_stub).setPortName(portName); - return _stub; - } - } - } - - public QName getServiceName() { - return new QName("http://api.ws.ucp.sudytech.com/", "UcpMessageService"); - } - - public Iterator getPorts() { - if (this.ports == null) { - this.ports = new HashSet(); - this.ports.add(new QName("http://api.ws.ucp.sudytech.com/", "UcpMessageServicePort")); - } - - return this.ports.iterator(); - } - - public void setEndpointAddress(String portName, String address) throws ServiceException { - if ("UcpMessageServicePort".equals(portName)) { - this.setUcpMessageServicePortEndpointAddress(address); - } else { - throw new ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - - public void setEndpointAddress(QName portName, String address) throws ServiceException { - this.setEndpointAddress(portName.getLocalPart(), address); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1PortBindingStub.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1PortBindingStub.java deleted file mode 100644 index b673a60..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1PortBindingStub.java +++ /dev/null @@ -1,362 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one; - -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.*; -import org.apache.axis.AxisFault; -import org.apache.axis.NoEndPointException; -import org.apache.axis.client.Call; -import org.apache.axis.client.Stub; -import org.apache.axis.constants.Style; -import org.apache.axis.constants.Use; -import org.apache.axis.description.FaultDesc; -import org.apache.axis.description.OperationDesc; -import org.apache.axis.description.ParameterDesc; -import org.apache.axis.encoding.DeserializerFactory; -import org.apache.axis.encoding.ser.*; -import org.apache.axis.soap.SOAPConstants; -import org.apache.axis.utils.JavaUtils; - -import javax.xml.namespace.QName; -import javax.xml.rpc.Service; -import javax.xml.rpc.encoding.SerializerFactory; -import java.net.URL; -import java.rmi.RemoteException; -import java.util.Enumeration; -import java.util.Vector; - -public class SmsService1PortBindingStub extends Stub implements SmsService1_PortType { - private Vector cachedSerClasses; - private Vector cachedSerQNames; - private Vector cachedSerFactories; - private Vector cachedDeserFactories; - static OperationDesc[] _operations = new OperationDesc[3]; - - private static void _initOperationDesc1() { - OperationDesc oper = new OperationDesc(); - oper.setName("findSmsMessageDelivers"); - ParameterDesc param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "username"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "password"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "deliverState")); - oper.setReturnClass(DeliverState[].class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true)); - _operations[0] = oper; - oper = new OperationDesc(); - oper.setName("sendSmsMessage"); - param = new ParameterDesc(new QName("", "content"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "addresses"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String[].class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "username"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "password"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "sendResult")); - oper.setReturnClass(SendResult.class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true)); - _operations[1] = oper; - oper = new OperationDesc(); - oper.setName("findSmsMessageStates"); - param = new ParameterDesc(new QName("", "messageId"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "username"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - param = new ParameterDesc(new QName("", "password"), (byte)1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); - oper.addParameter(param); - oper.setReturnType(new QName("http://api.ws.ucp.sudytech.com/", "messageState")); - oper.setReturnClass(MessageState[].class); - oper.setReturnQName(new QName("", "return")); - oper.setStyle(Style.WRAPPED); - oper.setUse(Use.LITERAL); - oper.addFault(new FaultDesc(new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), "com.sudytech.ucp.ws.om.MessageException", new QName("http://api.ws.ucp.sudytech.com/", "MessageException"), true)); - _operations[2] = oper; - } - - public SmsService1PortBindingStub() throws AxisFault { - this((Service)null); - } - - public SmsService1PortBindingStub(URL endpointURL, Service service) throws AxisFault { - this(service); - super.cachedEndpoint = endpointURL; - } - - public SmsService1PortBindingStub(Service service) throws AxisFault { - this.cachedSerClasses = new Vector(); - this.cachedSerQNames = new Vector(); - this.cachedSerFactories = new Vector(); - this.cachedDeserFactories = new Vector(); - if (service == null) { - super.service = new org.apache.axis.client.Service(); - } else { - super.service = service; - } - - ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); - Class beansf = BeanSerializerFactory.class; - Class beandf = BeanDeserializerFactory.class; - Class enumsf = EnumSerializerFactory.class; - Class enumdf = EnumDeserializerFactory.class; - Class arraysf = ArraySerializerFactory.class; - Class arraydf = ArrayDeserializerFactory.class; - Class simplesf = SimpleSerializerFactory.class; - Class simpledf = SimpleDeserializerFactory.class; - Class simplelistsf = SimpleListSerializerFactory.class; - Class simplelistdf = SimpleListDeserializerFactory.class; - QName qName = new QName("http://api.ws.ucp.sudytech.com/", ">>messageState>properties>entry"); - this.cachedSerQNames.add(qName); - Class cls = MessageStatePropertiesEntry.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", ">messageState>properties"); - this.cachedSerQNames.add(qName); - cls = MessageStateProperties.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", "deliverState"); - this.cachedSerQNames.add(qName); - cls = DeliverState.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", "MessageException"); - this.cachedSerQNames.add(qName); - cls = MessageException.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", "messageState"); - this.cachedSerQNames.add(qName); - cls = MessageState.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", "sendResult"); - this.cachedSerQNames.add(qName); - cls = SendResult.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - qName = new QName("http://api.ws.ucp.sudytech.com/", "wrongAddress"); - this.cachedSerQNames.add(qName); - cls = WrongAddress.class; - this.cachedSerClasses.add(cls); - this.cachedSerFactories.add(beansf); - this.cachedDeserFactories.add(beandf); - } - - protected Call createCall() throws RemoteException { - try { - Call _call = super._createCall(); - if (super.maintainSessionSet) { - _call.setMaintainSession(super.maintainSession); - } - - if (super.cachedUsername != null) { - _call.setUsername(super.cachedUsername); - } - - if (super.cachedPassword != null) { - _call.setPassword(super.cachedPassword); - } - - if (super.cachedEndpoint != null) { - _call.setTargetEndpointAddress(super.cachedEndpoint); - } - - if (super.cachedTimeout != null) { - _call.setTimeout(super.cachedTimeout); - } - - if (super.cachedPortName != null) { - _call.setPortName(super.cachedPortName); - } - - Enumeration keys = super.cachedProperties.keys(); - - while(keys.hasMoreElements()) { - String key = (String)keys.nextElement(); - _call.setProperty(key, super.cachedProperties.get(key)); - } - - synchronized(this) { - if (this.firstCall()) { - _call.setEncodingStyle((String)null); - - for(int i = 0; i < this.cachedSerFactories.size(); ++i) { - Class cls = (Class)this.cachedSerClasses.get(i); - QName qName = (QName)this.cachedSerQNames.get(i); - Object x = this.cachedSerFactories.get(i); - if (x instanceof Class) { - Class sf = (Class)this.cachedSerFactories.get(i); - Class df = (Class)this.cachedDeserFactories.get(i); - _call.registerTypeMapping(cls, qName, sf, df, false); - } else if (x instanceof SerializerFactory) { - org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)this.cachedSerFactories.get(i); - DeserializerFactory df = (DeserializerFactory)this.cachedDeserFactories.get(i); - _call.registerTypeMapping(cls, qName, sf, df, false); - } - } - } - } - - return _call; - } catch (Throwable var12) { - throw new AxisFault("Failure trying to get the Call object", var12); - } - } - - public DeliverState[] findSmsMessageDelivers(String messageId, String username, String password) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[0]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findSmsMessageDelivers")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, username, password}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (DeliverState[])((DeliverState[])_resp); - } catch (Exception var7) { - return (DeliverState[])((DeliverState[])JavaUtils.convert(_resp, DeliverState[].class)); - } - } - } catch (AxisFault var8) { - if (var8.detail != null) { - if (var8.detail instanceof RemoteException) { - throw (RemoteException)var8.detail; - } - - if (var8.detail instanceof MessageException) { - throw (MessageException)var8.detail; - } - } - - throw var8; - } - } - } - - public SendResult sendSmsMessage(String content, String[] addresses, String username, String password) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[1]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "sendSmsMessage")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{content, addresses, username, password}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (SendResult)_resp; - } catch (Exception var8) { - return (SendResult)JavaUtils.convert(_resp, SendResult.class); - } - } - } catch (AxisFault var9) { - if (var9.detail != null) { - if (var9.detail instanceof RemoteException) { - throw (RemoteException)var9.detail; - } - - if (var9.detail instanceof MessageException) { - throw (MessageException)var9.detail; - } - } - - throw var9; - } - } - } - - public MessageState[] findSmsMessageStates(String messageId, String username, String password) throws RemoteException, MessageException { - if (super.cachedEndpoint == null) { - throw new NoEndPointException(); - } else { - Call _call = this.createCall(); - _call.setOperation(_operations[2]); - _call.setUseSOAPAction(true); - _call.setSOAPActionURI(""); - _call.setEncodingStyle((String)null); - _call.setProperty("sendXsiTypes", Boolean.FALSE); - _call.setProperty("sendMultiRefs", Boolean.FALSE); - _call.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS); - _call.setOperationName(new QName("http://api.ws.ucp.sudytech.com/", "findSmsMessageStates")); - this.setRequestHeaders(_call); - this.setAttachments(_call); - - try { - Object _resp = _call.invoke(new Object[]{messageId, username, password}); - if (_resp instanceof RemoteException) { - throw (RemoteException)_resp; - } else { - this.extractAttachments(_call); - - try { - return (MessageState[])((MessageState[])_resp); - } catch (Exception var7) { - return (MessageState[])((MessageState[])JavaUtils.convert(_resp, MessageState[].class)); - } - } - } catch (AxisFault var8) { - if (var8.detail != null) { - if (var8.detail instanceof RemoteException) { - throw (RemoteException)var8.detail; - } - - if (var8.detail instanceof MessageException) { - throw (MessageException)var8.detail; - } - } - - throw var8; - } - } - } - - static { - _initOperationDesc1(); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_PortType.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_PortType.java deleted file mode 100644 index 2027ed3..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_PortType.java +++ /dev/null @@ -1,22 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one; - -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.DeliverState; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageException; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.MessageState; -import com.budwk.app.base.sms.impl.njupt.ucp.ws.om.SendResult; - -import java.rmi.Remote; -import java.rmi.RemoteException; - -public interface SmsService1_PortType extends Remote { - DeliverState[] findSmsMessageDelivers(String var1, String var2, String var3) throws RemoteException, MessageException; - - SendResult sendSmsMessage(String var1, String[] var2, String var3, String var4) throws RemoteException, MessageException; - - MessageState[] findSmsMessageStates(String var1, String var2, String var3) throws RemoteException, MessageException; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_Service.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_Service.java deleted file mode 100644 index 8517e19..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_Service.java +++ /dev/null @@ -1,18 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one; - -import javax.xml.rpc.Service; -import javax.xml.rpc.ServiceException; -import java.net.URL; - -public interface SmsService1_Service extends Service { - String getSmsService1PortAddress(); - - SmsService1_PortType getSmsService1Port() throws ServiceException; - - SmsService1_PortType getSmsService1Port(URL var1) throws ServiceException; -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_ServiceLocator.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_ServiceLocator.java deleted file mode 100644 index 1493dbc..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/client/one/SmsService1_ServiceLocator.java +++ /dev/null @@ -1,127 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.client.one; - -import org.apache.axis.AxisFault; -import org.apache.axis.EngineConfiguration; -import org.apache.axis.client.Service; -import org.apache.axis.client.Stub; - -import javax.xml.namespace.QName; -import javax.xml.rpc.ServiceException; -import java.net.MalformedURLException; -import java.net.URL; -import java.rmi.Remote; -import java.util.HashSet; -import java.util.Iterator; - -public class SmsService1_ServiceLocator extends Service implements SmsService1_Service { - private String SmsService1Port_address = "http://172.18.10.32:8181/SmsService1"; - private String SmsService1PortWSDDServiceName = "SmsService1Port"; - private HashSet ports = null; - - public SmsService1_ServiceLocator() { - } - - public SmsService1_ServiceLocator(EngineConfiguration config) { - super(config); - } - - public SmsService1_ServiceLocator(String wsdlLoc, QName sName) throws ServiceException { - super(wsdlLoc, sName); - } - - public String getSmsService1PortAddress() { - return this.SmsService1Port_address; - } - - public String getSmsService1PortWSDDServiceName() { - return this.SmsService1PortWSDDServiceName; - } - - public void setSmsService1PortWSDDServiceName(String name) { - this.SmsService1PortWSDDServiceName = name; - } - - public SmsService1_PortType getSmsService1Port() throws ServiceException { - URL endpoint; - try { - endpoint = new URL(this.SmsService1Port_address); - } catch (MalformedURLException var3) { - throw new ServiceException(var3); - } - - return this.getSmsService1Port(endpoint); - } - - public SmsService1_PortType getSmsService1Port(URL portAddress) throws ServiceException { - try { - SmsService1PortBindingStub _stub = new SmsService1PortBindingStub(portAddress, this); - _stub.setPortName(this.getSmsService1PortWSDDServiceName()); - return _stub; - } catch (AxisFault var3) { - return null; - } - } - - public void setSmsService1PortEndpointAddress(String address) { - this.SmsService1Port_address = address; - } - - public Remote getPort(Class serviceEndpointInterface) throws ServiceException { - try { - if (SmsService1_PortType.class.isAssignableFrom(serviceEndpointInterface)) { - SmsService1PortBindingStub _stub = new SmsService1PortBindingStub(new URL(this.SmsService1Port_address), this); - _stub.setPortName(this.getSmsService1PortWSDDServiceName()); - return _stub; - } - } catch (Throwable var3) { - throw new ServiceException(var3); - } - - throw new ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); - } - - public Remote getPort(QName portName, Class serviceEndpointInterface) throws ServiceException { - if (portName == null) { - return this.getPort(serviceEndpointInterface); - } else { - String inputPortName = portName.getLocalPart(); - if ("SmsService1Port".equals(inputPortName)) { - return this.getSmsService1Port(); - } else { - Remote _stub = this.getPort(serviceEndpointInterface); - ((Stub)_stub).setPortName(portName); - return _stub; - } - } - } - - public QName getServiceName() { - return new QName("http://api.ws.ucp.sudytech.com/", "SmsService1"); - } - - public Iterator getPorts() { - if (this.ports == null) { - this.ports = new HashSet(); - this.ports.add(new QName("http://api.ws.ucp.sudytech.com/", "SmsService1Port")); - } - - return this.ports.iterator(); - } - - public void setEndpointAddress(String portName, String address) throws ServiceException { - if ("SmsService1Port".equals(portName)) { - this.setSmsService1PortEndpointAddress(address); - } else { - throw new ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - - public void setEndpointAddress(QName portName, String address) throws ServiceException { - this.setEndpointAddress(portName.getLocalPart(), address); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/DeliverState.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/DeliverState.java deleted file mode 100644 index 4e23f70..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/DeliverState.java +++ /dev/null @@ -1,156 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.om; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.util.Calendar; - -public class DeliverState implements Serializable { - private String address; - private String errorInfo; - private Calendar sendTime; - private int state; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(DeliverState.class, true); - - public DeliverState() { - } - - public DeliverState(String address, String errorInfo, Calendar sendTime, int state) { - this.address = address; - this.errorInfo = errorInfo; - this.sendTime = sendTime; - this.state = state; - } - - public String getAddress() { - return this.address; - } - - public void setAddress(String address) { - this.address = address; - } - - public String getErrorInfo() { - return this.errorInfo; - } - - public void setErrorInfo(String errorInfo) { - this.errorInfo = errorInfo; - } - - public Calendar getSendTime() { - return this.sendTime; - } - - public void setSendTime(Calendar sendTime) { - this.sendTime = sendTime; - } - - public int getState() { - return this.state; - } - - public void setState(int state) { - this.state = state; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof DeliverState)) { - return false; - } else { - DeliverState other = (DeliverState)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && (this.errorInfo == null && other.getErrorInfo() == null || this.errorInfo != null && this.errorInfo.equals(other.getErrorInfo())) && (this.sendTime == null && other.getSendTime() == null || this.sendTime != null && this.sendTime.equals(other.getSendTime())) && this.state == other.getState(); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getAddress() != null) { - _hashCode += this.getAddress().hashCode(); - } - - if (this.getErrorInfo() != null) { - _hashCode += this.getErrorInfo().hashCode(); - } - - if (this.getSendTime() != null) { - _hashCode += this.getSendTime().hashCode(); - } - - _hashCode += this.getState(); - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "deliverState")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("address"); - elemField.setXmlName(new QName("", "address")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("errorInfo"); - elemField.setXmlName(new QName("", "errorInfo")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("sendTime"); - elemField.setXmlName(new QName("", "sendTime")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "dateTime")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("state"); - elemField.setXmlName(new QName("", "state")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageException.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageException.java deleted file mode 100644 index d1528cf..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageException.java +++ /dev/null @@ -1,104 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.om; - -import org.apache.axis.AxisFault; -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.SerializationContext; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; -import org.xml.sax.Attributes; - -import javax.xml.namespace.QName; -import java.io.IOException; -import java.io.Serializable; - -public class MessageException extends AxisFault implements Serializable { - private String message1; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(MessageException.class, true); - - public MessageException() { - } - - public MessageException(String message1) { - this.message1 = message1; - } - - public String getMessage1() { - return this.message1; - } - - public void setMessage1(String message1) { - this.message1 = message1; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof MessageException)) { - return false; - } else { - MessageException other = (MessageException)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = this.message1 == null && other.getMessage1() == null || this.message1 != null && this.message1.equals(other.getMessage1()); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getMessage1() != null) { - _hashCode += this.getMessage1().hashCode(); - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - public void writeDetails(QName qname, SerializationContext context) throws IOException { - context.serialize(qname, (Attributes)null, this); - } - - static { - typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "MessageException")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("message1"); - elemField.setXmlName(new QName("", "message")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageState.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageState.java deleted file mode 100644 index 93f35e5..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageState.java +++ /dev/null @@ -1,214 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.om; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.util.Calendar; - -public class MessageState implements Serializable { - private String address; - private String errorInfo; - private MessageStateProperties properties; - private String replyContent; - private int replyCount; - private Calendar sendTime; - private int state; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(MessageState.class, true); - - public MessageState() { - } - - public MessageState(String address, String errorInfo, MessageStateProperties properties, String replyContent, int replyCount, Calendar sendTime, int state) { - this.address = address; - this.errorInfo = errorInfo; - this.properties = properties; - this.replyContent = replyContent; - this.replyCount = replyCount; - this.sendTime = sendTime; - this.state = state; - } - - public String getAddress() { - return this.address; - } - - public void setAddress(String address) { - this.address = address; - } - - public String getErrorInfo() { - return this.errorInfo; - } - - public void setErrorInfo(String errorInfo) { - this.errorInfo = errorInfo; - } - - public MessageStateProperties getProperties() { - return this.properties; - } - - public void setProperties(MessageStateProperties properties) { - this.properties = properties; - } - - public String getReplyContent() { - return this.replyContent; - } - - public void setReplyContent(String replyContent) { - this.replyContent = replyContent; - } - - public int getReplyCount() { - return this.replyCount; - } - - public void setReplyCount(int replyCount) { - this.replyCount = replyCount; - } - - public Calendar getSendTime() { - return this.sendTime; - } - - public void setSendTime(Calendar sendTime) { - this.sendTime = sendTime; - } - - public int getState() { - return this.state; - } - - public void setState(int state) { - this.state = state; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof MessageState)) { - return false; - } else { - MessageState other = (MessageState)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && (this.errorInfo == null && other.getErrorInfo() == null || this.errorInfo != null && this.errorInfo.equals(other.getErrorInfo())) && (this.properties == null && other.getProperties() == null || this.properties != null && this.properties.equals(other.getProperties())) && (this.replyContent == null && other.getReplyContent() == null || this.replyContent != null && this.replyContent.equals(other.getReplyContent())) && this.replyCount == other.getReplyCount() && (this.sendTime == null && other.getSendTime() == null || this.sendTime != null && this.sendTime.equals(other.getSendTime())) && this.state == other.getState(); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getAddress() != null) { - _hashCode += this.getAddress().hashCode(); - } - - if (this.getErrorInfo() != null) { - _hashCode += this.getErrorInfo().hashCode(); - } - - if (this.getProperties() != null) { - _hashCode += this.getProperties().hashCode(); - } - - if (this.getReplyContent() != null) { - _hashCode += this.getReplyContent().hashCode(); - } - - _hashCode += this.getReplyCount(); - if (this.getSendTime() != null) { - _hashCode += this.getSendTime().hashCode(); - } - - _hashCode += this.getState(); - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "messageState")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("address"); - elemField.setXmlName(new QName("", "address")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("errorInfo"); - elemField.setXmlName(new QName("", "errorInfo")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("properties"); - elemField.setXmlName(new QName("", "properties")); - elemField.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", ">messageState>properties")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("replyContent"); - elemField.setXmlName(new QName("", "replyContent")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("replyCount"); - elemField.setXmlName(new QName("", "replyCount")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("sendTime"); - elemField.setXmlName(new QName("", "sendTime")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "dateTime")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("state"); - elemField.setXmlName(new QName("", "state")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "int")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStateProperties.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStateProperties.java deleted file mode 100644 index fd62bb7..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStateProperties.java +++ /dev/null @@ -1,112 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.om; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.lang.reflect.Array; -import java.util.Arrays; - -public class MessageStateProperties implements Serializable { - private MessageStatePropertiesEntry[] entry; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(MessageStateProperties.class, true); - - public MessageStateProperties() { - } - - public MessageStateProperties(MessageStatePropertiesEntry[] entry) { - this.entry = entry; - } - - public MessageStatePropertiesEntry[] getEntry() { - return this.entry; - } - - public void setEntry(MessageStatePropertiesEntry[] entry) { - this.entry = entry; - } - - public MessageStatePropertiesEntry getEntry(int i) { - return this.entry[i]; - } - - public void setEntry(int i, MessageStatePropertiesEntry _value) { - this.entry[i] = _value; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof MessageStateProperties)) { - return false; - } else { - MessageStateProperties other = (MessageStateProperties)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = this.entry == null && other.getEntry() == null || this.entry != null && Arrays.equals(this.entry, other.getEntry()); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getEntry() != null) { - for(int i = 0; i < Array.getLength(this.getEntry()); ++i) { - Object obj = Array.get(this.getEntry(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", ">messageState>properties")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("entry"); - elemField.setXmlName(new QName("", "entry")); - elemField.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", ">>messageState>properties>entry")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStatePropertiesEntry.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStatePropertiesEntry.java deleted file mode 100644 index 46ce4a7..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/MessageStatePropertiesEntry.java +++ /dev/null @@ -1,117 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.om; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; - -public class MessageStatePropertiesEntry implements Serializable { - private String key; - private String value; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(MessageStatePropertiesEntry.class, true); - - public MessageStatePropertiesEntry() { - } - - public MessageStatePropertiesEntry(String key, String value) { - this.key = key; - this.value = value; - } - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return this.value; - } - - public void setValue(String value) { - this.value = value; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof MessageStatePropertiesEntry)) { - return false; - } else { - MessageStatePropertiesEntry other = (MessageStatePropertiesEntry)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.key == null && other.getKey() == null || this.key != null && this.key.equals(other.getKey())) && (this.value == null && other.getValue() == null || this.value != null && this.value.equals(other.getValue())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getKey() != null) { - _hashCode += this.getKey().hashCode(); - } - - if (this.getValue() != null) { - _hashCode += this.getValue().hashCode(); - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", ">>messageState>properties>entry")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("key"); - elemField.setXmlName(new QName("", "key")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("value"); - elemField.setXmlName(new QName("", "value")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/SendResult.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/SendResult.java deleted file mode 100644 index d76b106..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/SendResult.java +++ /dev/null @@ -1,150 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.om; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; -import java.lang.reflect.Array; -import java.util.Arrays; - -public class SendResult implements Serializable { - private String messageId; - private boolean success; - private WrongAddress[] wrongAddresses; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(SendResult.class, true); - - public SendResult() { - } - - public SendResult(String messageId, boolean success, WrongAddress[] wrongAddresses) { - this.messageId = messageId; - this.success = success; - this.wrongAddresses = wrongAddresses; - } - - public String getMessageId() { - return this.messageId; - } - - public void setMessageId(String messageId) { - this.messageId = messageId; - } - - public boolean isSuccess() { - return this.success; - } - - public void setSuccess(boolean success) { - this.success = success; - } - - public WrongAddress[] getWrongAddresses() { - return this.wrongAddresses; - } - - public void setWrongAddresses(WrongAddress[] wrongAddresses) { - this.wrongAddresses = wrongAddresses; - } - - public WrongAddress getWrongAddresses(int i) { - return this.wrongAddresses[i]; - } - - public void setWrongAddresses(int i, WrongAddress _value) { - this.wrongAddresses[i] = _value; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof SendResult)) { - return false; - } else { - SendResult other = (SendResult)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.messageId == null && other.getMessageId() == null || this.messageId != null && this.messageId.equals(other.getMessageId())) && this.success == other.isSuccess() && (this.wrongAddresses == null && other.getWrongAddresses() == null || this.wrongAddresses != null && Arrays.equals(this.wrongAddresses, other.getWrongAddresses())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getMessageId() != null) { - _hashCode += this.getMessageId().hashCode(); - } - - _hashCode += (this.isSuccess() ? Boolean.TRUE : Boolean.FALSE).hashCode(); - if (this.getWrongAddresses() != null) { - for(int i = 0; i < Array.getLength(this.getWrongAddresses()); ++i) { - Object obj = Array.get(this.getWrongAddresses(), i); - if (obj != null && !obj.getClass().isArray()) { - _hashCode += obj.hashCode(); - } - } - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "sendResult")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("messageId"); - elemField.setXmlName(new QName("", "messageId")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("success"); - elemField.setXmlName(new QName("", "success")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "boolean")); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("wrongAddresses"); - elemField.setXmlName(new QName("", "wrongAddresses")); - elemField.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "wrongAddress")); - elemField.setMinOccurs(0); - elemField.setNillable(true); - elemField.setMaxOccursUnbounded(true); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/WrongAddress.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/WrongAddress.java deleted file mode 100644 index b463457..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/om/WrongAddress.java +++ /dev/null @@ -1,117 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.om; - -import org.apache.axis.description.ElementDesc; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.Deserializer; -import org.apache.axis.encoding.Serializer; -import org.apache.axis.encoding.ser.BeanDeserializer; -import org.apache.axis.encoding.ser.BeanSerializer; - -import javax.xml.namespace.QName; -import java.io.Serializable; - -public class WrongAddress implements Serializable { - private String address; - private String errorInfo; - private Object __equalsCalc = null; - private boolean __hashCodeCalc = false; - private static TypeDesc typeDesc = new TypeDesc(WrongAddress.class, true); - - public WrongAddress() { - } - - public WrongAddress(String address, String errorInfo) { - this.address = address; - this.errorInfo = errorInfo; - } - - public String getAddress() { - return this.address; - } - - public void setAddress(String address) { - this.address = address; - } - - public String getErrorInfo() { - return this.errorInfo; - } - - public void setErrorInfo(String errorInfo) { - this.errorInfo = errorInfo; - } - - public synchronized boolean equals(Object obj) { - if (!(obj instanceof WrongAddress)) { - return false; - } else { - WrongAddress other = (WrongAddress)obj; - if (obj == null) { - return false; - } else if (this == obj) { - return true; - } else if (this.__equalsCalc != null) { - return this.__equalsCalc == obj; - } else { - this.__equalsCalc = obj; - boolean _equals = (this.address == null && other.getAddress() == null || this.address != null && this.address.equals(other.getAddress())) && (this.errorInfo == null && other.getErrorInfo() == null || this.errorInfo != null && this.errorInfo.equals(other.getErrorInfo())); - this.__equalsCalc = null; - return _equals; - } - } - } - - public synchronized int hashCode() { - if (this.__hashCodeCalc) { - return 0; - } else { - this.__hashCodeCalc = true; - int _hashCode = 1; - if (this.getAddress() != null) { - _hashCode += this.getAddress().hashCode(); - } - - if (this.getErrorInfo() != null) { - _hashCode += this.getErrorInfo().hashCode(); - } - - this.__hashCodeCalc = false; - return _hashCode; - } - } - - public static TypeDesc getTypeDesc() { - return typeDesc; - } - - public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanSerializer(_javaType, _xmlType, typeDesc); - } - - public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType) { - return new BeanDeserializer(_javaType, _xmlType, typeDesc); - } - - static { - typeDesc.setXmlType(new QName("http://api.ws.ucp.sudytech.com/", "wrongAddress")); - ElementDesc elemField = new ElementDesc(); - elemField.setFieldName("address"); - elemField.setXmlName(new QName("", "address")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - elemField = new ElementDesc(); - elemField.setFieldName("errorInfo"); - elemField.setXmlName(new QName("", "errorInfo")); - elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string")); - elemField.setMinOccurs(0); - elemField.setNillable(false); - typeDesc.addFieldDesc(elemField); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/MessageBuilder.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/MessageBuilder.java deleted file mode 100644 index 918cc38..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/MessageBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.util; - -import cn.hutool.json.JSONArray; -import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.Address; -import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.Message; -import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.MessageProperties; -import com.budwk.app.base.sms.impl.njupt.ucp.serv.client.MessagePropertiesEntry; - -import java.io.BufferedReader; -import java.io.FileReader; -import java.util.ArrayList; -import java.util.List; - -public class MessageBuilder { - private String _subject = "待办消息"; - private String _content = "消息测试,您的oa有一条待办提醒,需要处理!"; - private String _indivSubject = "待办提醒"; - private String _indivContent = "${message}${name}"; - private String _smsSignature = "东南大学"; - - public MessageBuilder() { - } - - public MessageBuilder(String smsSignature) { - this._smsSignature = smsSignature; - } - - public MessageBuilder(String subject, String content) { - this._subject = subject; - this._content = content; - this._indivSubject = subject; - this._indivContent = content; - } - - public Message buildMessage(Address[] address, boolean isLinkUrl) throws Exception { - Message message = new Message(); - message.setTo(address); - message.setSubject(this._subject); - message.setContent(this._content); - message.setMsgType(isLinkUrl ? 1 : 0); - MessagePropertiesEntry signature = this.buildProperty("smsSignature", this._smsSignature); - MessagePropertiesEntry imLinkUrl = this.buildProperty("im_linkUrl", "http://www.baidu.com"); - MessagePropertiesEntry[] entrys = isLinkUrl ? new MessagePropertiesEntry[]{signature, imLinkUrl} : new MessagePropertiesEntry[]{signature}; - message.setProperties(new MessageProperties(entrys)); - return message; - } - - public Message buildIndivMessage(boolean isLinkUrl) throws Exception { - Message message = new Message(); - message.setSubject(this._indivSubject); - message.setContent(this._indivContent); - message.setMsgType(isLinkUrl ? 1 : 0); - MessagePropertiesEntry signature = this.buildProperty("smsSignature", "东华大学"); - MessagePropertiesEntry imLinkUrl = this.buildProperty("im_linkUrl", "http://www.baidu.com"); - MessagePropertiesEntry[] entrys = isLinkUrl ? new MessagePropertiesEntry[]{signature, imLinkUrl} : new MessagePropertiesEntry[]{signature}; - message.setProperties(new MessageProperties(entrys)); - return message; - } - - public Address[] loadAddesses(String filePath, int count) throws Exception { - List
addressList = new ArrayList(); - FileReader fr = new FileReader(filePath); - BufferedReader br = new BufferedReader(fr); - int begin = 0; - - String line; - while((line = br.readLine()) != null && begin < count) { - if (line != null && line.length() != 0) { - ++begin; - addressList.add(new Address("(" + line + ")", "uc_ux")); - } - } - - br.close(); - fr.close(); - return (Address[])addressList.toArray(new Address[addressList.size()]); - } - - public String loadIndivAddesses(String filePath, int count) throws Exception { - JSONArray data = new JSONArray(); - JSONArray jsonHead = new JSONArray(); - jsonHead.add("type"); - jsonHead.add("address"); - jsonHead.add("message"); - jsonHead.add("name"); - data.add(jsonHead); - FileReader fr = new FileReader(filePath); - BufferedReader br = new BufferedReader(fr); - int begin = 0; - - String line; - while((line = br.readLine()) != null && begin < count) { - if (line != null && line.length() != 0) { - ++begin; - JSONArray jsonData = new JSONArray(); - jsonData.add("uc_ux"); - jsonData.add("(" + line + ")"); - jsonData.add("个性化消息测试,您的oa有一条待办提醒,需要处理!"); - jsonData.add(String.valueOf(begin)); - data.add(jsonData); - } - } - - br.close(); - fr.close(); - return data.toString(); - } - - public MessagePropertiesEntry buildProperty(String key, String value) { - return new MessagePropertiesEntry(key, value); - } -} diff --git a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/TokenBuilder.java b/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/TokenBuilder.java deleted file mode 100644 index 196bf81..0000000 --- a/src/main/java/com/budwk/app/base/sms/impl/njupt/ucp/ws/util/TokenBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// -// Source code recreated from a .class file by IntelliJ IDEA -// (powered by FernFlower decompiler) -// - -package com.budwk.app.base.sms.impl.njupt.ucp.ws.util; - -import cn.hutool.json.JSONObject; - -import java.security.MessageDigest; -import java.util.*; - -public class TokenBuilder { - private String _appId; - private String _privateKey; - - public TokenBuilder(String appId, String privateKey) { - this._appId = appId; - this._privateKey = privateKey; - } - - public String buildToken() throws Exception { - String timestamp = String.valueOf(System.currentTimeMillis()); - String nonce = String.valueOf((new Random()).nextInt(10000)); - JSONObject jsonObj = new JSONObject(); - jsonObj.put("authType", "sign1"); - jsonObj.put("appId", this._appId); - jsonObj.put("timestamp", timestamp); - jsonObj.put("nonce", nonce); - jsonObj.put("signature", this.buildSignature(this._privateKey, timestamp, this._appId, nonce)); - return jsonObj.toString(); - } - - private String buildSignature(String securyKey, String timestamp, String appId, String nonce) throws Exception { - List sParamList = new ArrayList(); - sParamList.add(securyKey); - sParamList.add(timestamp); - sParamList.add(nonce); - sParamList.add(appId); - Collections.sort(sParamList, new Comparator() { - public int compare(String o1, String o2) { - return o1.compareTo(o2); - } - }); - StringBuilder signature = new StringBuilder(); - Iterator i$ = sParamList.iterator(); - - while(i$.hasNext()) { - String sParam = (String)i$.next(); - signature.append(sParam); - } - - MessageDigest md = MessageDigest.getInstance("SHA-1"); - md.update(signature.toString().getBytes()); - return this.toHex(md.digest()); - } - - private String toHex(byte[] buffer) { - StringBuilder sb = new StringBuilder(buffer.length * 2); - - for(int i = 0; i < buffer.length; ++i) { - sb.append(Character.forDigit((buffer[i] & 240) >> 4, 16)); - sb.append(Character.forDigit(buffer[i] & 15, 16)); - } - - return sb.toString(); - } -}