Project

General

Profile

« Previous | Next » 

Revision 1013

Added by Jing Tao over 22 years ago

Add a method named getLocalReplicationServerName

View differences:

src/edu/ucsb/nceas/metacat/MetaCatUtil.java
549 549
    return version;  
550 550
  }//getVersionFromString
551 551
  
552
   /**
553
   * Method to get the name of local replication server
554
   */
555
   public String getLocalReplicationServerName()
556
   {
557
     String replicationServerName=null;
558
     String serverHost=null;
559
     serverHost=getOption("server");
560
     // append "context/servelet/replication" to the host name
561
     replicationServerName=serverHost+getOption("replicationpath");
562
     return replicationServerName;
563
       
564
   }
565
  
552 566
}

Also available in: Unified diff