Ignore:
Timestamp:
2015-02-10T18:07:10+13:00 (9 years ago)
Author:
ak19
Message:

Adjusting gs3-server code to work with changes made to 29686 where web.xml was split into web.xml and servlets.xml, with the first including the second.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSEntityResolver.java

    r16869 r29728  
    3333
    3434    ClassLoader class_loader = null;
     35    File baseFilepath = null;
    3536   
    3637     static Logger logger = Logger.getLogger(org.greenstone.gsdl3.util.GSEntityResolver.class.getName());
     38
     39    public GSEntityResolver() {}
     40
     41    public GSEntityResolver(File baseFilepath) {
     42    this.baseFilepath = baseFilepath;
     43    }
     44
     45    /* Methods with the ClassLoader parameter are unused at present */
     46    public GSEntityResolver(ClassLoader loader) {
     47    this.class_loader = loader;
     48    }
    3749
    3850    public void setClassLoader(ClassLoader loader) {
     
    5668        }
    5769    }
     70   
     71    // use the baseFilepath, if one was provided
     72    if(this.baseFilepath != null) {
     73        return new InputSource("file://" + this.baseFilepath + File.separator + temp_id);
     74    }
     75
    5876    // try using a class loader
    5977    if (this.class_loader==null) {
Note: See TracChangeset for help on using the changeset viewer.