-
Book Overview & Buying
-
Table Of Contents
Java Web Internals
By :
In this chapter, we started by specifying the minimal number of classes needed to make a simple application server. The main purpose of this is to explain how we can execute Java classes (with some custom annotations) to handle HTTP requests and send responses. Our SimpleServlet class provides methods to handle GET and POST HTTP requests and send responses in different formats. The current limitations of this servlet (GET and POST methods) open a wide range of possibilities, such as implementing other methods and improving content type support. Of course, this Simple Web Container is just a tool for educational purposes. Many of the design decisions we made here are not safe for real environments. But the main goal of this chapter is to show you how static and dynamic content can be handled by a Web Container.
In the next chapter, we will explore more features to expand and improve our Web Container.
Scan the QR code (or go...