mirror of
https://github.com/octoleo/plantuml-server.git
synced 2025-01-03 13:07:23 +00:00
Parameter 'format' changed to 'fmt'
and System.out deletion
This commit is contained in:
parent
d21bb445f8
commit
d3e42fd17a
@ -61,7 +61,7 @@ public class ProxyServlet extends HttpServlet {
|
|||||||
@Override
|
@Override
|
||||||
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
|
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
|
||||||
|
|
||||||
final String fmt = request.getParameter("format");
|
final String fmt = request.getParameter("fmt");
|
||||||
final String source = request.getParameter("src");
|
final String source = request.getParameter("src");
|
||||||
final String index = request.getParameter("idx");
|
final String index = request.getParameter("idx");
|
||||||
final URL srcUrl;
|
final URL srcUrl;
|
||||||
@ -79,7 +79,6 @@ public class ProxyServlet extends HttpServlet {
|
|||||||
|
|
||||||
// generate the response
|
// generate the response
|
||||||
String diagmarkup = getSource(srcUrl);
|
String diagmarkup = getSource(srcUrl);
|
||||||
System.out.println("getSource=>" + diagmarkup);
|
|
||||||
SourceStringReader reader = new SourceStringReader(diagmarkup);
|
SourceStringReader reader = new SourceStringReader(diagmarkup);
|
||||||
int n = index == null ? 0 : Integer.parseInt(index);
|
int n = index == null ? 0 : Integer.parseInt(index);
|
||||||
List<BlockUml> blocks = reader.getBlocks();
|
List<BlockUml> blocks = reader.getBlocks();
|
||||||
@ -87,7 +86,7 @@ public class ProxyServlet extends HttpServlet {
|
|||||||
Diagram diagram = block.getDiagram();
|
Diagram diagram = block.getDiagram();
|
||||||
UmlSource umlSrc = diagram.getSource();
|
UmlSource umlSrc = diagram.getSource();
|
||||||
String uml = umlSrc.getPlainString();
|
String uml = umlSrc.getPlainString();
|
||||||
System.out.println("uml=" + uml);
|
//System.out.println("uml=" + uml);
|
||||||
|
|
||||||
// generate the response
|
// generate the response
|
||||||
DiagramResponse dr = new DiagramResponse(response, getOutputFormat());
|
DiagramResponse dr = new DiagramResponse(response, getOutputFormat());
|
||||||
|
Loading…
Reference in New Issue
Block a user