a web server from learning tomcat server
this project is tiny as no more than 5000 lines but covers many features of a web server and totally writen by Java, is suitable for newbies to learn Java and web server knoweldge
-
happyBrowser : send and review http message with code
-
unit test : stablely interate project and show use case of this project
-
happycat log : rotate log happycat server running info
-
parallel process requests
-
muti-port and muti-webapp
- Server、Service、Connector、Engine、Host、Context implementation
- parse context.xml、server.xml、web.xml
-
http specification
- 200 : normal response
- 404 : client error
- 500 : server error
- compression
- client jump
- server jump
- cookie
- session
-
servlet
- InvokeServlet : handle requests definied in webapp's web.xml
- DefalutServlet : handle static resource requests
- JspServlet : handle JSP request
- servlet life time
- servlet automatic start
-
class load mechanism
- CommonClassLoader : load happycat build-in classes
- WebClassLoader : load webapp classes
- JspClassLoader : load JSP classes
-
webapp deployment
- webapp hot loadding
- war file dynamic deployment
-
webapp filter
-
webapp listener
- build jar with idea
- copy b/、cong/、javaweb/、lib/、log/、webapps/、work/ to the directory of jar file
- config right docbase of happycat/conf/server.xml
- run with "java -jar happycat.jar"
- http://tomcat.apache.org/
- Apache Tomcat Cookbook
- Tomcat架构解析
- How Tomcat Works
- Tomcat the definitive guide
- Specification UML 2.5.1
- UMLDistilled
- PlantUML_Language_Reference_Guide_en
- UML_for_Java_Programmers-Book
- core Java