aanno / Servlet-4.0-Sampler

Examples of ways to use the new Servlet 4.0 feature in Java EE 8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Servlet 4.0 Examples

Examples of ways to use the new Servlet 4.0 feature in Java EE 8

The code repository contains three examples:

  1. An example of using Server Push in a Servlet: SimplestExample
  2. 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.
  3. 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.

About

Examples of ways to use the new Servlet 4.0 feature in Java EE 8

License:MIT License


Languages

Language:Java 88.2%Language:HTML 11.8%