Changeset 3992


Ignore:
Timestamp:
2003-03-26T12:06:46+12:00 (21 years ago)
Author:
kjdon
Message:

now stores site_http_address, passed in before configure. in Collection, a metadata element called httpPath is added to teh metadata list

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/collection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/collection/Collection.java

    r3986 r3992  
    106106
    107107    meta_list = doc_.createElement(GSXML.METADATA_ELEM + GSXML.LIST_MODIFIER);
    108     String httpPath = "http://bedrock.cs.waikato.ac.nz:8080/gsdl3" +
    109         "/sites/localsite/collect/" + cluster_name_ + "/images";
    110     GSXML.addMetadata(doc_, meta_list, "httpPath", httpPath);
     108    GSXML.addMetadata(doc_, meta_list, "httpPath", site_http_address_+"/collect/"+cluster_name_);
    111109    configureMetadata(meta_list);
    112110   
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/collection/ServiceCluster.java

    r3967 r3992  
    4848    /** base directory for the site that this cluster belongs to*/
    4949    protected String site_home_ = null;
    50 
     50    /** http address of the site that this cluster belongs to */
     51    protected String site_http_address_ = null;
    5152    /** The name of the cluster - for a collection, this is the collection name*/
    5253    protected String cluster_name_ = null;
     
    7677    public void setSiteHome(String home) {
    7778    site_home_ = home;
     79    }
     80
     81    public void setSiteAddress(String address) {
     82    site_http_address_ = address;
    7883    }
    7984
     
    212217
    213218        s.setSiteHome(site_home_);
     219        s.setSiteAddress(site_http_address_);
    214220        s.setClusterName(cluster_name_);
    215221        s.setMessageRouter(router_);
Note: See TracChangeset for help on using the changeset viewer.