commit | 210837f5967bd90a61e82861db9d19185198014b | [log] [tgz] |
---|---|---|
author | Robert Munteanu <rombert@apache.org> | Mon Oct 23 18:38:24 2017 +0200 |
committer | Robert Munteanu <rombert@apache.org> | Mon Oct 23 18:38:24 2017 +0200 |
tree | aaeca8bacd330b79c3c2151fe4fad80f8b06aa30 | |
parent | 78a8ff62bfe7e72247c9626b18f8bee0f3ef61e2 [diff] |
SLING-7214 - Add the LICENSE file to every module
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