Changeset 28981

Show
Ignore:
Timestamp:
17.04.2014 09:26:09 (5 years ago)
Author:
kjdon
Message:

calling XMLConverter methods statically now. get rid of this.converter

Files:
1 modified

Legend:

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

    r28966 r28981  
    7676    protected final String DEFAULT_LANG = "en"; 
    7777 
    78     /** 
    79      * a converter class to parse XML and create Documents for  
    80      * XML generation 
    81      */ 
    82     protected XMLConverter converter = null; 
    83  
    8478    /** A HashSet which contains all the legal verbs. */ 
    8579    protected HashSet<String> verb_set = null; 
     
    145139        // the receptionist -the servlet will talk to this 
    146140        this.recept = new OAIReceptionist(); 
    147         // the converter - used to get new Documents to generate XML messages 
    148         this.converter = new XMLConverter(); 
     141 
    149142        // the receptionist uses a MessageRouter or Communicator to send its requests to. We either create a MessageRouter here for the designated site (if site_name set), or we create a Communicator for a remote site. The is given to teh Receptionist, and the servlet never talks to it again.directly. 
    150143        if (site_name != null) 
     
    383376                out.println("<?xml-stylesheet type='text/xsl' href='" + this.oai_stylesheet + "' ?>\n"); 
    384377            } 
    385             out.println(this.converter.getPrettyString(xml_response)); 
     378            out.println(XMLConverter.getPrettyString(xml_response)); 
    386379            return; 
    387380        }//end of if(validate 
     
    444437            out.println("<?xml-stylesheet type='text/xsl' href='" + this.oai_stylesheet + "' ?>\n"); 
    445438        } 
    446         out.println(this.converter.getPrettyString(xml_response)); 
     439        out.println(XMLConverter.getPrettyString(xml_response)); 
    447440        return; 
    448441    }