These things are implemented by the builders of servlet containers (Tomcat, Websphere, etc..) not application developers. How they're implemented is really up to the the container builders and can vary from container to container. Luckily, if this is really of interest to you, there are several popular, open source, containers available for you to study. Tomcat, Resin, and Jetty are the ...