Commit 7e7235d9 authored by Matthias Betz's avatar Matthias Betz
Browse files

formatting

parent d7d412aa
...@@ -81,10 +81,8 @@ public class CityGMLServerController { ...@@ -81,10 +81,8 @@ public class CityGMLServerController {
throw new RuntimeException("Failed to retrieve CityGML", e); throw new RuntimeException("Failed to retrieve CityGML", e);
} }
}; };
return ResponseEntity.ok() return ResponseEntity.ok().header(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"citygml.gml\"")
.header(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"citygml.gml\"") .contentType(MediaType.APPLICATION_XML).body(stream);
.contentType(MediaType.APPLICATION_XML)
.body(stream);
} catch (ParseException e) { } catch (ParseException e) {
logger.error("Error parsing WKT: {}", wktPolygon, e); logger.error("Error parsing WKT: {}", wktPolygon, e);
...@@ -121,10 +119,8 @@ public class CityGMLServerController { ...@@ -121,10 +119,8 @@ public class CityGMLServerController {
throw new RuntimeException("Failed to retrieve CityGML", e); throw new RuntimeException("Failed to retrieve CityGML", e);
} }
}; };
return ResponseEntity.ok() return ResponseEntity.ok().header(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"citygml.gml\"")
.header(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"citygml.gml\"") .contentType(MediaType.APPLICATION_XML).body(stream);
.contentType(MediaType.APPLICATION_XML)
.body(stream);
} catch (ParseException e) { } catch (ParseException e) {
logger.error("Error parsing WKT: {}", wktPolygon, e); logger.error("Error parsing WKT: {}", wktPolygon, e);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment