commit | 3db06702e1c10e1390968c767a63c925c3651183 | [log] [tgz] |
---|---|---|
author | Radu Cotescu <radu@apache.org> | Thu Sep 20 11:09:07 2018 +0200 |
committer | Radu Cotescu <radu@apache.org> | Thu Sep 20 11:09:07 2018 +0200 |
tree | 8ef14ce4963b216d3e3ac14c2e1791d329dd8baa | |
parent | 8c6ddb58c2a9f7570cada422511e171e778fb597 [diff] |
trivial: added license header to *.md files
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