The source code provided with samples and demos for the JDK is meant to illustrate the usage of a given feature or technique and has been deliberately simplified.
Additional steps required for a production-quality application, such as security checks, input validation, and proper error handling, might not be present in the sample code.
Usage of sample code in production environments is strongly discouraged.
Applications such as the lightweight HTTP server are shipped with the JDK to help developers deploy and test their code easily. They have not been developed in accordance with software development standards for production-quality applications.
Usage of such test and/or support applications in production environments is strongly discouraged.