1 package com.buckosoft.PicMan.PicManService; 2 3 public class PicManServiceProxy implements com.buckosoft.PicMan.PicManService.PicManService_PortType { 4 private String _endpoint = null; 5 private com.buckosoft.PicMan.PicManService.PicManService_PortType picManService_PortType = null; 6 7 public PicManServiceProxy() { 8 _initPicManServiceProxy(); 9 } 10 11 public PicManServiceProxy(String endpoint) { 12 _endpoint = endpoint; 13 _initPicManServiceProxy(); 14 } 15 16 private void _initPicManServiceProxy() { 17 try { 18 picManService_PortType = (new com.buckosoft.PicMan.PicManService.PicManService_ServiceLocator()).getPicManServiceSOAP(); 19 if (picManService_PortType != null) { 20 if (_endpoint != null) 21 ((javax.xml.rpc.Stub)picManService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 22 else 23 _endpoint = (String)((javax.xml.rpc.Stub)picManService_PortType)._getProperty("javax.xml.rpc.service.endpoint.address"); 24 } 25 26 } 27 catch (javax.xml.rpc.ServiceException serviceException) {} 28 } 29 30 public String getEndpoint() { 31 return _endpoint; 32 } 33 34 public void setEndpoint(String endpoint) { 35 _endpoint = endpoint; 36 if (picManService_PortType != null) 37 ((javax.xml.rpc.Stub)picManService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 38 39 } 40 41 public com.buckosoft.PicMan.PicManService.PicManService_PortType getPicManService_PortType() { 42 if (picManService_PortType == null) 43 _initPicManServiceProxy(); 44 return picManService_PortType; 45 } 46 47 public int getSetCount(java.lang.String auth) throws java.rmi.RemoteException{ 48 if (picManService_PortType == null) 49 _initPicManServiceProxy(); 50 return picManService_PortType.getSetCount(auth); 51 } 52 53 public java.lang.String getSetsCRC(java.lang.String auth) throws java.rmi.RemoteException{ 54 if (picManService_PortType == null) 55 _initPicManServiceProxy(); 56 return picManService_PortType.getSetsCRC(auth); 57 } 58 59 public java.lang.String[] getPicListNewerThan(java.lang.String auth, java.util.Calendar timestamp) throws java.rmi.RemoteException{ 60 if (picManService_PortType == null) 61 _initPicManServiceProxy(); 62 return picManService_PortType.getPicListNewerThan(auth, timestamp); 63 } 64 65 public java.lang.String[] getFilterListNewerThan(java.lang.String auth, java.util.Calendar timestamp) throws java.rmi.RemoteException{ 66 if (picManService_PortType == null) 67 _initPicManServiceProxy(); 68 return picManService_PortType.getFilterListNewerThan(auth, timestamp); 69 } 70 71 public com.buckosoft.PicMan.PicManService.PicFilterSOAP[] getFiltersForPic(java.lang.String auth, java.lang.String picName) throws java.rmi.RemoteException{ 72 if (picManService_PortType == null) 73 _initPicManServiceProxy(); 74 return picManService_PortType.getFiltersForPic(auth, picName); 75 } 76 77 public int addFilter(java.lang.String auth, java.lang.String picName, com.buckosoft.PicMan.PicManService.PicFilterSOAP[] picFilters) throws java.rmi.RemoteException{ 78 if (picManService_PortType == null) 79 _initPicManServiceProxy(); 80 return picManService_PortType.addFilter(auth, picName, picFilters); 81 } 82 83 public void getPicAttributes(java.lang.String auth, java.lang.String picName, javax.xml.rpc.holders.IntHolder pid, javax.xml.rpc.holders.StringHolder name, javax.xml.rpc.holders.IntHolder rid, javax.xml.rpc.holders.StringHolder location, javax.xml.rpc.holders.CalendarHolder picDate, javax.xml.rpc.holders.CalendarHolder timestamp) throws java.rmi.RemoteException{ 84 if (picManService_PortType == null) 85 _initPicManServiceProxy(); 86 picManService_PortType.getPicAttributes(auth, picName, pid, name, rid, location, picDate, timestamp); 87 } 88 89 public byte[] getPicPic(java.lang.String auth, javax.xml.rpc.holders.StringHolder picName) throws java.rmi.RemoteException{ 90 if (picManService_PortType == null) 91 _initPicManServiceProxy(); 92 return picManService_PortType.getPicPic(auth, picName); 93 } 94 95 public java.lang.String putPic(java.lang.String auth, java.lang.String name, int rid, java.lang.String location, java.util.Calendar picDate, java.util.Calendar timestamp, byte[] pixelData) throws java.rmi.RemoteException{ 96 if (picManService_PortType == null) 97 _initPicManServiceProxy(); 98 return picManService_PortType.putPic(auth, name, rid, location, picDate, timestamp, pixelData); 99 } 100 101 public java.util.Calendar getClientSyncTimestamp(java.lang.String auth, java.lang.String host) throws java.rmi.RemoteException{ 102 if (picManService_PortType == null) 103 _initPicManServiceProxy(); 104 return picManService_PortType.getClientSyncTimestamp(auth, host); 105 } 106 107 public java.lang.String setClientSyncTimestamp(java.lang.String auth, java.lang.String host) throws java.rmi.RemoteException{ 108 if (picManService_PortType == null) 109 _initPicManServiceProxy(); 110 return picManService_PortType.setClientSyncTimestamp(auth, host); 111 } 112 113 public void getSet(java.lang.String auth, javax.xml.rpc.holders.IntHolder sid, javax.xml.rpc.holders.StringHolder name, javax.xml.rpc.holders.StringHolder description, javax.xml.rpc.holders.BooleanHolder active, javax.xml.rpc.holders.BooleanHolder metaSet, javax.xml.rpc.holders.BooleanHolder microSet, javax.xml.rpc.holders.BooleanHolder nanoSet, javax.xml.rpc.holders.CalendarHolder editDate) throws java.rmi.RemoteException{ 114 if (picManService_PortType == null) 115 _initPicManServiceProxy(); 116 picManService_PortType.getSet(auth, sid, name, description, active, metaSet, microSet, nanoSet, editDate); 117 } 118 119 public java.lang.String putSet(java.lang.String auth, int sid, java.lang.String name, java.lang.String description, boolean active, boolean metaSet, boolean microSet, boolean nanoSet, java.util.Calendar editDate) throws java.rmi.RemoteException{ 120 if (picManService_PortType == null) 121 _initPicManServiceProxy(); 122 return picManService_PortType.putSet(auth, sid, name, description, active, metaSet, microSet, nanoSet, editDate); 123 } 124 125 126 }