1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-11-11 15:20:58 +00:00

version 2017.11

This commit is contained in:
Arnaud Roques 2017-04-19 21:41:42 +02:00
parent 67e9aeb992
commit f37bbe9d41
2 changed files with 4 additions and 4 deletions

View File

@ -157,7 +157,7 @@
<dependency> <dependency>
<groupId>net.sourceforge.plantuml</groupId> <groupId>net.sourceforge.plantuml</groupId>
<artifactId>plantuml</artifactId> <artifactId>plantuml</artifactId>
<version>2017.09</version> <version>2017.11</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>

View File

@ -83,7 +83,7 @@ class DiagramResponse {
if (StringUtils.isDiagramCacheable(uml)) { if (StringUtils.isDiagramCacheable(uml)) {
addHeaderForCache(blockUml); addHeaderForCache(blockUml);
} }
reader.generateImage(response.getOutputStream(), new FileFormatOption(format, false)); reader.outputImage(response.getOutputStream(), new FileFormatOption(format, false));
} }
private boolean notModified(BlockUml blockUml) { private boolean notModified(BlockUml blockUml) {
@ -107,7 +107,7 @@ class DiagramResponse {
if (StringUtils.isDiagramCacheable(uml)) { if (StringUtils.isDiagramCacheable(uml)) {
addHeaderForCache(blockUml); addHeaderForCache(blockUml);
} }
String map = reader.generateImage(new NullOutputStream(), String map = reader.outputImage(new NullOutputStream(),
new FileFormatOption(FileFormat.PNG, false)).getDescription(); new FileFormatOption(FileFormat.PNG, false)).getDescription();
String[] mapLines = map.split("[\\r\\n]"); String[] mapLines = map.split("[\\r\\n]");
PrintWriter httpOut = response.getWriter(); PrintWriter httpOut = response.getWriter();
@ -119,7 +119,7 @@ class DiagramResponse {
void sendCheck(String uml) throws IOException { void sendCheck(String uml) throws IOException {
response.setContentType(getContentType()); response.setContentType(getContentType());
SourceStringReader reader = new SourceStringReader(uml); SourceStringReader reader = new SourceStringReader(uml);
DiagramDescription desc = reader.generateImage( DiagramDescription desc = reader.outputImage(
new NullOutputStream(), new FileFormatOption(FileFormat.PNG, false)); new NullOutputStream(), new FileFormatOption(FileFormat.PNG, false));
PrintWriter httpOut = response.getWriter(); PrintWriter httpOut = response.getWriter();
httpOut.print(desc.getDescription()); httpOut.print(desc.getDescription());