Implementation issues
How do we put the concepts explained in previous sections into code? We will detail this in the next chapter, but we can already define some requirements.
Our SimpleWebContainer must recognize the HttpRequest, HttpResponse, and SimpleServlet classes, as well as the ServletDefinition annotation. These classes affect the operation and guide the SimpleWebContainer to redirect the processing of the request and the generation of the response.
In addition, we need the applications to be developed independently, that is, in separate projects that do not need or depend directly on the SimpleWebContainer project. How do you do this? Imagine that the SimpleWebContainer is a separate project (or even a binary that is on your machine and will be started independently of your application). The idea is that the classes mentioned above are isolated in a library and made available to anyone who wants to implement an application that will run in this environment.
In this way, the...