Ignore:
Timestamp:
11/05/11 17:38:57 (13 years ago)
Author:
vronk
Message:

various small changes, clean up code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/TermsProxyAction.java

    r1540 r1613  
    55import java.net.MalformedURLException;
    66import java.net.URL;
    7 
    87import javax.xml.transform.TransformerException;
    9 
    108import org.apache.log4j.Logger;
    119
     
    2119 * 
    2220 * @author vronk
    23  *
    2421 */
    2522public class TermsProxyAction extends GenericProxyAction {
    2623
    27         public static Logger log = Logger.getLogger("TermsProxyAction");
     24        public static Logger log = Logger.getLogger("TermsProxyAction");       
     25        private static final long serialVersionUID = 1L;
    2826       
    29         private static final long serialVersionUID = 1L;
    30 
    31         public static String ALL = "all";
    32        
     27        public static String ALL = "all";       
    3328        private String proxy_key = "terms";
    3429       
     
    4338        }
    4439       
    45        
    46 /*      @Override
    47         public String getFullFormat() {         
    48                 return "terms2extract";
    49         }
    50         */
    51        
    52         /*
    53          @Override
    54          public String getRequestKey() {
    55                         String key="";
    56                         if (getActionkey()!=null) {
    57                                 key += getActionkey() + "//-" ;
    58                         }
    59                         if (getQ()!=null) {
    60                                 key += getQ() + "//-" ;
    61                         } else {
    62                                 key +="//-" ;
    63                         }
    64                         if (getCollection()!=null) {
    65                                 key += getCollection() + "//-";
    66                         } else {
    67                                 key +="//-" ;
    68                         }
    69                         if (getSquery()!=null) {
    70                                 key += getSquery() + "//-" ;
    71                         } else {
    72                                 key +="//-" ;
    73                         }
    74                         if (getStartRecord()!=null) {
    75                                 key += getStartRecord() + "//-";
    76                         }
    77                         if (getMaximumRecords()!=null) {
    78                                 key += getMaximumRecords();
    79                         }
    80                          
    81                         return key;
    82         }
    83          */
    8440        public Termset getTermset() {           
    8541                String ts_id="";
     
    10662                return base_url;
    10763        }
    108        
    109        
     64               
    11065         /**
    11166         * uses base_url + url_pattern (parametrized by actionkey) to form a url
     
    11570        public URL getTargetRequest() throws IOException {
    11671        // URL targetURL =new URL( base_url, compname + ".xml");
    117        
    11872               
    11973                URL targetURL = null;
Note: See TracChangeset for help on using the changeset viewer.