/[projects]/dao/JavaPumpClient/src/Samples/ServiceModel/Microsoft/IRemoteControlProxy.java
ViewVC logotype

Diff of /dao/JavaPumpClient/src/Samples/ServiceModel/Microsoft/IRemoteControlProxy.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2058 by torben, Tue Jul 9 19:37:14 2013 UTC revision 2059 by torben, Wed Aug 28 06:55:13 2013 UTC
# Line 1  Line 1 
1  package Samples.ServiceModel.Microsoft;  package Samples.ServiceModel.Microsoft;
2    
3  public class IRemoteControlProxy implements Samples.ServiceModel.Microsoft.IRemoteControl {  public class IRemoteControlProxy implements Samples.ServiceModel.Microsoft.IRemoteControl {
4    private String _endpoint = null;    private String _endpoint = null;
5    private Samples.ServiceModel.Microsoft.IRemoteControl iRemoteControl = null;    private Samples.ServiceModel.Microsoft.IRemoteControl iRemoteControl = null;
6        
7    public IRemoteControlProxy() {    public IRemoteControlProxy() {
8      _initIRemoteControlProxy();      _initIRemoteControlProxy();
9    }    }
10        
11    public IRemoteControlProxy(String endpoint) {    public IRemoteControlProxy(String endpoint) {
12      _endpoint = endpoint;      _endpoint = endpoint;
13      _initIRemoteControlProxy();      _initIRemoteControlProxy();
14    }    }
15        
16    private void _initIRemoteControlProxy() {    private void _initIRemoteControlProxy() {
17      try {      try {
18        iRemoteControl = (new org.tempuri.RemoteControlLocator()).getBasicHttpBinding_IRemoteControl();        iRemoteControl = (new org.tempuri.RemoteControlLocator()).getBasicHttpBinding_IRemoteControl();
19        if (iRemoteControl != null) {        if (iRemoteControl != null) {
20          if (_endpoint != null)          if (_endpoint != null)
21            ((javax.xml.rpc.Stub)iRemoteControl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);            ((javax.xml.rpc.Stub)iRemoteControl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
22          else          else
23            _endpoint = (String)((javax.xml.rpc.Stub)iRemoteControl)._getProperty("javax.xml.rpc.service.endpoint.address");            _endpoint = (String)((javax.xml.rpc.Stub)iRemoteControl)._getProperty("javax.xml.rpc.service.endpoint.address");
24        }        }
25                
26      }      }
27      catch (javax.xml.rpc.ServiceException serviceException) {}      catch (javax.xml.rpc.ServiceException serviceException) {}
28    }    }
29        
30    public String getEndpoint() {    public String getEndpoint() {
31      return _endpoint;      return _endpoint;
32    }    }
33        
34    public void setEndpoint(String endpoint) {    public void setEndpoint(String endpoint) {
35      _endpoint = endpoint;      _endpoint = endpoint;
36      if (iRemoteControl != null)      if (iRemoteControl != null)
37        ((javax.xml.rpc.Stub)iRemoteControl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);        ((javax.xml.rpc.Stub)iRemoteControl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
38            
39    }    }
40        
41    public Samples.ServiceModel.Microsoft.IRemoteControl getIRemoteControl() {    public Samples.ServiceModel.Microsoft.IRemoteControl getIRemoteControl() {
42      if (iRemoteControl == null)      if (iRemoteControl == null)
43        _initIRemoteControlProxy();        _initIRemoteControlProxy();
44      return iRemoteControl;      return iRemoteControl;
45    }    }
46        
47    public java.lang.String[] getTransports() throws java.rmi.RemoteException{    public java.lang.String[] getTransports() throws java.rmi.RemoteException{
48      if (iRemoteControl == null)      if (iRemoteControl == null)
49        _initIRemoteControlProxy();        _initIRemoteControlProxy();
50      return iRemoteControl.getTransports();      return iRemoteControl.getTransports();
51    }    }
52        
53    public org.datacontract.schemas._2004._07.DaoMqPump2.StatusData getTransportStatus(java.lang.String transport) throws java.rmi.RemoteException{    public org.datacontract.schemas._2004._07.DaoMqPump2.StatusData getTransportStatus(java.lang.String transport) throws java.rmi.RemoteException{
54      if (iRemoteControl == null)      if (iRemoteControl == null)
55        _initIRemoteControlProxy();        _initIRemoteControlProxy();
56      return iRemoteControl.getTransportStatus(transport);      return iRemoteControl.getTransportStatus(transport);
57    }    }
58        
59    public void setTransportEnabled(java.lang.String transport, java.lang.Boolean enabled) throws java.rmi.RemoteException{    public void setTransportEnabled(java.lang.String transport, java.lang.Boolean enabled) throws java.rmi.RemoteException{
60      if (iRemoteControl == null)      if (iRemoteControl == null)
61        _initIRemoteControlProxy();        _initIRemoteControlProxy();
62      iRemoteControl.setTransportEnabled(transport, enabled);      iRemoteControl.setTransportEnabled(transport, enabled);
63    }    }
64        
65    public java.lang.String[] getTransportLog(java.lang.String transport) throws java.rmi.RemoteException{    public java.lang.String[] getTransportLog(java.lang.String transport) throws java.rmi.RemoteException{
66      if (iRemoteControl == null)      if (iRemoteControl == null)
67        _initIRemoteControlProxy();        _initIRemoteControlProxy();
68      return iRemoteControl.getTransportLog(transport);      return iRemoteControl.getTransportLog(transport);
69    }    }
70        
71    public java.lang.String getTransportDirection(java.lang.String transport) throws java.rmi.RemoteException{    public java.lang.String getTransportDirection(java.lang.String transport) throws java.rmi.RemoteException{
72      if (iRemoteControl == null)      if (iRemoteControl == null)
73        _initIRemoteControlProxy();        _initIRemoteControlProxy();
74      return iRemoteControl.getTransportDirection(transport);      return iRemoteControl.getTransportDirection(transport);
75    }    }
76        
77    public java.lang.String getTransportQueueName(java.lang.String transport) throws java.rmi.RemoteException{    public java.lang.String getTransportQueueName(java.lang.String transport) throws java.rmi.RemoteException{
78      if (iRemoteControl == null)      if (iRemoteControl == null)
79        _initIRemoteControlProxy();        _initIRemoteControlProxy();
80      return iRemoteControl.getTransportQueueName(transport);      return iRemoteControl.getTransportQueueName(transport);
81    }    }
82        
83    public java.lang.String getTransportInsertQuery(java.lang.String transport) throws java.rmi.RemoteException{    public java.lang.String getTransportInsertQuery(java.lang.String transport) throws java.rmi.RemoteException{
84      if (iRemoteControl == null)      if (iRemoteControl == null)
85        _initIRemoteControlProxy();        _initIRemoteControlProxy();
86      return iRemoteControl.getTransportInsertQuery(transport);      return iRemoteControl.getTransportInsertQuery(transport);
87    }    }
88        
89    public java.lang.String getTransportReadQuery(java.lang.String transport) throws java.rmi.RemoteException{    public java.lang.String getTransportReadQuery(java.lang.String transport) throws java.rmi.RemoteException{
90      if (iRemoteControl == null)      if (iRemoteControl == null)
91        _initIRemoteControlProxy();        _initIRemoteControlProxy();
92      return iRemoteControl.getTransportReadQuery(transport);      return iRemoteControl.getTransportReadQuery(transport);
93    }    }
94        
95    public java.lang.String getTransportUpdateQuery(java.lang.String transport) throws java.rmi.RemoteException{    public java.lang.String getTransportUpdateQuery(java.lang.String transport) throws java.rmi.RemoteException{
96      if (iRemoteControl == null)      if (iRemoteControl == null)
97        _initIRemoteControlProxy();        _initIRemoteControlProxy();
98      return iRemoteControl.getTransportUpdateQuery(transport);      return iRemoteControl.getTransportUpdateQuery(transport);
99    }    }
100        
101        
102  }  }

Legend:
Removed from v.2058  
changed lines
  Added in v.2059

  ViewVC Help
Powered by ViewVC 1.1.20