Changeset 25980

Show
Ignore:
Timestamp:
19.07.2012 14:32:09 (7 years ago)
Author:
sjm84
Message:

Some minor fixes

Files:
1 modified

Legend:

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

    r25979 r25980  
    2020 
    2121// greenstone classes 
    22 import org.greenstone.gsdl3.util.*; 
    23 import org.greenstone.gsdl3.core.*; 
    24  
    25 // for fedora 
    26 import org.greenstone.gs3client.dlservices.*; 
    27 import org.greenstone.fedora.services.FedoraGS3Exception.CancelledException; 
    28  
    29 // xml classes 
     22import java.io.StringReader; 
     23import java.util.HashMap; 
     24import java.util.Properties; 
     25 
     26import javax.xml.parsers.DocumentBuilder; 
     27import javax.xml.parsers.DocumentBuilderFactory; 
     28 
     29import org.apache.log4j.Logger; 
     30import org.greenstone.gs3client.dlservices.DigitalLibraryServicesAPIA; 
     31import org.greenstone.gs3client.dlservices.FedoraServicesAPIA; 
     32import org.greenstone.gsdl3.core.MessageRouter; 
     33import org.greenstone.gsdl3.util.Dictionary; 
     34import org.greenstone.gsdl3.util.GSPath; 
     35import org.greenstone.gsdl3.util.GSXML; 
     36import org.greenstone.gsdl3.util.OID; 
     37import org.greenstone.gsdl3.util.XMLConverter; 
     38import org.w3c.dom.Document; 
     39import org.w3c.dom.Element; 
    3040import org.w3c.dom.Node; 
    3141import org.w3c.dom.NodeList; 
    32 import org.w3c.dom.Element; 
    33 import org.w3c.dom.Document; 
    3442import org.xml.sax.InputSource; 
    35 import javax.xml.parsers.*; 
    36 import org.apache.xpath.XPathAPI; 
    37  
    38 // general java classes 
    39 import java.io.Reader; 
    40 import java.io.StringReader; 
    41 import java.io.File; 
    42 import java.util.HashMap; 
    43 import java.util.Locale; 
    44 import java.util.Properties; 
    45 import java.util.ResourceBundle; 
    46 import java.lang.reflect.Method; 
    47  
    48 import org.apache.log4j.*; 
    4943 
    5044/** 
     
    8377        this.doc = this.converter.newDOM(); 
    8478        this.short_service_info = this.doc.createElement(GSXML.SERVICE_ELEM + GSXML.LIST_MODIFIER); 
    85         this.format_info_map = new HashMap<String, Node>(); 
    86  
    8779    } 
    8880 
     
    713705    } 
    714706 
    715     protected Element getServiceFormat(String service) 
    716     { 
    717         Element format = (Element) ((Element) this.format_info_map.get(service)).cloneNode(true); 
    718         return format; 
    719     } 
    720  
    721707    /** overloaded version for no args case */ 
    722708    protected String getTextString(String key, String lang)