Changeset 2159 for trunk/java-client/org/nzdl/gsdl/service
- Timestamp:
- 2001-03-12T13:23:03+13:00 (23 years ago)
- Location:
- trunk/java-client/org/nzdl/gsdl/service
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/org/nzdl/gsdl/service/NzdlQuery.java
r2108 r2159 21 21 package org.nzdl.gsdl.service; 22 22 23 import java.util.*; 23 import java.util.HashMap; 24 import java.util.Map; 25 import java.util.Set; 26 import java.util.Collection; 27 24 28 import org.nzdl.gsdl.util.NzdlConstants; 25 29 -
trunk/java-client/org/nzdl/gsdl/service/NzdlQueryHit.java
r2155 r2159 21 21 package org.nzdl.gsdl.service; 22 22 23 import java.util.*; 23 import java.util.Map; 24 import java.util.Set; 25 import java.util.Collection; 24 26 25 27 /** -
trunk/java-client/org/nzdl/gsdl/service/NzdlRequest.java
r2155 r2159 21 21 package org.nzdl.gsdl.service; 22 22 23 import java.util.List; 24 23 25 import org.nzdl.gsdl.corba.gsdlInterface.*; 24 26 import org.nzdl.gsdl.util.*; 25 import java.util.*;26 27 27 28 /** -
trunk/java-client/org/nzdl/gsdl/service/NzdlResponse.java
r2152 r2159 21 21 package org.nzdl.gsdl.service; 22 22 23 import java.util.*; 23 import java.util.HashMap; 24 import java.util.HashSet; 25 import java.util.Map; 26 import java.util.Set; 27 import java.util.List; 28 import java.util.ArrayList; 24 29 25 30 import org.nzdl.gsdl.service.*; -
trunk/java-client/org/nzdl/gsdl/service/NzdlResultSet.java
r2155 r2159 21 21 package org.nzdl.gsdl.service; 22 22 23 import java.util.*; 23 import java.util.Set; 24 import java.util.Map; 25 import java.util.List; 26 import java.util.ArrayList; 27 import java.util.HashMap; 28 import java.util.ListIterator; 29 24 30 25 31 /** -
trunk/java-client/org/nzdl/gsdl/service/NzdlService.java
r2155 r2159 21 21 package org.nzdl.gsdl.service; 22 22 23 import java.util.*; 23 import java.util.Set; 24 import java.util.Map; 25 import java.util.List; 24 26 25 27 /** -
trunk/java-client/org/nzdl/gsdl/service/NzdlServiceServer.java
r2119 r2159 25 25 import java.io.Serializable; 26 26 import java.lang.Cloneable; 27 import java.util.*; 28 29 // HelloServer will use the naming service. 30 import org.omg.CosNaming.*; 31 // The package containing special exceptions thrown by the name service. 32 //import org.omg.CosNaming.NamingContextPackage.*; 33 // All CORBA applications need these classes. 27 import java.util.Set; 28 import java.util.Iterator; 29 34 30 import org.omg.CORBA.ORB; 35 31 … … 46 42 47 43 /** 48 * SimpleServer49 * 50 * Based on algorithms in ...44 * Act as a Server. 45 * 46 * Designed as a mirror image of NzdlServiceClient 51 47 * 52 48 * @author stuart yeates ([email protected]) 53 49 * @version $Revision$ 54 50 * @see org.nzdl.gsdl.service.NzdlService 51 * @see org.nzdl.gsdl.service.NzdlServiceClient 52 * @see org.nzdl.gsdl.service.NzdlServiceWrapper 53 * @see org.nzdl.gsdl.corba.gsdlInterface._corbaifaceImplBase 55 54 * 56 55 */ … … 59 58 public class NzdlServiceServer extends _corbaifaceImplBase { 60 59 60 /** The underlying interface */ 61 61 NzdlService nzdl = null; 62 62 63 /** The normal constructor */ 63 64 public NzdlServiceServer(NzdlService service) { 64 65 nzdl = service; 65 66 } 66 67 67 public NzdlServiceServer() { 68 /** The beans constructor */ 69 protected NzdlServiceServer() { 68 70 nzdl = null; 69 71 } 70 72 73 /** initialisation (not guaranteed to be called ...) */ 71 74 public boolean initialise (corbaComErrorHolder error) { 72 75 // TODO should map the anything in NzdlService? … … 76 79 return true; 77 80 } 81 82 /** 83 * Allow the client to configure a CORBA server. 84 * @param key the parameter to be set. 85 * @param values what that parameter will be set to. 86 */ 78 87 public void configure (corbatext_t key, 79 88 corbatext_t[] cfgline, … … 87 96 } 88 97 98 99 /** 100 * Obtain the set of collection names for a Greenstone library. 101 * @param collist A set of collection names in string format. 102 * @param error a corba error object 103 */ 89 104 public void collectionList (corbatext_tarrayHolder collist, 90 105 corbaComErrorHolder error) { … … 108 123 return; 109 124 } 125 /** 126 * Does the server have a specific collections? 127 * @param has a boolean 128 * @param error a corba error object 129 */ 110 130 public void hasCollection (corbatext_t corbaCollection, 111 131 org.omg.CORBA.BooleanHolder has, … … 122 142 return; 123 143 } 144 /** 145 * Is the collection avalibale for use? 146 * @param error a corba error object 147 * @return <tt>true</tt> if the collection is avaliable, 148 * <tt>false</tt> otherwise 149 */ 124 150 public boolean ping (corbatext_t collection, 125 151 corbaComErrorHolder error) { … … 127 153 return nzdl.hasCollection(name); 128 154 } 155 156 /** 157 * Get a document 158 * @param collection the collection the document is in 159 * @param request the details of the document 160 * @param response the document 161 * @param error a corba error object 162 */ 129 163 public void getDocument (corbatext_t collection, 130 164 corbaDocRequestHolder request,
Note:
See TracChangeset
for help on using the changeset viewer.