messagenotificationproxy.java

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

JAVA
55
字号
package cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.notification.v2_2._interface;

public class MessageNotificationProxy implements cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.notification.v2_2._interface.MessageNotification {
  private String _endpoint = null;
  private cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.notification.v2_2._interface.MessageNotification messageNotification = null;
  
  public MessageNotificationProxy() {
    _initMessageNotificationProxy();
  }
  
  private void _initMessageNotificationProxy() {
    try {
      messageNotification = (new cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.notification.v2_2.service.MessageNotificationServiceLocator()).getMessageNotification();
      if (messageNotification != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)messageNotification)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)messageNotification)._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 (messageNotification != null)
      ((javax.xml.rpc.Stub)messageNotification)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.notification.v2_2._interface.MessageNotification getMessageNotification() {
    if (messageNotification == null)
      _initMessageNotificationProxy();
    return messageNotification;
  }
  
  public void notifyMessageReception(java.lang.String registrationIdentifier, cn.com.chinatelecom.www.schema.ctcc.multimedia_messaging.v2_2.MessageReference message) throws java.rmi.RemoteException{
    if (messageNotification == null)
      _initMessageNotificationProxy();
    messageNotification.notifyMessageReception(registrationIdentifier, message);
  }
  
  public void notifyMessageDeliveryReceipt(java.lang.String correlator, cn.com.chinatelecom.www.schema.ctcc.multimedia_messaging.v2_2.DeliveryInformation deliveryStatus) throws java.rmi.RemoteException{
    if (messageNotification == null)
      _initMessageNotificationProxy();
    messageNotification.notifyMessageDeliveryReceipt(correlator, deliveryStatus);
  }
  
  
}

⌨️ 快捷键说明

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