Ignore:
Timestamp:
2001-03-12T13:23:03+13:00 (23 years ago)
Author:
say1
Message:

many changes to the import lines ...

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  
    2121package org.nzdl.gsdl.service;
    2222
    23 import java.util.*;
     23import java.util.HashMap;
     24import java.util.Map;
     25import java.util.Set;
     26import java.util.Collection;
     27
    2428import org.nzdl.gsdl.util.NzdlConstants;
    2529
  • trunk/java-client/org/nzdl/gsdl/service/NzdlQueryHit.java

    r2155 r2159  
    2121package org.nzdl.gsdl.service;
    2222
    23 import java.util.*;
     23import java.util.Map;
     24import java.util.Set;
     25import java.util.Collection;
    2426
    2527/**
  • trunk/java-client/org/nzdl/gsdl/service/NzdlRequest.java

    r2155 r2159  
    2121package org.nzdl.gsdl.service;
    2222
     23import java.util.List;
     24
    2325import org.nzdl.gsdl.corba.gsdlInterface.*;
    2426import org.nzdl.gsdl.util.*;
    25 import java.util.*;
    2627
    2728/**
  • trunk/java-client/org/nzdl/gsdl/service/NzdlResponse.java

    r2152 r2159  
    2121package org.nzdl.gsdl.service;
    2222
    23 import java.util.*;
     23import java.util.HashMap;
     24import java.util.HashSet;
     25import java.util.Map;
     26import java.util.Set;
     27import java.util.List;
     28import java.util.ArrayList;
    2429
    2530import org.nzdl.gsdl.service.*;
  • trunk/java-client/org/nzdl/gsdl/service/NzdlResultSet.java

    r2155 r2159  
    2121package org.nzdl.gsdl.service;
    2222
    23 import java.util.*;
     23import java.util.Set;
     24import java.util.Map;
     25import java.util.List;
     26import java.util.ArrayList;
     27import java.util.HashMap;
     28import java.util.ListIterator;
     29
    2430
    2531/**
  • trunk/java-client/org/nzdl/gsdl/service/NzdlService.java

    r2155 r2159  
    2121package org.nzdl.gsdl.service;
    2222
    23 import java.util.*;
     23import java.util.Set;
     24import java.util.Map;
     25import java.util.List;
    2426
    2527/**
  • trunk/java-client/org/nzdl/gsdl/service/NzdlServiceServer.java

    r2119 r2159  
    2525import java.io.Serializable;
    2626import 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.
     27import java.util.Set;
     28import java.util.Iterator;
     29
    3430import org.omg.CORBA.ORB;
    3531
     
    4642
    4743/**
    48  * SimpleServer
    49  *
    50  * Based on algorithms in ...
     44 * Act as a Server.
     45 *
     46 * Designed as a mirror image of NzdlServiceClient
    5147 *
    5248 * @author stuart yeates ([email protected])
    5349 * @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
    5554 *
    5655 */
     
    5958public class NzdlServiceServer extends _corbaifaceImplBase {
    6059
     60  /** The underlying interface */
    6161  NzdlService nzdl = null;
    6262 
     63  /** The normal constructor */
    6364  public NzdlServiceServer(NzdlService service) {
    6465    nzdl = service;
    6566  }
    6667
    67   public NzdlServiceServer() {
     68  /** The beans constructor */
     69  protected NzdlServiceServer() {
    6870    nzdl = null;
    6971  }
    7072
     73  /** initialisation (not guaranteed to be called ...) */
    7174  public boolean initialise (corbaComErrorHolder error) {
    7275    // TODO should map the anything in NzdlService?
     
    7679    return true;
    7780  }
     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   */
    7887  public void configure (corbatext_t key,
    7988             corbatext_t[] cfgline,
     
    8796  }
    8897
     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   */
    89104  public void collectionList (corbatext_tarrayHolder collist,
    90105                  corbaComErrorHolder error) {
     
    108123    return;
    109124  }
     125  /**
     126   * Does the server have a specific collections?
     127   * @param has a boolean
     128   * @param error a corba error object
     129   */
    110130  public void hasCollection (corbatext_t corbaCollection,
    111131                 org.omg.CORBA.BooleanHolder has,
     
    122142    return;
    123143  }
     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   */
    124150  public boolean ping (corbatext_t collection,
    125151               corbaComErrorHolder error) {
     
    127153    return  nzdl.hasCollection(name);
    128154  }
     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   */
    129163  public void getDocument (corbatext_t collection,
    130164               corbaDocRequestHolder request,
Note: See TracChangeset for help on using the changeset viewer.