Changeset 2186


Ignore:
Timestamp:
2001-03-16T09:04:52+13:00 (23 years ago)
Author:
say1
Message:

added comments to corbaiface.idl and an hostname accessor to NzdlCollectionInfo

Location:
trunk/java-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/corbaiface.idl

    r2172 r2186  
    66
    77typedef sequence<string> stringSeq;
     8
     9//
     10// Used to textual arguments backwards and forwards across
     11// the interface. The encoding is 0 for full unicode character
     12// data and undefined otherwise.
     13//
    814
    915struct corbatext_t
     
    1824typedef corbatext_tarray corbatext_tset;
    1925
     26//
     27// A map of names to values. Names may occur twice. Used largely
     28// for passing metadata around
     29//
     30
    2031struct corbatext_tmap
    2132{
     
    2738
    2839enum corbaComError
    29 { corbaNoError,
     40{
     41  // There were no errors
     42  corbaNoError,
     43  // The server could not authenticate the client or the
     44  // authentication indicated insufficient priviledges
    3045  corbaAuthenticationFailure,
     46  // ??
    3147  corbaProtocolError,
     48  // ??
    3249  corbaConfigurationError,
     50  // The server is unable to provide service due to an
     51  // unspecified system problem on the server side.
    3352  corbaSystemProblem
    3453};
     
    4059struct corbaShortColInfo
    4160{
     61  // the textual name of the collection
    4262  corbatext_t name;
     63  // the textual name of the server
    4364  corbatext_t host;
     65  // ???
    4466  long        response;
    4567};
     
    4870{
    4971  corbaShortColInfo shoftInfo;
     72  // the collection is public
    5073  boolean           isPublic;
     74  // the collection is reliable
    5175  boolean           isBeta;
     76  // the timestamp of the collection building
    5277  unsigned long     buildDate;
     78  // ???
    5379  corbatext_tarray  ccsCols;        // Added 05/04/2000
     80  // ???
    5481  corbatext_tarray  languages;
     82  // the number of documents in the collection
    5583  unsigned long     numDocs;
     84  // the number of words in the collection
    5685  unsigned long     numWords;
     86  // the number of bytes in the collection
    5787  unsigned long     numBytes;
     88  // the collection level metadata
    5889  corbatext_tmap    collectionMeta;
     90  // ???
    5991  corbatext_tmap    format;
     92  // ???
    6093  corbatext_tmap    building;
     94  // the domain for http request for associated files and images
    6195  corbatext_t       httpdomain ;    // Added 27/07/2000
     96  // the domain for prefix request for associated files and images
    6297  corbatext_t       httpprefix;     // Added 27/07/2000
     98  // the textual name of the receptionist
    6399  corbatext_t       receptionist;
    64100};
     
    70106struct corbaDocRequest
    71107{
     108  // the document ID
    72109  corbatext_t OID;
     110  // the mine type the Doc should be in, or "" for any
    73111  corbatext_t docType;
     112  // ??
    74113  corbatext_t docFormat;
    75114};
     
    81120struct corbaDocResponse
    82121{
     122  // the actual document
    83123  corbatext_t doc;
    84124};
  • trunk/java-client/org/nzdl/gsdl/service/NzdlCollectionInfo.java

    r2179 r2186  
    5050    if (!getName().equals(""))
    5151      System.out.println("getName working !");
     52    if (!getHostName().equals(""))
     53      System.out.println("getHostName working !");
    5254  }
    5355
     
    6870  public String getName() {
    6971    return NzdlCorbaFactory.toString( m_Info.shoftInfo.name ) ;
     72  }
     73  /**
     74   * Return the Hostname
     75   */
     76  public String getHostName() {
     77    return NzdlCorbaFactory.toString( m_Info.shoftInfo.host ) ;
    7078  }
    7179  /**
Note: See TracChangeset for help on using the changeset viewer.