Examples of ways to use the new Servlet 4.0 feature in Java EE 8
The code repository contains three examples:
- An example of using Server Push in a Servlet: SimplestExample
- An exmaple of using the Servlet Mapping API: ServletMapping . Ensure that you uncomment the relevant sections in the web.xml and the WebServlet code line in the class.
- A very simple and naive way to implement a push cache filter: PushCacheFilter
This repository contains the examples I demonstarted in my article "Servlet 4.0: Doing More Faster" that was published in the November/December 2017 edition of the Java Magazine.