| commit | 0983b4f5660aec583ac96bae2df734a714044740 | [log] [tgz] |
|---|---|---|
| author | Stefan Seifert <stefanseifert@users.noreply.github.com> | Fri Mar 28 17:12:37 2025 +0100 |
| committer | Stefan Seifert <stefanseifert@users.noreply.github.com> | Fri Mar 28 17:27:52 2025 +0100 |
| tree | cae7aa5486efb8bf719debfdc72feae3874d593c | |
| parent | 5a412958f718dc9a37340bd6141b4b8a5e1df5c0 [diff] |
Bump org.apache.sling:org.apache.sling.api from 2.11.0 to 2.25.4
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