changed myme type at text/plain for error file

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/speciesdiscovery@79447 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-07-19 12:47:44 +00:00
parent 56f4b96727
commit 74e69a11d5
1 changed files with 11 additions and 10 deletions

View File

@ -2041,16 +2041,17 @@ public class TaxonomySearchServiceImpl extends RemoteServiceServlet implements T
SpeciesService taxonomyService = getSpeciesService(); SpeciesService taxonomyService = getSpeciesService();
String mimeType = null; // String mimeType = null;
// switch (jobModel.getFileFormat()) {
switch (jobModel.getFileFormat()) { // case CSV: {
case CSV: { // mimeType = "text/csv";
mimeType = "text/csv"; // } break;
} break; // case DARWIN_CORE:{
case DARWIN_CORE:{ // mimeType = "application/xhtml+xml";
mimeType = "application/xhtml+xml"; // } break;
} break; // }
}
String mimeType = "text/plain";
InputStream inputStream = taxonomyService.getOccurrenceJobErrorFileById(jobModel.getJobIdentifier()); InputStream inputStream = taxonomyService.getOccurrenceJobErrorFileById(jobModel.getJobIdentifier());