Changeset 560:82ddc7fb3d5f
- Timestamp:
- 09/29/09 16:01:40 (4 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@561
- Message:
-
removed unused charset output parameter
+ removed default setting of format and mimetype (moved to outputModules)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r551
|
r560
|
|
| 1 | | // $Id: ObserveAction.java,v 1.44 2009-09-28 14:24:19 tgambet Exp $ |
| | 1 | // $Id: ObserveAction.java,v 1.45 2009-09-29 16:01:40 tgambet Exp $ |
| 2 | 2 | // Author: Jean-Guilhem Rouel & Thomas GAMBET |
| 3 | 3 | // (c) COPYRIGHT MIT, ERCIM and Keio, 2006. |
| … |
… |
|
| 93 | 93 | // Default output parameters |
| 94 | 94 | mapOfOutputParameter.put("output", "simple"); |
| 95 | | mapOfOutputParameter.put("format", "xhtml10"); |
| 96 | | mapOfOutputParameter.put("charset", "UTF-8"); |
| 97 | | mapOfOutputParameter.put("mimetype", "text/html"); |
| 98 | 95 | |
| 99 | 96 | // Retrieve parameter prefixes from unicorn.properties |
| … |
… |
|
| 213 | 210 | |
| 214 | 211 | OutputModule aOutputModule = OutputFactory.createOutputModule(mapOfOutputParameter, mapOfSpecificParameter); |
| 215 | | resp.setContentType(mapOfOutputParameter.get("mimetype") + "; charset=UTF-8"); |
| | 212 | resp.setContentType(aOutputModule.getMimeType() + "; charset=UTF-8"); |
| 216 | 213 | |
| 217 | 214 | if (!reqParams.containsKey(paramPrefix + "uri") && !reqParams.containsKey(paramPrefix + "text") && !reqParams.containsKey(paramPrefix + "file")) { |
| … |
… |
|
| 220 | 217 | return; |
| 221 | 218 | } |
| 222 | | |
| 223 | | //req.setAttribute("unicorn_parameters", reqParams); |
| 224 | 219 | |
| 225 | 220 | for (Object objKey : reqParams.keySet()) { |