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
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:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected StringContext 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, getTranscoderMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
PlantUmlServlet
public PlantUmlServlet()
-
-
Method Details
-
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
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
-