-
-
+
+
+
-
-
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/AsciiServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/AsciiServlet.java
index f278b437..14326fab 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/AsciiServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/AsciiServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -25,13 +25,19 @@
import net.sourceforge.plantuml.FileFormat;
-/*
+/**
* ASCII servlet of the webapp.
* This servlet produces the UML sequence diagram in text format.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class AsciiServlet extends UmlDiagramService {
+ /**
+ * Gives the wished output format of the diagram.
+ * This value is used by the DiagramResponse class.
+ *
+ * @return the format for ASCII responses
+ */
@Override
public FileFormat getOutputFormat() {
return FileFormat.UTXT;
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/Base64Servlet.java b/src/main/java/net/sourceforge/plantuml/servlet/Base64Servlet.java
index fcb191f2..6e6c5edb 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/Base64Servlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/Base64Servlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -25,13 +25,19 @@
import net.sourceforge.plantuml.FileFormat;
-/*
+/**
* Base64 servlet of the webapp.
* This servlet produces the UML diagram in Base64 format.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class Base64Servlet extends UmlDiagramService {
+ /**
+ * Gives the wished output format of the diagram.
+ * This value is used by the DiagramResponse class.
+ *
+ * @return the format for Base64 responses
+ */
@Override
public FileFormat getOutputFormat() {
return FileFormat.BASE64;
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/CheckSyntaxServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/CheckSyntaxServlet.java
index bec62809..7f17c98e 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/CheckSyntaxServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/CheckSyntaxServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -32,14 +32,13 @@
import javax.servlet.http.HttpServletResponse;
import net.sourceforge.plantuml.FileFormat;
-
import net.sourceforge.plantuml.servlet.utility.UmlExtractor;
-/*
+/**
* Check servlet of the webapp.
* This servlet checks the syntax of the diagram and send a report in TEXT format.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class CheckSyntaxServlet extends HttpServlet {
@Override
@@ -52,12 +51,19 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro
DiagramResponse dr = new DiagramResponse(response, getOutputFormat(), request);
try {
dr.sendCheck(uml);
- } catch (IIOException iioe) {
+ } catch (IIOException e) {
// Browser has closed the connection, do nothing
}
dr = null;
}
+ /**
+ * Extract UML source from URI.
+ *
+ * @param uri the complete URI as returned by `request.getRequestURI()`
+ *
+ * @return the encoded UML text
+ */
public String getSource(String uri) {
String[] result = uri.split("/check/", 2);
if (result.length != 2) {
@@ -67,6 +73,12 @@ public String getSource(String uri) {
}
}
+ /**
+ * Gives the wished output format of the diagram.
+ * This value is used by the DiagramResponse class.
+ *
+ * @return the format for check responses
+ */
public FileFormat getOutputFormat() {
return FileFormat.UTXT;
}
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java b/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java
index 22e80792..b914d46a 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -53,7 +53,7 @@
* Delegates the diagram generation from the UML source and the filling of the HTTP response with the diagram in the
* right format. Its own responsibility is to produce the right HTTP headers.
*/
-class DiagramResponse {
+public class DiagramResponse {
private static final String POWERED_BY = "PlantUML Version " + Version.versionString();
@@ -77,22 +77,24 @@ class DiagramResponse {
}
}
- DiagramResponse(HttpServletResponse r, FileFormat f, HttpServletRequest rq) {
+ public DiagramResponse(HttpServletResponse r, FileFormat f, HttpServletRequest rq) {
response = r;
format = f;
request = rq;
}
- void sendDiagram(String uml, int idx) throws IOException {
+ public void sendDiagram(String uml, int idx) throws IOException {
response.addHeader("Access-Control-Allow-Origin", "*");
response.setContentType(getContentType());
SourceStringReader reader = new SourceStringReader(uml);
if (format == FileFormat.BASE64) {
- final ByteArrayOutputStream baos = new ByteArrayOutputStream();
- final DiagramDescription result = reader.outputImage(baos, idx, new FileFormatOption(FileFormat.PNG));
- baos.close();
- final String encodedBytes = "data:image/png;base64,"
- + Base64Coder.encodeLines(baos.toByteArray()).replaceAll("\\s", "");
+ byte[] imageBytes;
+ try (ByteArrayOutputStream outstream = new ByteArrayOutputStream()) {
+ reader.outputImage(outstream, idx, new FileFormatOption(FileFormat.PNG));
+ imageBytes = outstream.toByteArray();
+ }
+ final String base64 = Base64Coder.encodeLines(imageBytes).replaceAll("\\s", "");
+ final String encodedBytes = "data:image/png;base64," + base64;
response.getOutputStream().write(encodedBytes.getBytes());
return;
}
@@ -109,7 +111,7 @@ void sendDiagram(String uml, int idx) throws IOException {
if (diagram instanceof PSystemError) {
response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
}
- final ImageData result = diagram.exportDiagram(response.getOutputStream(), idx, new FileFormatOption(format));
+ diagram.exportDiagram(response.getOutputStream(), idx, new FileFormatOption(format));
}
private boolean notModified(BlockUml blockUml) {
@@ -126,7 +128,7 @@ private boolean notModified(BlockUml blockUml) {
}
- void sendMap(String uml) throws IOException {
+ public void sendMap(String uml) throws IOException {
response.setContentType(getContentType());
SourceStringReader reader = new SourceStringReader(uml);
final BlockUml blockUml = reader.getBlocks().get(0);
@@ -141,16 +143,17 @@ void sendMap(String uml) throws IOException {
final String cmap = map.getCMapData("plantuml");
httpOut.print(cmap);
}
- }
+ }
- void sendCheck(String uml) throws IOException {
+ public void sendCheck(String uml) throws IOException {
response.setContentType(getContentType());
SourceStringReader reader = new SourceStringReader(uml);
DiagramDescription desc = reader.outputImage(
new NullOutputStream(), new FileFormatOption(FileFormat.PNG, false));
PrintWriter httpOut = response.getWriter();
httpOut.print(desc.getDescription());
- }
+ }
+
private void addHeaderForCache(BlockUml blockUml) {
long today = System.currentTimeMillis();
// Add http headers to force the browser to cache the image
@@ -176,11 +179,10 @@ private void addHeaderForCache(BlockUml blockUml) {
public static void addHeaders(HttpServletResponse response) {
response.addHeader("X-Powered-By", POWERED_BY);
- response.addHeader("X-Patreon", "Support us on http://plantuml.com/patreon");
- response.addHeader("X-Donate", "http://plantuml.com/paypal");
+ response.addHeader("X-Patreon", "Support us on https://plantuml.com/patreon");
+ response.addHeader("X-Donate", "https://plantuml.com/paypal");
}
-
private String getContentType() {
return CONTENT_TYPE.get(format);
}
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/EpsServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/EpsServlet.java
index a69b00a4..aa17606e 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/EpsServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/EpsServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -25,13 +25,19 @@
import net.sourceforge.plantuml.FileFormat;
-/*
+/**
* EPS servlet of the webapp.
* This servlet produces the UML diagram in EPS format.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class EpsServlet extends UmlDiagramService {
+ /**
+ * Gives the wished output format of the diagram.
+ * This value is used by the DiagramResponse class.
+ *
+ * @return the format for EPS responses
+ */
@Override
public FileFormat getOutputFormat() {
return FileFormat.EPS;
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/EpsTextServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/EpsTextServlet.java
index 5226eeb3..5efbeacb 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/EpsTextServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/EpsTextServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -25,13 +25,19 @@
import net.sourceforge.plantuml.FileFormat;
-/*
- * EPS servlet of the webapp.
- * This servlet produces the UML diagram in EPS format.
+/**
+ * EPS Text servlet of the webapp.
+ * This servlet produces the UML diagram in EPS Text format.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class EpsTextServlet extends UmlDiagramService {
+ /**
+ * Gives the wished output format of the diagram.
+ * This value is used by the DiagramResponse class.
+ *
+ * @return the format for EPS Text responses
+ */
@Override
public FileFormat getOutputFormat() {
return FileFormat.EPS_TEXT;
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/ImgServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/ImgServlet.java
index 8fae6370..c90d34d6 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/ImgServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/ImgServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -25,13 +25,19 @@
import net.sourceforge.plantuml.FileFormat;
-/*
+/**
* Image servlet of the webapp.
* This servlet produces the UML diagram in PNG format.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class ImgServlet extends UmlDiagramService {
+ /**
+ * Gives the wished output format of the diagram.
+ * This value is used by the DiagramResponse class.
+ *
+ * @return the format for image responses
+ */
@Override
public FileFormat getOutputFormat() {
return FileFormat.PNG;
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/LanguageServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/LanguageServlet.java
index fcbcc1e5..1080f873 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/LanguageServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/LanguageServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/MapServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/MapServlet.java
index d1b10811..252b200f 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/MapServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/MapServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -35,11 +35,11 @@
import net.sourceforge.plantuml.servlet.utility.UmlExtractor;
-/*
+/**
* MAP servlet of the webapp.
* This servlet produces the image map of the diagram in HTML format.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class MapServlet extends HttpServlet {
@Override
@@ -52,7 +52,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro
DiagramResponse dr = new DiagramResponse(response, getOutputFormat(), request);
try {
dr.sendMap(uml);
- } catch (IIOException iioe) {
+ } catch (IIOException e) {
// Browser has closed the connection, do nothing
}
dr = null;
@@ -67,6 +67,12 @@ public String getSource(String uri) {
}
}
+ /**
+ * Gives the wished output format of the diagram.
+ * This value is used by the DiagramResponse class.
+ *
+ * @return the format for map responses
+ */
public FileFormat getOutputFormat() {
return FileFormat.UTXT;
}
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/OldProxyServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/OldProxyServlet.java
index 50b06849..34e181df 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/OldProxyServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/OldProxyServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -40,12 +40,12 @@
import net.sourceforge.plantuml.FileFormatOption;
import net.sourceforge.plantuml.SourceStringReader;
-/*
+/**
* Proxy servlet of the webapp.
* This servlet retrieves the diagram source of a web resource (web html page)
* and renders it.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class OldProxyServlet extends HttpServlet {
private static final Pattern PROXY_PATTERN = Pattern.compile("/\\w+/proxy/((\\d+)/)?((\\w+)/)?(https?://.*)");
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java
index 625cc9ec..e40679e7 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -43,9 +43,8 @@
import net.sourceforge.plantuml.code.TranscoderUtil;
import net.sourceforge.plantuml.png.MetadataTag;
-/*
+/**
* Original idea from Achim Abeling for Confluence macro
- * See http://www.banapple.de/display/BANAPPLE/plantuml+user+macro
*
* This class is the old all-in-one historic implementation of the PlantUml server.
* See package.html for the new design. It's a work in progress.
@@ -53,17 +52,16 @@
* Modified by Arnaud Roques
* Modified by Pablo Lalloni
* Modified by Maxime Sinclair
- *
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class PlantUmlServlet extends HttpServlet {
private static final String DEFAULT_ENCODED_TEXT = "SyfFKj2rKt3CoKnELR1Io4ZDoSa70000";
// Last part of the URL
public static final Pattern URL_PATTERN = Pattern.compile("^.*[^a-zA-Z0-9\\-\\_]([a-zA-Z0-9\\-\\_]+)");
-
private static final Pattern RECOVER_UML_PATTERN = Pattern.compile("/uml/(.*)");
+
static {
OptionFlags.ALLOW_INCLUDE = false;
if ("true".equalsIgnoreCase(System.getenv("ALLOW_PLANTUML_INCLUDE"))) {
@@ -112,10 +110,10 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro
if (text != null && PlantumlUtils.hasCMapData(text)) {
request.setAttribute("mapneeded", Boolean.TRUE);
}
+
// forward to index.jsp
final RequestDispatcher dispatcher = request.getRequestDispatcher("/index.jsp");
dispatcher.forward(request, response);
-
}
@Override
@@ -189,6 +187,4 @@ static public InputStream getImage(URL url) throws IOException {
return is;
}
-
-
}
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/ProxyServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/ProxyServlet.java
index d1d0053d..2d535892 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/ProxyServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/ProxyServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -49,12 +49,12 @@
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLPeerUnverifiedException;
-/*
+/**
* Proxy servlet of the webapp.
* This servlet retrieves the diagram source of a web resource (web html page)
* and renders it.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class ProxyServlet extends HttpServlet {
static {
@@ -95,7 +95,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro
DiagramResponse dr = new DiagramResponse(response, getOutputFormat(fmt), request);
try {
dr.sendDiagram(uml, 0);
- } catch (IIOException iioe) {
+ } catch (IIOException e) {
// Browser has closed the connection, so the HTTP OutputStream is closed
// Silently catch the exception to avoid annoying log
}
@@ -145,9 +145,9 @@ private FileFormat getOutputFormat(String format) {
private HttpURLConnection getConnection(final URL url) throws IOException {
final HttpURLConnection con = (HttpURLConnection) url.openConnection();
- if (con instanceof HttpsURLConnection) {
- // printHttpsCert((HttpsURLConnection) con);
- }
+ //if (con instanceof HttpsURLConnection) {
+ // printHttpsCert((HttpsURLConnection) con);
+ //}
con.setRequestMethod("GET");
String token = System.getenv("HTTP_AUTHORIZATION");
if (token != null) {
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/SvgServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/SvgServlet.java
index e70709cc..6e0109d0 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/SvgServlet.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/SvgServlet.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -25,13 +25,19 @@
import net.sourceforge.plantuml.FileFormat;
-/*
+/**
* SVG servlet of the webapp.
* This servlet produces the UML diagram in SVG format.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class SvgServlet extends UmlDiagramService {
+ /**
+ * Gives the wished output format of the diagram.
+ * This value is used by the DiagramResponse class.
+ *
+ * @return the format for svg responses
+ */
@Override
public FileFormat getOutputFormat() {
return FileFormat.SVG;
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/UmlDiagramService.java b/src/main/java/net/sourceforge/plantuml/servlet/UmlDiagramService.java
index ffde3f27..650745b6 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/UmlDiagramService.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/UmlDiagramService.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -40,7 +40,7 @@
/**
* Common service servlet to produce diagram from compressed UML source contained in the end part of the requested URI.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public abstract class UmlDiagramService extends HttpServlet {
static {
@@ -99,7 +99,7 @@ private void doDiagramResponse(
DiagramResponse dr = new DiagramResponse(response, getOutputFormat(), request);
try {
dr.sendDiagram(uml, idx);
- } catch (IIOException iioe) {
+ } catch (IIOException e) {
// Browser has closed the connection, so the HTTP OutputStream is closed
// Silently catch the exception to avoid annoying log
}
@@ -109,11 +109,11 @@ private void doDiagramResponse(
private static final Pattern RECOVER_UML_PATTERN = Pattern.compile("/\\w+/(\\d+/)?(.*)");
/**
- * Extracts the compressed UML source from the HTTP URI.
+ * Extracts the UML source text and its index from the HTTP request.
*
- * @param uri
- * the complete URI as returned by request.getRequestURI()
- * @return the compressed UML source
+ * @param request http request
+ *
+ * @return the UML source text and its index
*/
public final String[] getSourceAndIdx(HttpServletRequest request) {
final Matcher recoverUml = RECOVER_UML_PATTERN.matcher(
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/Welcome.java b/src/main/java/net/sourceforge/plantuml/servlet/Welcome.java
index f06841cb..ef9da690 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/Welcome.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/Welcome.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * Project Info: http://plantuml.sourceforge.net
+ * Project Info: https://plantuml.com
*
* This file is part of PlantUML.
*
@@ -31,11 +31,11 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-/*
+/**
* Welcome servlet of the webapp.
* Displays the sample Bob and Alice sequence diagram.
*/
-@SuppressWarnings("serial")
+@SuppressWarnings("SERIAL")
public class Welcome extends HttpServlet {
@Override
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/package.html b/src/main/java/net/sourceforge/plantuml/servlet/package.html
index 18dbf9f5..fe73e9fe 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/package.html
+++ b/src/main/java/net/sourceforge/plantuml/servlet/package.html
@@ -1,15 +1,21 @@
-This package is in charge of the JEE PlantUml Server.
-there are 2 kind of servlets in this package :
-- Interactive servlets : Welcome, PlantUmlServlet that are in charge of the web pages dedicated to human users.
-- Service servlets : ImgServlet, SvgServlet, EpsServlet, EpsTextServlet, AsciiServlet, ProxyServlet that only produce a diagram as output.
-
-Structure of the service part of the PlantUmlServer:
-
-
-
-
-
+ This package is in charge of the JEE PlantUml Server.
+ There are 2 kind of servlets in this package:
+ - Interactive servlets: Welcome, PlantUmlServlet that are in charge of the web pages dedicated to human users.
+ - Service servlets: ImgServlet, SvgServlet, EpsServlet, EpsTextServlet, AsciiServlet, ProxyServlet that only produce a diagram as output.
+
+ Structure of the service part of the PlantUmlServer:
+
+
+
+
+
-
\ No newline at end of file
+