diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 35eb1dd..8306744 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/src/main/java/com/witty/handler/IndexHandler.java b/src/main/java/com/witty/handler/IndexHandler.java index 6293751..e10ea54 100644 --- a/src/main/java/com/witty/handler/IndexHandler.java +++ b/src/main/java/com/witty/handler/IndexHandler.java @@ -8,7 +8,7 @@ import java.io.IOException; import java.util.UUID; public class IndexHandler { - + public static void indexHandler(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("text/html; charset=utf-8"); response.setStatus(HttpServletResponse.SC_OK); @@ -16,35 +16,31 @@ public class IndexHandler { // 拼接服务器地址 String licenseUrl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort(); - - StringBuffer html = new StringBuffer("

使用说明(Instructions for use)

"); - - html.append("
"); - - html.append("

Hello,This is a Jrebel & JetBrains License Server!

"); - html.append("

License Server started at ").append(licenseUrl); - html.append("

JetBrains Activation address was: ").append(licenseUrl).append("/"); - html.append("

JRebel 7.1 and earlier version Activation address was: ") - .append(licenseUrl).append("/{tokenname}") - .append(", with any email."); - html.append("

JRebel 2018.1 and later version Activation address was: ") - .append(licenseUrl).append("/{guid}") - .append("(eg:") - .append(licenseUrl).append("/").append(UUID.randomUUID()) - .append("), with any email."); - - html.append("


"); - html.append("

Hello,此地址是 Jrebel & JetBrains License Server!

"); - html.append("

JetBrains许可服务器激活地址 ").append(licenseUrl); - html.append("

JetBrains激活地址是: ").append(licenseUrl).append("/"); - html.append("

JRebel 7.1 及旧版本激活地址: ") - .append(licenseUrl).append("/{tokenname}") - .append(", 以及任意邮箱地址。"); - html.append("

JRebel 2018.1+ 版本激活地址: ") - .append(licenseUrl).append("/{guid}") - .append("(例如:") - .append(licenseUrl).append("/").append(UUID.randomUUID()) - .append("), 以及任意邮箱地址。"); + + String html = "

使用说明(Instructions for use)

" + "
" + + "

Hello,This is a Jrebel & JetBrains License Server!

" + + "

License Server started at " + licenseUrl + + "

JetBrains Activation address was: " + licenseUrl + "/" + + "

JRebel 7.1 and earlier version Activation address was: " + + licenseUrl + "/{tokenname}" + + ", with any email." + + "

JRebel 2018.1 and later version Activation address was: " + + licenseUrl + "/{guid}" + + "(eg:" + + licenseUrl + "/" + UUID.randomUUID() + + "), with any email." + + "


" + + "

Hello,此地址是 Jrebel & JetBrains License Server!

" + + "

JetBrains许可服务器激活地址 " + licenseUrl + + "

JetBrains激活地址是: " + licenseUrl + "/" + + "

JRebel 7.1 及旧版本激活地址: " + + licenseUrl + "/{tokenname}" + + ", 以及任意邮箱地址。" + + "

JRebel 2018.1+ 版本激活地址: " + + licenseUrl + "/{guid}" + + "(例如:" + + licenseUrl + "/" + UUID.randomUUID() + + "), 以及任意邮箱地址。"; response.getWriter().println(html); }