示例#1
0
文件: Inform.java 项目: RoxLiu/mynms
 @Override
 protected void parseBody2Filed(Element body, SoapMessageModel soapMessageModel) {
   deviceId.parseBodyOfThis(body, soapMessageModel);
   maxEnvelopes = Integer.parseInt(getRequestElement(body, MAXENV));
   retryCount = Integer.parseInt(getRequestElement(body, RETRYCOUNT));
   currentTime = getRequestElement(body, CURRENTTIME);
   event.parseBodyOfThis(body, soapMessageModel);
   parameterList.parseBodyOfThis(body, soapMessageModel);
 }
示例#2
0
文件: Inform.java 项目: RoxLiu/mynms
 @Override
 public String toString() {
   StringBuilder sbd = new StringBuilder();
   sbd.append(" DeviceId:" + deviceId);
   sbd.append("\r\nMaxEnvelopes:" + maxEnvelopes);
   sbd.append(" RetryCount:" + retryCount);
   sbd.append(" CurrentTime:" + currentTime);
   sbd.append("\r\nEvent:" + event);
   sbd.append("\r\nParameterList:" + parameterList.toString());
   return super.toString() + sbd.toString();
 }
示例#3
0
文件: Inform.java 项目: RoxLiu/mynms
 @Override
 protected void addField2Body(Element body, SoapMessageModel soapMessageModel) {
   deviceId.addThisToBody(body, soapMessageModel);
   event.addThisToBody(body, soapMessageModel);
   Element maxnv = soapMessageModel.createElement(MAXENV);
   maxnv.setTextContent(Integer.toString((maxEnvelopes)));
   Element retry = soapMessageModel.createElement(RETRYCOUNT);
   retry.setTextContent(Integer.toString(retryCount));
   Element curren = soapMessageModel.createElement(CURRENTTIME);
   curren.setTextContent(currentTime);
   body.appendChild(maxnv);
   body.appendChild(retry);
   body.appendChild(curren);
   parameterList.addThisToBody(body, soapMessageModel);
 }