Ignore:
Timestamp:
09/09/11 14:26:27 (13 years ago)
Author:
gaba
Message:

workspaceprofile - format added

File:
1 edited

Legend:

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

    r1524 r1529  
    198198        }
    199199
     200        @Override
     201        public String getActionContentType() {
     202                if (this.getFormat().toLowerCase().startsWith("json")) {
     203                        this.setActionContentType("application/json");         
     204                        //this.actionContentType = "application/xhtml+xml";
     205                } else {
     206                        this.setActionContentType("text/xml"); 
     207                }
     208               
     209                return getActionContentType();
     210        }
    200211       
    201212        //@Override
     
    962973        public void prepare() throws Exception {               
    963974               
     975                loadParams();
     976               
    964977                NodeList list = (NodeList) getWorkspace();//result;
    965978                if (list.getLength() < 1) {
Note: See TracChangeset for help on using the changeset viewer.