Commit 53fe54e3 authored by Maxime Sinclair's avatar Maxime Sinclair
Browse files

[TASK] Using the "start" keyword in the URL is now deprecated.

parent 76ad7acd
......@@ -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")) {
......
Markdown is supported
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