Package net.sourceforge.plantuml.servlet
Class PlantUmlServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- net.sourceforge.plantuml.servlet.AsciiCoderServlet
-
- net.sourceforge.plantuml.servlet.PlantUmlServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class PlantUmlServlet extends AsciiCoderServlet
Original idea from Achim Abeling for Confluence 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. Modified by Arnaud Roques Modified by Pablo Lalloni Modified by Maxime Sinclair- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PlantUmlServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)protected voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)protected StringgetServletContextPath()Context path from the servlet mapping URL pattern.static StringstringToHTMLString(String string)Encode arbitrary string to HTML string.-
Methods inherited from class net.sourceforge.plantuml.servlet.AsciiCoderServlet
getEncodedTextFromUrl, getTranscoder
-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
getServletContextPath
protected String getServletContextPath()
Description copied from class:AsciiCoderServletContext path from the servlet mapping URL pattern.- Overrides:
getServletContextPathin classAsciiCoderServlet- Returns:
- servlet context path without leading or tailing slash
-
stringToHTMLString
public static String stringToHTMLString(String string)
Encode arbitrary string to HTML string.- Parameters:
string- arbitrary string- Returns:
- html encoded string
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException- Overrides:
doGetin classAsciiCoderServlet- Throws:
IOExceptionjakarta.servlet.ServletException
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException- Overrides:
doPostin classAsciiCoderServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
-