This commit is contained in:
=
2025-11-27 14:19:22 +08:00
67 changed files with 686 additions and 7246 deletions
@@ -0,0 +1,150 @@
package com.budwk.app.base.sms.impl.jshvc;
import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.digest.DigestUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import com.budwk.app.base.sms.SmsService;
import lombok.extern.slf4j.Slf4j;
import org.nutz.integration.jedis.RedisService;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.json.Json;
import org.nutz.lang.Lang;
import org.nutz.lang.util.NutMap;
import java.util.List;
import java.util.Map;
/**
* @ClassName SmsJshvcServiceImpl
* @Author JyuHsin
* @Date 2025/11/26 19:32
* @Version 1.0
* @Description TODO
*/
@Slf4j
@IocBean
public class SmsJshvcServiceImpl implements SmsService {
private static final String APPID = "1430576717768122368";
private static final String APP_SECRET = "19A0ACB03FBQHL4R4XQD";
private static final String TOKEN_URL = "https://gateway.jshvc.edu.cn/token/gateway/accessToken";
private static final String MSG_URL = "https://gateway.jshvc.edu.cn/mp/restful/v2/message/send";
private static final String REDIS_KEY_MSG_ACCESS_TOKEN = "msg:token:";
@Inject
private RedisService redisService;
@Override
public void send(String loginName, String content) {
send(loginName, "智慧工会", content);
}
@Override
public void send(String loginName, String title, String content) {
send(loginName, "智慧工会", content, null);
}
@Override
public void send(String loginName, String title, String content, String link) {
Map<String, String> paramMap = Map.of("userId", loginName);
doSend(title, content, List.of(paramMap), link);
}
@Override
public void massSend(List<String> loginNames, String title, String content, String link) {
List<Map<String, String>> receivers = loginNames.stream()
.map(name -> Map.of("userId", name))
.toList();
doSend(title, content, receivers, link);
}
/**
* sign: 请求签名:accessToken + 第一个receivers 的userID )的32位小写的MD5加密值,其中如果相应部分没有则忽略
* msgType: 0: 普通消息(默认) 1: 必读消息 2: 验证码(为验证码时消息一定不入收件箱)
* expiredTime: 当msgType 为1必读消息 ,该字段为必填字段 格式:yyyy-MM-dd HH:mm:ss
* sendType: 1.只发送PC门户 2.只发送移动校园 3.邮件 4.短信 5.微信企业号 6.钉钉企业内部应用工作通知 7.微信服务号 8.welink
* wxSendType: 当发送类型为5时此字段才会生效:text(文本消息)、textcard(文本卡片)、nes(图文卡片,如果图文,则qyWeChatImgUrl必填)、button(按钮卡片详见示例),不传默认为text
* receiverType: 1:用户 2:用户组 3:部门,默认为1
*
* @param title
* @param content
* @param receivers
*/
private void doSend(String title, String content, List<Map<String, String>> receivers, String link) {
if (Lang.isEmpty(receivers)) {
log.error("send fail by receivers is null");
return;
}
// 获取token
String accessToken = buildAccessToken();
// 获取第一个接收人的userID
String firstUserId = receivers.get(0).get("userId");
// md5小写加密生成签名
String sign = DigestUtil.md5Hex(accessToken + firstUserId);
NutMap paramsMap = new NutMap();
paramsMap.put("sign", sign);
paramsMap.put("msgType", "0");
paramsMap.put("subject", title);
paramsMap.put("content", content);
paramsMap.put("sendType", "5");
paramsMap.put("receivers", receivers);
if (StrUtil.isBlank(link)) {
paramsMap.put("wxSendType", "text");
} else {
paramsMap.put("wxSendType", "textcard");
paramsMap.put("mobileUrl", link);
// 这是图文卡片,后面用到再对接吧
// paramsMap.put("qyWeChatImgUrl", "");
}
log.debug("send params: {}", Json.toJson(paramsMap));
HttpRequest request = HttpRequest.post(MSG_URL)
.header("appId", APPID)
.header("accessToken", accessToken)
.body(Json.toJson(paramsMap));
try {
HttpResponse response = request.execute();
log.info("send response body: {}", response.body());
NutMap bodyMap = Json.fromJson(NutMap.class, response.body());
if (bodyMap.getInt("status") == 200) {
log.info("send success code: {}, msg: {}", bodyMap.getInt("status"), bodyMap.getString("msg"));
} else {
log.error("send error code: {}, msg: {}", bodyMap.getInt("status"), bodyMap.getString("msg"));
}
} catch (Exception e) {
log.error("Failed to send: {}", e.getMessage(), e);
}
}
private String buildAccessToken() {
String token = redisService.get(REDIS_KEY_MSG_ACCESS_TOKEN);
if (StrUtil.isNotBlank(token)) {
return token;
}
HttpRequest request = HttpRequest.get(TOKEN_URL);
request.header("appId", APPID);
request.header("appSecret", APP_SECRET);
HttpResponse response = request.execute();
log.info("accessToken response: {}", Json.toJson(response.body()));
NutMap bodyMap = Json.fromJson(NutMap.class, response.body());
if (bodyMap.getInt("errcode") == 0) {
log.info("accessToken status: {}", bodyMap.getInt("errorcode"));
redisService.setex(REDIS_KEY_MSG_ACCESS_TOKEN, 60 * 120, bodyMap.getString("data"));
return bodyMap.getString("data");
} else {
log.error("accessToken status: {}", bodyMap.getInt("errorcode"));
}
return "";
}
}
@@ -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<String> loginNames, String title, String content, String link) {
// List<Address> sms = loginNames.stream().map(loginName -> new Address(loginName, "sms")).toList();
List<Address> 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);
}
}
@@ -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));
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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();
}
}
@@ -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;
}
@@ -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;
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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();
}
}
@@ -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;
}
@@ -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;
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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();
}
}
@@ -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;
}
@@ -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;
}
@@ -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);
}
}
@@ -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();
}
}
@@ -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;
}
@@ -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;
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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<Address> 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);
}
}
@@ -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<String> sParamList = new ArrayList();
sParamList.add(securyKey);
sParamList.add(timestamp);
sParamList.add(nonce);
sParamList.add(appId);
Collections.sort(sParamList, new Comparator<String>() {
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();
}
}
@@ -41,190 +41,193 @@ import java.util.*;
@Slf4j
public class FlowDesignController {
@Inject
private SysUserService sysUserService;
@Inject
private ProcessDesignService processDesignService;
@Inject
private Dao dao;
@Inject
private SysUserService sysUserService;
@Inject
private ProcessDesignService processDesignService;
@Inject
private Dao dao;
// 获取所有任务参与者处理类
public static final List<JSONObject> ASSIGMENT_HANDLER_LIST;
// 获取所有候选用户处理类
public static final List<JSONObject> CANDIDATE_HANDLER_LIST;
// 获取所有任务参与者处理类
public static final List<JSONObject> ASSIGMENT_HANDLER_LIST;
// 获取所有候选用户处理类
public static final List<JSONObject> CANDIDATE_HANDLER_LIST;
static {
Set<Class<?>> classes = ClassScanner.scanPackageBySuper("com.budwk.app", AssignmentHandler.class);
ArrayList<JSONObject> list = new ArrayList<>(classes.size());
for (Class<?> aClass : classes) {
try {
AssignmentHandler handler = (AssignmentHandler) ReflectUtil.newInstance(aClass);
JSONObject jsonObject = new JSONObject();
jsonObject.set("value", handler.getClass().getName());
jsonObject.set("order", handler.getOrder());
jsonObject.set("name", handler.getMessage());
list.add(jsonObject);
} catch (Exception e) {
log.error("初始化AssignmentHandler失败: {}", aClass.getName());
}
}
// 排序 按order
list.sort(Comparator.comparingInt(o -> o.getInt("order")));
ASSIGMENT_HANDLER_LIST = Collections.unmodifiableList(list);
}
static {
Set<Class<?>> classes = ClassScanner.scanPackageBySuper("com.budwk.app", AssignmentHandler.class);
ArrayList<JSONObject> list = new ArrayList<>(classes.size());
for (Class<?> aClass : classes) {
try {
AssignmentHandler handler = (AssignmentHandler) ReflectUtil.newInstance(aClass);
JSONObject jsonObject = new JSONObject();
jsonObject.set("value", handler.getClass().getName());
jsonObject.set("order", handler.getOrder());
jsonObject.set("name", handler.getMessage());
list.add(jsonObject);
} catch (Exception e) {
log.error("初始化AssignmentHandler失败: {}", aClass.getName());
}
}
// 排序 按order
list.sort(Comparator.comparingInt(o -> o.getInt("order")));
ASSIGMENT_HANDLER_LIST = Collections.unmodifiableList(list);
}
static {
Set<Class<?>> classes = ClassScanner.scanPackageBySuper("com.budwk.app", CandidateHandler.class);
ArrayList<JSONObject> list = new ArrayList<>(classes.size());
for (Class<?> aClass : classes) {
try {
CandidateHandler handler = (CandidateHandler) ReflectUtil.newInstance(aClass);
JSONObject jsonObject = new JSONObject();
jsonObject.set("value", handler.getClass().getName());
jsonObject.set("order", handler.getOrder());
jsonObject.set("name", handler.getMessage());
list.add(jsonObject);
} catch (Exception e) {
log.error("初始化CandidateHandler失败: {}", aClass.getName());
}
}
// 排序 按order
list.sort(Comparator.comparingInt(o -> o.getInt("order")));
CANDIDATE_HANDLER_LIST = Collections.unmodifiableList(list);
}
static {
Set<Class<?>> classes = ClassScanner.scanPackageBySuper("com.budwk.app", CandidateHandler.class);
ArrayList<JSONObject> list = new ArrayList<>(classes.size());
for (Class<?> aClass : classes) {
try {
CandidateHandler handler = (CandidateHandler) ReflectUtil.newInstance(aClass);
JSONObject jsonObject = new JSONObject();
jsonObject.set("value", handler.getClass().getName());
jsonObject.set("order", handler.getOrder());
jsonObject.set("name", handler.getMessage());
list.add(jsonObject);
} catch (Exception e) {
log.error("初始化CandidateHandler失败: {}", aClass.getName());
}
}
// 排序 按order
list.sort(Comparator.comparingInt(o -> o.getInt("order")));
CANDIDATE_HANDLER_LIST = Collections.unmodifiableList(list);
}
@At("")
@Ok("beetl:/platform/flow/design/index.html")
@At("")
@Ok("beetl:/platform/flow/design/index.html")
@SaCheckPermission("flow.design")
public void index() {
}
public void index() {
}
@At
@Ok("beetl:/platform/flow/design/designer.html")
@SaCheckLogin
public void designer(HttpServletRequest request) {
request.setAttribute("id", request.getParameter("id"));
}
@At
@Ok("beetl:/platform/flow/design/designer.html")
@SaCheckLogin
public void designer(HttpServletRequest request) {
request.setAttribute("id", request.getParameter("id"));
}
@At
@ApiOperation("获取流程设计分页列表")
@At
@ApiOperation("获取流程设计分页列表")
@SaCheckPermission("flow.design")
public Result pageData(PageForm pageForm, String displayName, String name, String category, Boolean deployed) {
Cnd cnd = Cnd.NEW();
public Result pageData(PageForm pageForm, String displayName, String name, String category, Boolean deployed) {
Cnd cnd = Cnd.NEW();
cnd.and(Cnd.likeEX(ProcessDesign::getDisplayName, displayName));
cnd.and(Cnd.likeEX(ProcessDesign::getName, name));
cnd.andEX(ProcessDesign::getCategory, "=", category);
cnd.andEX(ProcessDesign::getIsDeployed, "=", deployed);
Pagination pagination = processDesignService.listPage(pageForm.getPageNumber(), pageForm.getPageSize(), cnd);
return Result.success(pagination);
}
Pagination pagination = processDesignService.listPage(pageForm.getPageNumber(), pageForm.getPageSize(), cnd);
return Result.success(pagination);
}
@At
@ApiOperation("保存流程设计")
@At
@ApiOperation("保存流程设计")
@SaCheckPermission("flow.design")
public Result insert(@Param("design") ProcessDesign processDesign) {
JSONObject jsonObject = new JSONObject();
jsonObject.set("name", processDesign.getName());
jsonObject.set("displayName", processDesign.getDisplayName());
jsonObject.set("category", processDesign.getCategory());
jsonObject.set("instanceUrl", processDesign.getInstanceUrl());
jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl());
jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl());
jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl());
jsonObject.set("icon", processDesign.getIcon());
jsonObject.set("description", processDesign.getDescription());
processDesign.setContent(jsonObject);
dao.insert(processDesign);
return Result.success();
}
public Result insert(@Param("design") ProcessDesign processDesign) {
JSONObject jsonObject = new JSONObject();
jsonObject.set("name", processDesign.getName());
jsonObject.set("displayName", processDesign.getDisplayName());
jsonObject.set("category", processDesign.getCategory());
jsonObject.set("instanceUrl", processDesign.getInstanceUrl());
jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl());
jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl());
jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl());
jsonObject.set("icon", processDesign.getIcon());
jsonObject.set("picIcon", processDesign.getPicIcon());
jsonObject.set("description", processDesign.getDescription());
processDesign.setContent(jsonObject);
dao.insert(processDesign);
return Result.success();
}
@At
@ApiOperation("修改流程设计")
@At
@ApiOperation("修改流程设计")
@SaCheckPermission("flow.design")
public Result update(@Param("design") ProcessDesign processDesign) {
JSONObject jsonObject = processDesign.getContent();
jsonObject.set("name", processDesign.getName());
jsonObject.set("displayName", processDesign.getDisplayName());
jsonObject.set("category", processDesign.getCategory());
jsonObject.set("instanceUrl", processDesign.getInstanceUrl());
jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl());
jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl());
jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl());
jsonObject.set("icon", processDesign.getIcon());
jsonObject.set("description", processDesign.getDescription());
processDesign.setContent(jsonObject);
processDesignService.update(processDesign);
return Result.success();
}
public Result update(@Param("design") ProcessDesign processDesign) {
JSONObject jsonObject = processDesign.getContent();
jsonObject.set("name", processDesign.getName());
jsonObject.set("displayName", processDesign.getDisplayName());
jsonObject.set("category", processDesign.getCategory());
jsonObject.set("instanceUrl", processDesign.getInstanceUrl());
jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl());
jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl());
jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl());
jsonObject.set("icon", processDesign.getIcon());
jsonObject.set("picIcon", processDesign.getPicIcon());
jsonObject.set("description", processDesign.getDescription());
processDesign.setContent(jsonObject);
processDesignService.update(processDesign);
return Result.success();
}
@At
@ApiOperation("修改流程设计")
@At
@ApiOperation("修改流程设计")
@SaCheckPermission("flow.design")
public Result updateContent(@Param("design") ProcessDesign processDesign) {
JSONObject jsonObject = processDesign.getContent();
jsonObject.set("name", processDesign.getName());
jsonObject.set("displayName", processDesign.getDisplayName());
jsonObject.set("category", processDesign.getCategory());
jsonObject.set("instanceUrl", processDesign.getInstanceUrl());
jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl());
jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl());
jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl());
jsonObject.set("icon", processDesign.getIcon());
jsonObject.set("description", processDesign.getDescription());
processDesign.setContent(jsonObject);
processDesignService.update(processDesign);
return Result.success();
}
public Result updateContent(@Param("design") ProcessDesign processDesign) {
JSONObject jsonObject = processDesign.getContent();
jsonObject.set("name", processDesign.getName());
jsonObject.set("displayName", processDesign.getDisplayName());
jsonObject.set("category", processDesign.getCategory());
jsonObject.set("instanceUrl", processDesign.getInstanceUrl());
jsonObject.set("h5InstanceUrl", processDesign.getH5InstanceUrl());
jsonObject.set("instanceViewUrl", processDesign.getInstanceViewUrl());
jsonObject.set("h5InstanceViewUrl", processDesign.getH5InstanceViewUrl());
jsonObject.set("icon", processDesign.getIcon());
jsonObject.set("picIcon", processDesign.getPicIcon());
jsonObject.set("description", processDesign.getDescription());
processDesign.setContent(jsonObject);
processDesignService.update(processDesign);
return Result.success();
}
@At
@ApiOperation("删除流程设计")
@At
@ApiOperation("删除流程设计")
@SaCheckPermission("flow.design")
public Result delete(@Param("id") Long id) {
dao.delete(ProcessDesign.class, id);
return Result.success();
}
public Result delete(@Param("id") Long id) {
dao.delete(ProcessDesign.class, id);
return Result.success();
}
@At
@SaCheckLogin
@ApiOperation("流程设计详情")
public Result detail(@Param("id") Long id) {
ProcessDesign design = dao.fetch(ProcessDesign.class, id);
return Result.success(design);
}
@At
@SaCheckLogin
@ApiOperation("流程设计详情")
public Result detail(@Param("id") Long id) {
ProcessDesign design = dao.fetch(ProcessDesign.class, id);
return Result.success(design);
}
@At
@ApiOperation("发布流程设计")
@Aop(TransAop.READ_COMMITTED)
@At
@ApiOperation("发布流程设计")
@Aop(TransAop.READ_COMMITTED)
@SaCheckPermission("flow.design")
public Result deploy(@Param("id") Long id) {
processDesignService.deploy(id);
return Result.success();
}
public Result deploy(@Param("id") Long id) {
processDesignService.deploy(id);
return Result.success();
}
@At
@SaCheckLogin
@ApiOperation("获取流程设计任务参与者处理类")
public Result assigmentHandlerClass() {
return Result.success(ASSIGMENT_HANDLER_LIST);
}
@At
@SaCheckLogin
@ApiOperation("获取流程设计任务参与者处理类")
public Result assigmentHandlerClass() {
return Result.success(ASSIGMENT_HANDLER_LIST);
}
@At
@SaCheckLogin
@ApiOperation("获取流程设计任务参与者处理类")
public Result candidateHandlerClass() {
return Result.success(CANDIDATE_HANDLER_LIST);
}
@At
@SaCheckLogin
@ApiOperation("获取流程设计任务参与者处理类")
public Result candidateHandlerClass() {
return Result.success(CANDIDATE_HANDLER_LIST);
}
@At
@SaCheckLogin
@ApiOperation("获取流程设计任务参与者分页数据")
public Result assigneePage(Integer pageNumber, Integer pageSize, String searchKeyword, @Param("userIds") String[] userIds) {
Sql sql = Sqls.create("select id,loginname,username,unitName from vw_user $condition");
Cnd cnd = Cnd.NEW();
@At
@SaCheckLogin
@ApiOperation("获取流程设计任务参与者分页数据")
public Result assigneePage(Integer pageNumber, Integer pageSize, String searchKeyword, @Param("userIds") String[] userIds) {
Sql sql = Sqls.create("select id,loginname,username,unitName from vw_user $condition");
Cnd cnd = Cnd.NEW();
if(StrUtil.isNotBlank(searchKeyword)) {
SqlExpressionGroup group = new SqlExpressionGroup();
group.orLike("username", searchKeyword);
@@ -233,17 +236,17 @@ public class FlowDesignController {
}
sql.setCondition(cnd);
// cnd.andEX("id", "in", userIds);
Pagination pagination = sysUserService.listPageMap(pageNumber, pageSize, sql);
return Result.success(pagination);
}
Pagination pagination = sysUserService.listPageMap(pageNumber, pageSize, sql);
return Result.success(pagination);
}
@At
@SaCheckLogin
@ApiOperation("获取流程设计任务参与者分页数据回显")
public Result assigneeEcho(@Param("userIds") String[] userIds) {
Sql sql = Sqls.create("select id,loginname,username,unitName from vw_user where id in (@userIds)");
sql.setParam("userIds", userIds);
List<NutMap> list = sysUserService.listMap(sql);
return Result.success(list);
}
@At
@SaCheckLogin
@ApiOperation("获取流程设计任务参与者分页数据回显")
public Result assigneeEcho(@Param("userIds") String[] userIds) {
Sql sql = Sqls.create("select id,loginname,username,unitName from vw_user where id in (@userIds)");
sql.setParam("userIds", userIds);
List<NutMap> list = sysUserService.listMap(sql);
return Result.success(list);
}
}
@@ -12,20 +12,25 @@ import org.nutz.dao.interceptor.annotation.PrevInsert;
@Comment("流程分类")
public class ProcessCategory extends BaseModel {
@Name
@Comment("ID")
@PrevInsert(uu32 = true)
@ColDefine(type = ColType.VARCHAR, width = 32)
private String id;
@Name
@Comment("ID")
@PrevInsert(uu32 = true)
@ColDefine(type = ColType.VARCHAR, width = 32)
private String id;
@Comment("名称")
@Column
@ColDefine(type = ColType.VARCHAR, width = 10)
private String name;
@Comment("名称")
@Column
@ColDefine(type = ColType.VARCHAR, width = 10)
private String name;
@Comment("图标")
@Column
@ColDefine(type = ColType.VARCHAR, width = 255)
private String icon;
@Comment("片图")
@Column
@ColDefine(type = ColType.VARCHAR, width = 255)
private String picIcon;
@Comment("图标")
@Column
@ColDefine(type = ColType.VARCHAR, width = 255)
private String icon;
}
@@ -20,62 +20,66 @@ import org.nutz.dao.entity.annotation.*;
@Comment("流程设计")
public class ProcessDesign extends BaseModel {
@Comment("主键")
@Id
private Long id;
@Comment("主键")
@Id
private Long id;
@Comment("唯一编码")
@Column
private String name;
@Comment("唯一编码")
@Column
private String name;
@Comment("显示名称")
@Column
private String displayName;
@Comment("显示名称")
@Column
private String displayName;
@Comment("流程分类")
@Column
private String type;
@Comment("流程分类")
@Column
private String type;
@Comment("流程分类")
@Column
private String category;
@Comment("流程分类")
@Column
private String category;
@Comment("电脑端发起地址")
@Column
private String instanceUrl;
@Comment("电脑端发起地址")
@Column
private String instanceUrl;
@Comment("手机端发起地址")
@Column
private String h5InstanceUrl;
@Comment("手机端发起地址")
@Column
private String h5InstanceUrl;
@Comment("电脑端发起地址")
@Column
private String instanceViewUrl;
@Comment("电脑端发起地址")
@Column
private String instanceViewUrl;
@Comment("手机端发起地址")
@Column
private String h5InstanceViewUrl;
@Comment("手机端发起地址")
@Column
private String h5InstanceViewUrl;
@Comment("图标")
@Column
private String icon;
@Comment("片图")
@Column
private String picIcon;
@Comment("是否已部署")
@Column
private Integer isDeployed;
@Comment("图标")
@Column
private String icon;
@Comment("备注")
@Column
private String remark;
@Comment("是否已部署")
@Column
private Integer isDeployed;
@Comment("流程描述")
@Column
@ColDefine(type = ColType.TEXT)
private String description;
@Comment("备注")
@Column
private String remark;
@Comment("流程定义")
@Column
@ColDefine(type = ColType.MYSQL_JSON)
private JSONObject content;
@Comment("流程描述")
@Column
@ColDefine(type = ColType.TEXT)
private String description;
@Comment("流程定义")
@Column
@ColDefine(type = ColType.MYSQL_JSON)
private JSONObject content;
}
@@ -35,36 +35,37 @@ import java.util.Map;
@Api(value = "应用中心接口", tags = "应用中心接口")
public class SysV4AppsController {
@Inject
private Dao dao;
@Inject
private SysMenuService sysMenuService;
@Inject
private SysUserService sysUserService;
@Inject
private Dao dao;
@Inject
private SysMenuService sysMenuService;
@Inject
private SysUserService sysUserService;
@At("/categories")
@Ok("json")
@SaCheckLogin
@ApiOperation("获取应用分类")
public Result categories(@Param(value = "platform", df = "PC") String platform) {
List<Sys_module> list = dao.query(Sys_module.class, Cnd.where(Sys_module::getPlatform, "=", platform).asc(Sys_module::getSortNum));
List<Map<String, Object>> categories = list.stream().map(module -> {
Map<String, Object> category = new HashMap<>();
category.put("id", module.getId());
category.put("name", module.getName());
category.put("icon", module.getFaIcon());
return category;
}).toList();
return Result.success("获取应用分类成功").addData(categories);
}
@At("/categories")
@Ok("json")
@SaCheckLogin
@ApiOperation("获取应用分类")
public Result categories(@Param(value = "platform", df = "PC") String platform) {
List<Sys_module> list = dao.query(Sys_module.class, Cnd.where(Sys_module::getPlatform, "=", platform).asc(Sys_module::getSortNum));
List<Map<String, Object>> categories = list.stream().map(module -> {
Map<String, Object> category = new HashMap<>();
category.put("id", module.getId());
category.put("name", module.getName());
category.put("icon", module.getFaIcon());
category.put("picIcon", module.getIcon());
return category;
}).toList();
return Result.success("获取应用分类成功").addData(categories);
}
@At("/list")
@Ok("json:full")
@SaCheckLogin
@ApiOperation("获取应用列表")
public Result list(@Param("categoryId") String categoryId, @Param("letter") String letter, @Param("keyword") String keyword, @Param(value = "platform", df = "PC") String platform, HttpServletRequest req) {
List<Sys_menu> menus = sysUserService.getMenus(SecurityUtil.getUserId());
Sql sql = Sqls.create("""
@At("/list")
@Ok("json:full")
@SaCheckLogin
@ApiOperation("获取应用列表")
public Result list(@Param("categoryId") String categoryId, @Param("letter") String letter, @Param("keyword") String keyword, @Param(value = "platform", df = "PC") String platform, HttpServletRequest req) {
List<Sys_menu> menus = sysUserService.getMenus(SecurityUtil.getUserId());
Sql sql = Sqls.create("""
SELECT
m.id,
m.`name`,
@@ -83,28 +84,28 @@ public class SysV4AppsController {
LEFT JOIN sys_module sm ON sm.id = m.moduleId
$condition
""");
Cnd cnd = Cnd.NEW();
cnd.and("m.platform", "=", platform);
cnd.and("m.disabled", "=", false);
cnd.and(Cnd.exps("m.parentId", "is", null).or("m.parentId", "=", ""));
cnd.and("m.id","in", menus.stream().map(Sys_menu::getId).toArray());
cnd.andEX("m.moduleId", "=", categoryId);
cnd.asc("m.location");
if (StrUtil.isNotBlank(keyword)) {
cnd.where().andLike("m.name", keyword);
}
cnd.andEX("m.initialPinyinName", "=", letter);
sql.setCondition(cnd);
sql.setParam("userId", SecurityUtil.getUserId());
List<NutMap> list = sysMenuService.listMap(sql);
return Result.success(list);
}
Cnd cnd = Cnd.NEW();
cnd.and("m.platform", "=", platform);
cnd.and("m.disabled", "=", false);
cnd.and(Cnd.exps("m.parentId", "is", null).or("m.parentId", "=", ""));
cnd.and("m.id","in", menus.stream().map(Sys_menu::getId).toArray());
cnd.andEX("m.moduleId", "=", categoryId);
cnd.asc("m.location");
if (StrUtil.isNotBlank(keyword)) {
cnd.where().andLike("m.name", keyword);
}
cnd.andEX("m.initialPinyinName", "=", letter);
sql.setCondition(cnd);
sql.setParam("userId", SecurityUtil.getUserId());
List<NutMap> list = sysMenuService.listMap(sql);
return Result.success(list);
}
@At("/recommended")
@Ok("json")
@SaCheckLogin
@ApiOperation("获取推荐应用")
public Result recommended(HttpServletRequest req) {
@At("/recommended")
@Ok("json")
@SaCheckLogin
@ApiOperation("获取推荐应用")
public Result recommended(HttpServletRequest req) {
// // 这里简单地返回前6个应用作为推荐应用
// int recommendCount = Math.min(6, APPS.size());
// List<Map<String, Object>> recommendedApps = new ArrayList<>();
@@ -129,15 +130,15 @@ public class SysV4AppsController {
// data.put("pageSize", recommendedApps.size());
// data.put("totalPage", 1);
return Result.success("获取推荐应用成功");
}
return Result.success("获取推荐应用成功");
}
@At("/favorite")
@Ok("json:full")
@SaCheckLogin
@ApiOperation("获取收藏的应用")
public Result favorite(HttpServletRequest req) {
Sql sql = Sqls.create("""
@At("/favorite")
@Ok("json:full")
@SaCheckLogin
@ApiOperation("获取收藏的应用")
public Result favorite(HttpServletRequest req) {
Sql sql = Sqls.create("""
SELECT
m.id,
m.`name`,
@@ -160,39 +161,39 @@ public class SysV4AppsController {
ORDER BY
m.location ASC;
""");
sql.setParam("userId", SecurityUtil.getUserId());
List<NutMap> list = sysMenuService.listMap(sql);
return Result.success(list);
}
sql.setParam("userId", SecurityUtil.getUserId());
List<NutMap> list = sysMenuService.listMap(sql);
return Result.success(list);
}
@At("/addFavorite")
@Ok("json")
@SaCheckLogin
@ApiOperation("添加收藏")
@Aop(TransAop.READ_COMMITTED)
public Result addFavorite(@Param("appId") String appId, HttpServletRequest req) {
if (Strings.isBlank(appId)) {
return Result.error("应用ID不能为空");
}
@At("/addFavorite")
@Ok("json")
@SaCheckLogin
@ApiOperation("添加收藏")
@Aop(TransAop.READ_COMMITTED)
public Result addFavorite(@Param("appId") String appId, HttpServletRequest req) {
if (Strings.isBlank(appId)) {
return Result.error("应用ID不能为空");
}
dao.clear(Sys_user_favorite_app.class, Cnd.where(Sys_user_favorite_app::getAppId, "=", appId).and(Sys_user_favorite_app::getUserId, "=", SecurityUtil.getUserId()));
dao.clear(Sys_user_favorite_app.class, Cnd.where(Sys_user_favorite_app::getAppId, "=", appId).and(Sys_user_favorite_app::getUserId, "=", SecurityUtil.getUserId()));
Sys_user_favorite_app app = new Sys_user_favorite_app();
app.setAppId(appId);
app.setUserId(SecurityUtil.getUserId());
dao.insert(app);
return Result.success("收藏成功");
}
Sys_user_favorite_app app = new Sys_user_favorite_app();
app.setAppId(appId);
app.setUserId(SecurityUtil.getUserId());
dao.insert(app);
return Result.success("收藏成功");
}
@At("/removeFavorite")
@Ok("json")
@SaCheckLogin
@ApiOperation("取消收藏")
public Result removeFavorite(@Param("appId") String appId, HttpServletRequest req) {
if (Strings.isBlank(appId)) {
return Result.error("应用ID不能为空");
}
dao.clear(Sys_user_favorite_app.class, Cnd.where(Sys_user_favorite_app::getAppId, "=", appId).and(Sys_user_favorite_app::getUserId, "=", SecurityUtil.getUserId()));
return Result.success("取消收藏成功");
}
@At("/removeFavorite")
@Ok("json")
@SaCheckLogin
@ApiOperation("取消收藏")
public Result removeFavorite(@Param("appId") String appId, HttpServletRequest req) {
if (Strings.isBlank(appId)) {
return Result.error("应用ID不能为空");
}
dao.clear(Sys_user_favorite_app.class, Cnd.where(Sys_user_favorite_app::getAppId, "=", appId).and(Sys_user_favorite_app::getUserId, "=", SecurityUtil.getUserId()));
return Result.success("取消收藏成功");
}
}
@@ -26,27 +26,27 @@ import java.util.List;
@Api(value = "服务中心接口", tags = "服务中心接口")
public class SysV4ServController {
@Inject
private Dao dao;
@Inject
private SysMenuService sysMenuService;
@Inject
private Dao dao;
@Inject
private SysMenuService sysMenuService;
@At("/categories")
@Ok("json")
@SaCheckLogin
@ApiOperation("获取分类")
public Result categories() {
List<ProcessCategory> list = dao.query(ProcessCategory.class, Cnd.NEW());
return Result.success(list);
}
@At("/categories")
@Ok("json")
@SaCheckLogin
@ApiOperation("获取分类")
public Result categories() {
List<ProcessCategory> list = dao.query(ProcessCategory.class, Cnd.NEW());
return Result.success(list);
}
@At("/list")
@Ok("json:full")
@SaCheckLogin
@ApiOperation("获取应用列表")
public Result list(@Param("categoryId") String categoryId, @Param("letter") String letter, @Param("keyword") String keyword, HttpServletRequest req) {
Sql sql = Sqls.create("""
SELECT t.*
@At("/list")
@Ok("json:full")
@SaCheckLogin
@ApiOperation("获取应用列表")
public Result list(@Param("categoryId") String categoryId, @Param("letter") String letter, @Param("keyword") String keyword, HttpServletRequest req) {
Sql sql = Sqls.create("""
SELECT t.*,(select picIcon from wf_process_design where name = t.name) as picIcon
FROM wf_process_define t
INNER JOIN (
SELECT name, MAX(id) AS max_id
@@ -55,15 +55,15 @@ public class SysV4ServController {
) sub ON t.name = sub.name AND t.id = sub.max_id
$condition
""");
Cnd cnd = Cnd.NEW();
if (StrUtil.isNotBlank(keyword)) {
cnd.where().andLike("t.disPlayName", keyword);
}
cnd.andEX("t.category", "=", categoryId);
sql.setCondition(cnd);
List<NutMap> list = sysMenuService.listMap(sql);
return Result.success(list);
}
Cnd cnd = Cnd.NEW();
if (StrUtil.isNotBlank(keyword)) {
cnd.where().andLike("t.disPlayName", keyword);
}
cnd.andEX("t.category", "=", categoryId);
sql.setCondition(cnd);
List<NutMap> list = sysMenuService.listMap(sql);
return Result.success(list);
}
}
@@ -308,7 +308,7 @@ public class SysUserServiceImpl extends BaseServiceImpl<Sys_user> implements Sys
String decodePwd = Base64Decoder.decodeStr(passowrd);
String hashedPassword = PwdUtil.getPassword(decodePwd, user.getSalt());
if (!Strings.sNull(hashedPassword).equalsIgnoreCase(user.getPassword())) {
// throw new BaseException("用户名或者密码不正确");
throw new BaseException("用户名或者密码不正确");
}
user = this.fetchLinks(user, "unit");
if (Lang.isNotEmpty(user.getUnit()) && StrUtil.isNotBlank(user.getUnit().getUnionId())) {
Binary file not shown.

After

Width:  |  Height:  |  Size: 356 KiB

@@ -327,11 +327,10 @@ function createLoading(text = '加载中...') {
})
}
function getBaseSubAppPath() {
const pathname = window.location.pathname;
function getBaseSubAppPath(pathname = window.location.pathname) {
const startIndex = pathname.indexOf('/platform');
if (startIndex === -1) {
throw new Error('Target path not found in URL');
return pathname
}
return pathname.substring(startIndex);
}
@@ -341,7 +340,7 @@ function getFullSubAppPath() {
const search = window.location.search; // 包含 ?appId=...
const startIndex = pathname.indexOf('/platform');
if (startIndex === -1) {
throw new Error('Target path not found in URL');
return pathname
}
return pathname.substring(startIndex) + search;
}
@@ -434,6 +434,10 @@ module.exports = {
let result = []
if (response && response.code === 0 && file.status === "success") {
fileList.forEach((f) => {
if(f.response.data.includes('webvpn')) {
const index = f.response.data.indexOf('/platform')
f.response.data = f.response.data.substring(index)
}
result.push(f)
})
} else {
+21 -4
View File
@@ -309,6 +309,7 @@ layout("/layouts/v4/baseLayout.html"){
},
methods: {
menuSelect(index, indexPath) {
debugger
try {
const app = JSON.parse(window.sessionStorage.getItem("zhgh_sub_app"))
window.sessionStorage.setItem("zhgh_sub_app_left_menu_active_index-" + app.id, index)
@@ -318,6 +319,7 @@ layout("/layouts/v4/baseLayout.html"){
},
// 获取菜单
getMenus(appId) {
debugger
if (!appId) return
this.$axios.post("/platform/sys/user/subAppMenus", {appId}).then((res) => {
if (res.code === 0) {
@@ -332,6 +334,7 @@ layout("/layouts/v4/baseLayout.html"){
// 设置应用信息
setAppInfo(app) {
debugger
if (app) {
// 储存到缓存
window.sessionStorage.setItem("zhgh_sub_app", JSON.stringify(app))
@@ -347,6 +350,7 @@ layout("/layouts/v4/baseLayout.html"){
},
// 菜单回显
echoMenus() {
debugger
try {
const app = JSON.parse(window.sessionStorage.getItem("zhgh_sub_app"))
this.activeMenuIndex = window.sessionStorage.getItem("zhgh_sub_app_left_menu_active_index-" + app.id)
@@ -367,6 +371,7 @@ layout("/layouts/v4/baseLayout.html"){
// 地址选中
hrefSelect() {
debugger
function findMenuPath(menus, targetHref) {
function search(items, path) {
for (const item of items) {
@@ -385,7 +390,7 @@ layout("/layouts/v4/baseLayout.html"){
return search(menus, []);
}
const result = findMenuPath(this.menus, getBaseSubAppPath())
const result = findMenuPath(this.menus, window.location.pathname)
if(result){
this.activeMenuIndex = result[result.length-1]['id']
this.openedMenus = result.map(v=>v.id)
@@ -399,6 +404,7 @@ layout("/layouts/v4/baseLayout.html"){
// 默认选中
defaultSelect() {
debugger
// 查找第一个有href的子菜单
function findFirstChildWithHref(menus) {
for (const menu of menus) {
@@ -424,22 +430,33 @@ layout("/layouts/v4/baseLayout.html"){
}
const result = findFirstChildWithHref(this.menus)
debugger
if (result) {
this.activeMenuIndex = result.menu.id
this.openedMenus = result.parentIds
this.$nextTick(() => {
this.menuSelect(this.activeMenuIndex, this.openedMenus)
// 使用pjax跳转
commonUtil.pjaxPush(result.menu.href)
commonUtil.pjaxPush(getBaseSubAppPath(result.menu.href))
/*const tempLink = document.createElement('a')
tempLink.href = result.menu.href
tempLink.setAttribute('data-pjax', '')
tempLink.style.display = 'none'
document.body.appendChild(tempLink)
tempLink.click()
document.body.removeChild(tempLink)*/
})
}
},
init() {
debugger
// 页面加载时获取到正确的菜单
const pathname = getFullSubAppPath()
const pathname = window.location.pathname
if (!pathname.startsWith("/platform/v4/subApp")) {
this.$axios.post("/platform/sys/user/rootMenuByPath", {pathname}).then((res) => {
const path = getFullSubAppPath()
this.$axios.post("/platform/sys/user/rootMenuByPath", {pathname: path}).then((res) => {
if (res.code === 0) {
this.setAppInfo(res.data)
this.getMenus(res.data?.id)
+31 -28
View File
@@ -159,7 +159,7 @@ layout("/layouts/v4/baseLayout.html"){
align-items: center;
padding: 15px;
position: relative;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.app-card:hover {
@@ -334,12 +334,13 @@ layout("/layouts/v4/baseLayout.html"){
<!-- Left Sidebar -->
<div class="apps-sidebar">
<div
v-for="category in allCategories"
:key="category.id"
:class="['apps-sidebar-item', activeCategory === category.id ? 'active' : '']"
@click="changeCategory(category.id)"
v-for="category in allCategories"
:key="category.id"
:class="['apps-sidebar-item', activeCategory === category.id ? 'active' : '']"
@click="changeCategory(category.id)"
>
<i :class="category.icon || 'fa fa-th-large'"></i>
<img v-if="category.picIcon" :src="category.picIcon" :alt="category.name || ''" style="width: 20px"/>
<i v-else :class="category.icon || 'fa fa-th-large'"></i>
{{ category.name }}
</div>
</div>
@@ -355,29 +356,31 @@ layout("/layouts/v4/baseLayout.html"){
</div>
<!-- 字母过滤 -->
<!-- <div class="apps-filter">-->
<!-- <div class="apps-filter-title">首字母:</div>-->
<!-- <div class="apps-filter-tags alphabet-filter">-->
<!-- <div :class="['filter-tag', activeAlphabet === '' ? 'active' : '']" @click="changeAlphabet('')">全部</div>-->
<!-- <div-->
<!-- v-for="letter in alphabets"-->
<!-- :key="letter"-->
<!-- :class="['alphabet-item', activeAlphabet === letter ? 'active' : '']"-->
<!-- @click="changeAlphabet(letter)"-->
<!-- >-->
<!-- {{ letter }}-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="apps-filter">-->
<!-- <div class="apps-filter-title">首字母:</div>-->
<!-- <div class="apps-filter-tags alphabet-filter">-->
<!-- <div :class="['filter-tag', activeAlphabet === '' ? 'active' : '']" @click="changeAlphabet('')">全部</div>-->
<!-- <div-->
<!-- v-for="letter in alphabets"-->
<!-- :key="letter"-->
<!-- :class="['alphabet-item', activeAlphabet === letter ? 'active' : '']"-->
<!-- @click="changeAlphabet(letter)"-->
<!-- >-->
<!-- {{ letter }}-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
</div>
<!-- 应用网格 -->
<div class="apps-grid" v-if="applications.length > 0">
<div v-for="app in applications" :key="app.id" class="app-card" @click.stop="openApp(app)">
<div :class="['app-icon', app.iconType]">
<!-- <i v-if="app.icon && !app.picIcon" :class="app.icon"></i>-->
<!-- <img v-else-if="app.picIcon" :src="app.picIcon" :alt="app.name || ''" />-->
<i class="fa fa-skype"></i>
<!--<i v-if="app.icon && !app.picIcon" :class="app.icon"></i>
<img v-else-if="app.picIcon" :src="app.picIcon" :alt="app.name || ''" />-->
<!--<i class="fa fa-skype"></i>-->
<img v-if="app.picIcon" :src="app.picIcon" :alt="app.name || ''" />
<i v-else class="fa fa-skype"></i>
</div>
<div class="app-info">
<div class="app-title">{{ app.name }}</div>
@@ -385,9 +388,9 @@ layout("/layouts/v4/baseLayout.html"){
</div>
<div class="app-status" v-if="app.status">{{ app.status }}</div>
<div
:class="['favorite-icon', app.isFavorite ? 'active' : '']"
@click.stop="toggleFavorite(app.id)"
:title="app.isFavorite ? '取消收藏' : '收藏'"
:class="['favorite-icon', app.isFavorite ? 'active' : '']"
@click.stop="toggleFavorite(app.id)"
:title="app.isFavorite ? '取消收藏' : '收藏'"
>
<i :class="app.isFavorite ? 'el-icon-star-on' : 'el-icon-star-off'"></i>
</div>
@@ -505,8 +508,8 @@ layout("/layouts/v4/baseLayout.html"){
this.activeCategory === "all"
? ""
: this.activeCategory === "favorites" || this.activeCategory === "recommended"
? this.activeCategory
: this.activeCategory,
? this.activeCategory
: this.activeCategory,
letter: this.activeAlphabet,
keyword: this.searchKeyword
}
@@ -20,17 +20,13 @@ const entry = {
<!-- 应用块区域 -->
<div class="apps-container">
<div class="app-grid">
<div v-if="currentServices && currentServices.length > 0" class="app-item" v-for="(item, index) in currentServices" :key="index"
<div class="app-item" v-for="(item, index) in currentServices" :key="index"
@click="openService(item)">
<div class="app-icon">
<img :src="item.picIcon" alt="" />
</div>
<div class="app-name">{{ item.name }}</div>
</div>
<div v-if="currentServices.length === 0" class="no-entry-placeholder">
<div class="icon">📅</div>
<p>暂无数据</p>
</div>
</div>
</div>
</div>
@@ -129,7 +125,6 @@ const entry = {
margin-top: 5px;
display: flex;
gap: 20px;
margin-bottom: 20px;
border-bottom: 2px solid #e8e8e8;
padding-bottom: 10px;
}
@@ -173,12 +168,12 @@ const entry = {
justify-items: center; /* 子项内容居中(图标和文字) */
justify-content: start; /* 整体网格靠左对齐,避免居中 */
gap: 12px;
padding: 12px;
gap: 4px;
padding: 12px 4px;
background: #fff;
overflow-x: hidden;
height: calc(350px - 74px);
max-height: calc(350px - 74px);
overflow-y: auto;
}
@@ -187,11 +182,11 @@ const entry = {
display: flex;
flex-direction: column;
align-items: center;
padding: 12px;
border-radius: 8px;
background: #fff;
width: 100%;
max-width: 100%;
padding: 6px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@@ -248,32 +243,5 @@ const entry = {
gap: 12px;
}
}
.no-entry-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px;
color: #94a3b8;
text-align: center;
}
.no-entry-placeholder .icon {
font-size: 48px;
margin-bottom: 12px;
opacity: 0.6;
}
.no-entry-placeholder p {
margin: 4px 0 0;
font-size: 16px;
font-weight: 500;
}
.no-entry-placeholder .subtext {
font-size: 13px;
opacity: 0.8;
}
`
};
@@ -17,7 +17,7 @@ layout("/layouts/v4/baseLayout.html"){
.section-banner .banner-img img {
width: 100%;
height: 100%;
object-fit: cover;
/*object-fit: cover;*/
}
.section-wrapper {
@@ -1,13 +1,16 @@
const stats = {
template: /*language=HTML*/ `
<div class="stats-section">
<div class="stats-family">
<img src="/assets/platform/img/home/family.png"/>
</div>
<div class="stats-grid">
<!-- 待办 -->
<div
class="stat-item pending"
@click="handleStatClick('todo')"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
class="stat-item pending"
@click="handleStatClick('todo')"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
>
<div class="stat-icon">
<i class="fa fa-clock-o"></i>
@@ -20,10 +23,10 @@ const stats = {
<!-- 已办 -->
<div
class="stat-item completed"
@click="handleStatClick('done')"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
class="stat-item completed"
@click="handleStatClick('done')"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
>
<div class="stat-icon">
<i class="fa fa-check-circle"></i>
@@ -36,10 +39,10 @@ const stats = {
<!-- 消息 -->
<div
class="stat-item messages"
@click="handleStatClick('notification')"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
class="stat-item messages"
@click="handleStatClick('notification')"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
>
<div class="stat-icon">
<i class="fa fa-bell"></i>
@@ -52,10 +55,10 @@ const stats = {
<!-- 发起 -->
<div
class="stat-item reminders"
@click="handleStatClick('started')"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
class="stat-item reminders"
@click="handleStatClick('started')"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
>
<div class="stat-icon">
<i class="fa fa-file-text"></i>
@@ -110,23 +113,25 @@ const stats = {
style: /*language=CSS*/ `
/* 右侧统计区域 */
.stats-section {
position: absolute;
bottom: 24px;
right: 24px;
/*background: white;*/
color: #333;
padding: 20px;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
z-index: 10;
width: 680px;
width: 80%;
display: flex;
justify-content: space-between;
align-items: center;
margin: -130px auto 0;
/*border: 1px solid #e8e8e8;*/
}
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-columns: repeat(2, 1fr);
gap: 16px;
width: 32%;
margin-left: 20px;
}
.stat-item {
@@ -140,13 +145,15 @@ const stats = {
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
width: 100%;
height: 90px;
}
.stat-icon {
font-size: 20px;
width: 36px;
height: 36px;
font-size: 30px;
width: 50px;
height: 50px;
background: #e6f7ff;
color: #1890ff;
border-radius: 50%;
@@ -178,6 +185,7 @@ const stats = {
.stat-content {
display: flex;
flex-direction: column;
margin-left: 10px;
}
.stat-label {
@@ -192,5 +200,14 @@ const stats = {
font-weight: bold;
margin-top: 2px;
}
.stats-family {
width: 68%;
}
.stats-family img {
height: 190px !important;
border-radius: 30px;
}
`
};
+19 -18
View File
@@ -334,7 +334,8 @@ layout("/layouts/v4/baseLayout.html"){
:class="['apps-sidebar-item', activeCategory === category.id ? 'active' : '']"
@click="changeCategory(category.id)"
>
<i :class="category.icon || 'fa fa-th-large'"></i>
<img v-if="category.picIcon" :src="category.picIcon" :alt="category.name || ''" style="width: 20px"/>
<i v-else :class="category.icon || 'fa fa-th-large'"></i>
{{ category.name }}
</div>
</div>
@@ -350,29 +351,29 @@ layout("/layouts/v4/baseLayout.html"){
</div>
<!-- 字母过滤 -->
<!-- <div class="apps-filter">-->
<!-- <div class="apps-filter-title">首字母:</div>-->
<!-- <div class="apps-filter-tags alphabet-filter">-->
<!-- <div :class="['filter-tag', activeAlphabet === '' ? 'active' : '']" @click="changeAlphabet('')">-->
<!-- 全部-->
<!-- </div>-->
<!-- <div-->
<!-- v-for="letter in alphabets"-->
<!-- :key="letter"-->
<!-- :class="['alphabet-item', activeAlphabet === letter ? 'active' : '']"-->
<!-- @click="changeAlphabet(letter)"-->
<!-- >-->
<!-- {{ letter }}-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="apps-filter">-->
<!-- <div class="apps-filter-title">首字母:</div>-->
<!-- <div class="apps-filter-tags alphabet-filter">-->
<!-- <div :class="['filter-tag', activeAlphabet === '' ? 'active' : '']" @click="changeAlphabet('')">-->
<!-- 全部-->
<!-- </div>-->
<!-- <div-->
<!-- v-for="letter in alphabets"-->
<!-- :key="letter"-->
<!-- :class="['alphabet-item', activeAlphabet === letter ? 'active' : '']"-->
<!-- @click="changeAlphabet(letter)"-->
<!-- >-->
<!-- {{ letter }}-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
</div>
<!-- 应用网格 -->
<div class="apps-grid" v-if="applications.length > 0">
<div v-for="app in applications" :key="app.id" class="app-card" @click.stop="openApp(app)">
<div :class="['app-icon', app.iconType]">
<i v-if="app.icon" :class="app.icon"></i>
<img v-if="app.picIcon" :src="app.picIcon" :alt="app.name || ''" />
<i v-else class="fa fa-skype"></i>
</div>
<div class="app-info">
@@ -43,6 +43,15 @@ layout("/layouts/platform.html"){
:rules="{ required: true, message: '请输入类型名称', trigger: 'blur' }">
<el-input v-model="formData.name" placeholder="请输入类型名称"></el-input>
</el-form-item>
<el-form-item prop="picIcon" label="图片图标">
<file-upload
:value.sync="formData.picIcon"
:upload_number="1"
upload_mode="image"
upload_result_category="interval"
upload_result_type="url"
></file-upload>
</el-form-item>
<el-form-item label="图标" prop="icon">
<el-input v-model="formData.icon" placeholder="请输入图标"></el-input>
</el-form-item>
@@ -101,6 +101,15 @@ layout("/layouts/platform.html"){
<el-form-item label="手机端查看地址" prop="h5InstanceViewUrl">
<el-input v-model="formData.h5InstanceViewUrl" placeholder="请输入手机端发起地址"></el-input>
</el-form-item>
<el-form-item prop="picIcon" label="图片图标">
<file-upload
:value.sync="formData.picIcon"
:upload_number="1"
upload_mode="image"
upload_result_category="interval"
upload_result_type="url"
></file-upload>
</el-form-item>
<el-form-item label="图标" prop="icon">
<el-input v-model="formData.icon" placeholder="请输入图标"></el-input>
</el-form-item>
@@ -23,8 +23,10 @@ const apps = {
@click="onClickNav(index)"
>
<div class="nav-icon">
<i v-if="category.icon" :class="category.icon"></i>
<i v-else class="fa fa-book"></i>
<!--<i v-if="category.icon" :class="category.icon"></i>
<i v-else class="fa fa-book"></i>-->
<img v-if="category.picIcon" :src="category.picIcon" :alt="category.name || ''" style="width: 18px"/>
<i v-else :class="category.icon || 'fa fa-th-large'"></i>
</div>
<div class="nav-text">{{ category.name }}</div>
<div class="nav-indicator" v-if="activeTab === index"></div>
@@ -46,7 +48,7 @@ const apps = {
@touchmove="onTouchMove">
<!-- 图标 -->
<div class="app-grid-icon">
<van-icon v-if="app.picIcon" :name="app.picIcon" size="64" style="border-radius: 12px; width: 64px; height: 64px;"></van-icon>
<van-icon v-if="app.picIcon" :name="app.picIcon" size="45"></van-icon>
<van-icon v-else-if="app.icon" :name="app.icon" size="28"></van-icon>
<van-icon v-else name="apps-o" size="28"></van-icon>
</div>
@@ -57,7 +59,7 @@ const apps = {
</div>
<!-- 空状态 -->
<van-empty v-else description="暂无应用"></van-empty>
</div>
</div>
@@ -75,7 +77,8 @@ const apps = {
class="grid-item"
@click="navigateToMenu(menu)"
>
<div class="grid-icon">
<img v-if="menu.picIcon" :src="menu.picIcon" :alt="menu.name || ''" style="width: 48px" class="grid-img"/>
<div v-else class="grid-icon">
<van-icon :name="menu.icon || 'apps-o'" size="24"></van-icon>
</div>
<div class="grid-name">{{ menu.name }}</div>
@@ -407,11 +410,11 @@ const apps = {
.app-grid {
display: grid;
/* 改为自适应列数:每格最小 80px,自动换行 */
grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
justify-items: center; /* 子项内容居中(图标和文字) */
justify-content: start; /* 整体网格靠左对齐,避免居中 */
gap: 12px;
padding: 12px;
background: #fff;
@@ -442,25 +445,25 @@ const apps = {
}
.app-grid-icon {
width: 64px;
height: 64px;
max-width: 64px;
max-height: 64px;
border-radius: 12px;
background: #f2f3f5;
width: 45px;
height: 45px;
max-width: 45px;
max-height: 45px;
/*border-radius: 12px;
background: #f2f3f5;*/
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 6px;
overflow: hidden;
border: 2px solid transparent;
/*border: 2px solid transparent;*/
transition: all 0.2s ease;
}
.app-grid-name {
width: 100%;
font-size: 12px;
font-size: 14px;
color: #323233;
text-align: center;
overflow: hidden;
@@ -540,6 +543,17 @@ const apps = {
color: #fff;
}
/deep/ .grid-img {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
color: #fff;
}
/deep/ .grid-name {
font-size: 14px;
font-weight: 500;
@@ -576,6 +590,6 @@ const apps = {
font-size: 16px;
color: #c8c9cc;
}
`
}
@@ -178,7 +178,8 @@ const todo = {
// 处理任务
onView(task) {
const {taskId, taskKey, instanceId, businessNo, formKey} = task;
this.$toast("暂未开通从当前地址点击查看!");
return;
if (!formKey) {
this.$toast("当前流程没有配置地址");
return;
File diff suppressed because one or more lines are too long
-39
View File
@@ -1,47 +1,8 @@
package com.budwk.app;
import cn.hutool.core.codec.Base64;
import cn.hutool.core.util.CharsetUtil;
import cn.hutool.crypto.digest.DigestUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.budwk.app.base.sms.impl.njupt.SmsNjuptServiceImpl;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.List;
public class Test {
public static void main(String[] args) {
String appId = "1926887238437818370";
String secret = "32df31fcf4fc43f9a647ee1f47134f36";
long ts = System.currentTimeMillis();
String sign = Base64.encode(DigestUtil.md5Hex(appId + secret + ts, CharsetUtil.CHARSET_UTF_8));
HttpRequest httpRequest = HttpUtil.createPost("https://sjzcpt.nnu.edu.cn/cdsp/data-api/v2/DS0005");
httpRequest.header("Content-Type", "application/json");
httpRequest.header("appId", appId);
httpRequest.header("timestamp", String.valueOf(ts));
httpRequest.header("sign", sign);
httpRequest.body("{}");
String body = httpRequest.execute().body();
System.out.println(body);
// JSONObject entries = JSONUtil.parseObj(body);
// JSONArray value = entries.getJSONArray("value");
//
// for (Object o : value) {
// JSONObject jsonObject = (JSONObject) o;
// }
}