Ignore:
Timestamp:
09/14/11 11:01:58 (13 years ago)
Author:
gaba
Message:

ComRegistryProxyAction?, DCRAction derivation changed

File:
1 edited

Legend:

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

    r1532 r1536  
    55import java.io.InputStream;
    66import java.io.StringWriter;
     7import java.net.URLConnection;
    78import java.util.HashMap;
    89import java.util.Map;
     
    421422        }
    422423       
    423         /*
    424         private static final Map<String, String> xsl_map;
    425     static {
    426         Map<String, String> aMap = new HashMap<String,String>();
    427         aMap.put("fullformat","format");
    428         //aMap.put("format","fullformat");
    429         aMap.put("columns", "cols");
    430         aMap.put("maximumItems","maximumItems");
    431         aMap.put("startItem", "startItem");
    432         aMap.put("lang","lang");
    433         aMap.put("q", "q");
    434         aMap.put("repository","repository_name");
    435         //aMap.put("repository_type", "repository_type");
    436         xsl_map = Collections.unmodifiableMap(aMap);
    437     }
    438    
    439         public Map<String,String> createTransformerParams(){
    440                
    441                 Map<String, String> map = new HashMap<String, String>();
    442 
    443                 Set<Entry<String, String[]>> set = getParams().entrySet();
    444                 Iterator<Entry<String, String[]>> i = set.iterator();
    445 
    446             while(i.hasNext()){
    447               Map.Entry<String,String[]> e = (Map.Entry<String,String[]>)i.next();
    448               if (xsl_map.containsKey((String)e.getKey())) {
    449                   map.put(xsl_map.get((String)e.getKey()), (String)e.getValue()[0]);
    450               }
    451              
    452             }
    453             return map;
    454         }
    455        
    456         public Map<String,String> createTransformerParams(){
    457                
    458                 HashMap<String,String> hm = new HashMap<String,String>();
    459                
    460             if (getFullFormat() != null){
    461                         hm.put("format", getFullFormat());
    462             }
    463            
    464                 if (getColumns() != null){
    465                         hm.put("cols", getColumns());
    466                 } else {
    467                         hm.put("cols", "");
    468                 }
    469                 if (getStartItem() != null){
    470                         hm.put("startItem", getStartItem());
    471                 }
    472                 if (getMaximumItems() != null){
    473                         hm.put("maximumItems", getMaximumItems());     
    474                 }
    475                 if (getLang() != null){
    476                         hm.put("lang", getLang());
    477                 }
    478                 if (getQ() != null){
    479                         hm.put("q", getQ());
    480                 }
    481                 //if (getRepository() != null){
    482                 hm.put("repository_name", String.valueOf(getRepository()));
    483                 hm.put("repository_type", WorkspaceProfile.getRepositoryType(this.getRepository()));
    484                 //}
    485      
    486                 return hm;             
    487         }
    488           */
    489424       
    490425        /**
     
    498433         * @throws Exception  This is handled by struts (is mapped to some result in struts.xml based on the Exception-Class)
    499434         */
    500        
     435        public String getTargetRequestParams(){
     436                return "";
     437        }
     438       
     439        public void setRequestProperties(URLConnection urlConnection){
     440               
     441        }
     442
    501443        public void prepare()  {
    502444                       
Note: See TracChangeset for help on using the changeset viewer.