jgutie2r opened a new pull request, #508: URL: https://github.com/apache/tomcat/pull/508
I have made some changes to ease de development of event-driven serverless functions using embed Tomcat. I have used the API provided by CloudEvents. With these changes you can develop a serverless function extending the class CloudEventListener and implementing the method consumeEvent(CloudEvent ev, HttpServletRequest, HttpServletResponse). An instance of this class can be registered in a Tomcat instance (as is done with a HttpServlet subclass). A new method has been added to HttpServletResponse to send a CloudEvent as response to the request. These changes do not break the API (provide backward compatibility), if I'm not wrong. Besides I have added three filters (HealthFilter, MetricsFilter, TokenAuthFilter) and a class to register these filters. This do not affect the other changes (can be removed). A script is included to install the jar in the local repository for maven. I hope these changes are not out of scope of the project. --- The code in this project has been used to develop functions that have been deployed on Knative. -- 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-unsubscr...@tomcat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org