commit | c0c2e63bd330cf47f9f22ee36bfe5b32abaea2a3 | [log] [tgz] |
---|---|---|
author | Bertrand Delacretaz <bdelacretaz@apache.org> | Wed Jul 28 16:13:17 2021 +0200 |
committer | Bertrand Delacretaz <bdelacretaz@apache.org> | Wed Jul 28 16:13:17 2021 +0200 |
tree | 9a822f3566dc328d4aa6e707ed6e73725d86621b | |
parent | 019d6fd6fbf66775ffe3cc9aa27d970713018c4b [diff] |
SLING-10676 - add or update SECURITY.md
This module is part of the Apache Sling project.
This module implements a script engine for java servlets, that are compiled on the fly by Sling.
To test it:
mvn -P autoInstallBundle clean install -Dsling.url=http://localhost:8080/system/console
If Sling is running with the launchpad/testing setup.
package apps.foo;
import java.io.IOException; import javax.servlet.ServletException; import org.apache.sling.api.SlingHttpServletRequest; import org.apache.sling.api.SlingHttpServletResponse; import org.apache.sling.api.servlets.SlingSafeMethodsServlet;
public class foo extends SlingSafeMethodsServlet {
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException { response.setContentType("text/plain"); response.getWriter().write("Response from " + getClass().getName() + " at " + new java.util.Date()); }
}
Response from apps.foo.foo at Tue Nov 18 14:49:14 CET 2008