From 53fe54e39723c6430312ad1215032593bc4a9d2f Mon Sep 17 00:00:00 2001 From: Maxime Sinclair Date: Tue, 26 Nov 2013 15:41:54 +0100 Subject: [PATCH] [TASK] Using the "start" keyword in the URL is now deprecated. --- .../java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java index a1d4dff..65d49ee 100644 --- a/src/main/java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java +++ b/src/main/java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java @@ -69,6 +69,7 @@ public class PlantUmlServlet extends HttpServlet { final String uri = request.getRequestURI(); Matcher startumlMatcher = startumlPattern.matcher(uri); if (startumlMatcher.matches()) { + System.out.println("PlantUML WARNING This syntax is deprecated."); String source = startumlMatcher.group(1); handleImage(response, source, uri); } else { @@ -125,6 +126,7 @@ public class PlantUmlServlet extends HttpServlet { return TranscoderUtil.getDefaultTranscoder(); } + // This method will be removed in a near future, please don't use it. private void handleImage(HttpServletResponse response, String source, String uri) throws IOException { source = URLDecoder.decode(source, "UTF-8"); StringBuilder plantUmlSource = new StringBuilder(); @@ -138,6 +140,7 @@ public class PlantUmlServlet extends HttpServlet { } + // This method will be removed in a near future, please don't use it. private void sendImage(HttpServletResponse response, String text, String uri) throws IOException { final String uml; if (text.startsWith("@startuml")) {