Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
runcon
Plantuml Server
Commits
53fe54e3
Commit
53fe54e3
authored
Nov 26, 2013
by
Maxime Sinclair
Browse files
[TASK] Using the "start" keyword in the URL is now deprecated.
parent
76ad7acd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/sourceforge/plantuml/servlet/PlantUmlServlet.java
View file @
53fe54e3
...
...
@@ -69,6 +69,7 @@ public class PlantUmlServlet extends HttpServlet {
final
String
uri
=
request
.
getRequestURI
();
Matcher
startumlMatcher
=
startumlPattern
.
matcher
(
uri
);
if
(
startumlMatcher
.
matches
())
{
System
.
out
.
println
(
"PlantUML WARNING This syntax is deprecated."
);
String
source
=
startumlMatcher
.
group
(
1
);
handleImage
(
response
,
source
,
uri
);
}
else
{
...
...
@@ -125,6 +126,7 @@ public class PlantUmlServlet extends HttpServlet {
return
TranscoderUtil
.
getDefaultTranscoder
();
}
// This method will be removed in a near future, please don't use it.
private
void
handleImage
(
HttpServletResponse
response
,
String
source
,
String
uri
)
throws
IOException
{
source
=
URLDecoder
.
decode
(
source
,
"UTF-8"
);
StringBuilder
plantUmlSource
=
new
StringBuilder
();
...
...
@@ -138,6 +140,7 @@ public class PlantUmlServlet extends HttpServlet {
}
// This method will be removed in a near future, please don't use it.
private
void
sendImage
(
HttpServletResponse
response
,
String
text
,
String
uri
)
throws
IOException
{
final
String
uml
;
if
(
text
.
startsWith
(
"@startuml"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment