You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by GitBox <gi...@apache.org> on 2021/07/21 13:20:18 UTC

[GitHub] [sling-org-apache-sling-servlets-resolver] bdelacretaz commented on a change in pull request #19: Sling 10644 return servlet resolver information in json format

bdelacretaz commented on a change in pull request #19:
URL: https://github.com/apache/sling-org-apache-sling-servlets-resolver/pull/19#discussion_r673964854



##########
File path: src/main/java/org/apache/sling/servlets/resolver/internal/console/WebConsolePlugin.java
##########
@@ -57,6 +43,28 @@
 import org.osgi.service.component.annotations.Modified;
 import org.osgi.service.component.annotations.Reference;
 
+import javax.servlet.Servlet;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.atomic.AtomicReference;
+
+/**
+ * If the servlet request path ends with .json, the information is returned in JSON format.
+ * Otherwise, an HTML code is returned.

Review comment:
       Nitpick, I would say "an HTML document"




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org