Further implementation issues
We can obviously improve the implementation of our SimpleWebContainer. Several possibilities can be explored, and since our goal in this book is educational, we can explore several areas for improvement. Let's look at some of them:
- ServletDiscoverService - searching for Servlet classes that are part of the project
- Implementing filters, for example, to manipulate items in the received header, check authorization, create custom responses, etc.
- Improving
SimpleWebContainerlogs (for example, timestamp, HTTP method, path, status code, and others)
With this, we have completed the basic implementation of SimpleWebContainer, a minimalist but functional web server capable of delivering both static and dynamic content. The proposed modularity allows for expansion to more robust functionalities similar to production servers. By exploring and implementing the points suggested in the previous section, you will be able to evolve this project to a more advanced...