smsnotificationproxy.java

来自「一个ISAG Server的模拟器」· Java 代码 · 共 55 行

JAVA
55
字号
package cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1._interface;

public class SmsNotificationProxy implements cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1._interface.SmsNotification {
  private String _endpoint = null;
  private cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1._interface.SmsNotification smsNotification = null;
  
  public SmsNotificationProxy() {
    _initSmsNotificationProxy();
  }
  
  private void _initSmsNotificationProxy() {
    try {
      smsNotification = (new cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1.service.SmsNotificationServiceLocator()).getSmsNotification();
      if (smsNotification != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)smsNotification)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)smsNotification)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (smsNotification != null)
      ((javax.xml.rpc.Stub)smsNotification)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1._interface.SmsNotification getSmsNotification() {
    if (smsNotification == null)
      _initSmsNotificationProxy();
    return smsNotification;
  }
  
  public void notifySmsReception(java.lang.String registrationIdentifier, cn.com.chinatelecom.www.schema.ctcc.sms.v2_1.SmsMessage message) throws java.rmi.RemoteException{
    if (smsNotification == null)
      _initSmsNotificationProxy();
    smsNotification.notifySmsReception(registrationIdentifier, message);
  }
  
  public void notifySmsDeliveryReceipt(java.lang.String correlator, cn.com.chinatelecom.www.schema.ctcc.sms.v2_1.DeliveryInformation deliveryStatus) throws java.rmi.RemoteException{
    if (smsNotification == null)
      _initSmsNotificationProxy();
    smsNotification.notifySmsDeliveryReceipt(correlator, deliveryStatus);
  }
  
  
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?