simple HTTP server in Java using only Java SE API

前端 未结 17 1720
无人共我
无人共我 2020-11-22 13:28

Is there a way to create a very basic HTTP server (supporting only GET/POST) in Java using just the Java SE API, without writing code to manually parse HTTP requests and man

17条回答
  •  长发绾君心
    2020-11-22 14:04

    Have a look at the "Jetty" web server Jetty. Superb piece of Open Source software that would seem to meet all your requirments.

    If you insist on rolling your own then have a look at the "httpMessage" class.

提交回复
热议问题