Ignore:
Timestamp:
11/12/10 21:58:33 (14 years ago)
Author:
vronk
Message:

Adding action: admin/cache/htmlpage

Location:
MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/Cache.java

    r870 r890  
    6767                cacheindex_path = cachepath + Admin.getConfig().getProperty("cacheindex.file");
    6868                cachecounter = initCachecounter();
     69               
    6970        }
    7071       
     
    7475                }
    7576                return singleton;
     77        }
     78
     79        public String getCacheIndexPath() {
     80                return getCache().cacheindex_path;
     81               
    7682        }
    7783
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/GenericProxyAction.java

    r879 r890  
    5656        private int maxdepth;
    5757        private String format;
     58        private String actionContentType;
    5859        private String userMsg;
    5960        private int repository=1;
     
    132133                this.format = format;
    133134        }
    134        
     135
     136        public String getActionContentType() {
     137                if (format.toLowerCase().equals("xml")) {
     138                        this.actionContentType = "text/xml";
     139                } else {
     140                        this.actionContentType = "text/html";
     141                }
     142               
     143                return actionContentType;
     144        }
     145
     146        public void setActionContentType(String actionContentType) {
     147                this.actionContentType = actionContentType;
     148        }
     149       
     150
    135151        public void setRepository(int repository) {
    136152                this.repository = repository;
     
    149165                actionkey = actionKey;
    150166        }
     167
    151168       
    152169        public String getStartRecord() {
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.java

    r860 r890  
    4141
    4242        private String proxy_key = "mdrepository";
    43         private String actionContentType;
    4443       
    45        
    46         public String getActionContentType() {
    47                 return actionContentType;
    48         }
    49 
    50         public void setActionContentType(String actionContentType) {
    51                 this.actionContentType = actionContentType;
    52         }
    5344       
    5445        @Override
     
    6253        @Override
    6354        public void setFormat(String format) {
    64                 super.setFormat(format);
    65                 if (format.toLowerCase().equals("xml")) {
    66                         this.actionContentType = "text/xml";
    67                 } else {
    68                         this.actionContentType = "text/html";
    69                 }
    70                
     55                super.setFormat(format);               
    7156        }
    7257        @Override
Note: See TracChangeset for help on using the changeset viewer.