From 9ee4b279bcebc9aab1fda5d2e5ac893653c17d10 Mon Sep 17 00:00:00 2001 From: Maxime Sinclair Date: Wed, 17 Jul 2013 10:02:38 +0200 Subject: [PATCH] [FEATURE] Future design of the PlantUML Server A new map feature to retrieve the image map of a diagram is added --- .../sourceforge/plantuml/servlet/diagrams.txt | 36 +++++++++++++++++++ .../sourceforge/plantuml/servlet/package.html | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 src/main/java/net/sourceforge/plantuml/servlet/diagrams.txt diff --git a/src/main/java/net/sourceforge/plantuml/servlet/diagrams.txt b/src/main/java/net/sourceforge/plantuml/servlet/diagrams.txt new file mode 100644 index 0000000..f63602f --- /dev/null +++ b/src/main/java/net/sourceforge/plantuml/servlet/diagrams.txt @@ -0,0 +1,36 @@ +## Class diagram ## +################### + +@startuml +hide empty members +hide empty methods +hide empty fields +abstract class UmlDiagramService { + public void doGet(HttpServletRequest rq, HttpServletResponse rsp) + abstract public ResponseSender getSender() + abstract public String getSource( String uri) + abstract public FileFormat getOutputFormat() +} +interface ResponseSender { + ResponseSender( HttpServletResponse r, FileFormat f) + void sendDiagram( String uml, int n) +} +abstract HttpServlet <|-- UmlDiagramService +abstract HttpServlet <|-- ProxyServlet +UmlDiagramService <|-- PngServlet +UmlDiagramService <|-- SvgServlet +UmlDiagramService <|-- AsciiServlet +UmlDiagramService <|-- MapServlet +UmlDiagramService o- ResponseSender +ResponseSender <|-- DiagramResponse +ResponseSender <|-- MapResponse +ResponseSender <|-- ProxyResponse +ProxyResponse -o ProxyServlet +@enduml + +## Sequence diagram ## +###################### + +@startuml +TODO +@enduml \ No newline at end of file diff --git a/src/main/java/net/sourceforge/plantuml/servlet/package.html b/src/main/java/net/sourceforge/plantuml/servlet/package.html index f0b5f99..5af7745 100644 --- a/src/main/java/net/sourceforge/plantuml/servlet/package.html +++ b/src/main/java/net/sourceforge/plantuml/servlet/package.html @@ -6,7 +6,7 @@ - Service servlets : ImgServlet, SvgServlet, AsciiServlet, ProxyServlet that only produce a diagram as output.

Structure of the service part of the PlantUmlServer:
- +

\ No newline at end of file