Changeset 16359
- Timestamp:
- 2008-07-11T15:11:04+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/FedoraInfo.java
r14975 r16359 35 35 public class FedoraInfo 36 36 { 37 public String home = null; 37 private boolean active = false; 38 private String home = null; 38 39 39 p ublicString hostname = null;40 p ublicString port = null;41 p ublicString username = null;42 p ublicString password = null;43 p ublicString protocol = null;40 private String hostname = null; 41 private String port = null; 42 private String username = null; 43 private String password = null; 44 private String protocol = null; 44 45 45 46 public FedoraInfo() 46 47 { 47 this.hostname ="localhost"; 48 this.port = "8080"; 49 this.username = "fedoraAdmin"; 50 this.password = "fedoraAdmin"; 51 this.protocol = "http"; 48 this("localhost", "8080", "fedoraAdmin", "fedoraAdmin", "http"); 52 49 } 53 50 … … 61 58 } 62 59 60 // Called when we are attempting to run fedora 61 public void setActive(boolean active) { 62 this.active = active; 63 } 63 64 64 65 public boolean isActive() 65 66 { 66 return home != null;67 return (home != null || active); 67 68 } 68 69 … … 133 134 } 134 135 136 public String getBaseURL() 137 { 138 return this.protocol+"://"+this.hostname+":"+this.port+"/"; 139 } 140 141 // The library preview address for Fedora 142 public String getLibraryURL() 143 { 144 return this.getBaseURL() + "fedora/search"; 145 } 135 146 }
Note:
See TracChangeset
for help on using the changeset viewer.