Changeset 16359 for gli/trunk


Ignore:
Timestamp:
2008-07-11T15:11:04+12:00 (16 years ago)
Author:
ak19
Message:

Changes for when client FLI runs against a remote GS server and remote Fedora

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/FedoraInfo.java

    r14975 r16359  
    3535public class FedoraInfo
    3636{
    37     public String home = null;
     37    private boolean active = false;
     38    private String home = null;
    3839
    39     public String hostname = null;
    40     public String port     = null;
    41     public String username = null;
    42     public String password = null;
    43     public String 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;
    4445
    4546    public FedoraInfo()
    4647    {   
    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");
    5249    }
    5350
     
    6158    }
    6259
     60    // Called when we are attempting to run fedora
     61    public void setActive(boolean active) {
     62    this.active = active;
     63    }
    6364
    6465    public boolean isActive()
    6566    {
    66     return home != null;
     67    return (home != null || active);
    6768    }
    6869
     
    133134    }
    134135
     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    }
    135146}
Note: See TracChangeset for help on using the changeset viewer.