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:
  • Field Summary

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    protected void
    doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    protected String
    Context path from the servlet mapping URL pattern.
    static 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, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlantUmlServlet

      public PlantUmlServlet()
  • Method Details

    • getServletContextPath

      protected String getServletContextPath()
      Description copied from class: AsciiCoderServlet
      Context path from the servlet mapping URL pattern.
      Overrides:
      getServletContextPath in class AsciiCoderServlet
      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:
      doGet in class AsciiCoderServlet
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doPost

      protected void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doPost in class AsciiCoderServlet
      Throws:
      jakarta.servlet.ServletException
      IOException