Class JWebServer

  • All Implemented Interfaces:
    java.lang.Runnable

    public class JWebServer
    extends java.lang.Object
    implements java.lang.Runnable
    The jwebserver. https://blogs.oracle.com/javamagazine/post/java-18-simple-web-server
    • Constructor Detail

      • JWebServer

        public JWebServer()
        Constructor for JWebServer
    • Method Detail

      • getConfiguration

        public IWebServerConfiguration getConfiguration()
        Get the configuration
        Returns:
        the configuration
      • setConfiguration

        public void setConfiguration​(IWebServerConfiguration configuration)
        Get the configuration
        Parameters:
        configuration - the configuration
      • main

        public static void main​(java.lang.String[] args)
        The main class
        Parameters:
        args - the arguments
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        See Also:
        Runnable.run()
      • stop

        public void stop()
        Stop the server