Class JWebServer

java.lang.Object
com.github.toolarium.jwebserver.JWebServer
All Implemented Interfaces:
Runnable

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

    • JWebServer

      public JWebServer()
      Constructor for JWebServer
  • Method Details

    • getConfiguration

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

      public void setConfiguration(IWebServerConfiguration webServerConfiguration)
      Get the configuration
      Parameters:
      webServerConfiguration - the web server configuration
    • main

      public static void main(String[] args)
      The main class
      Parameters:
      args - the arguments
    • start

      public void start()
      Stop the server
    • stop

      public void stop()
      Stop the server
    • isRunning

      public boolean isRunning()
      Check if the server is running
      Returns:
      true if it is running
    • hasError

      public boolean hasError()
      Check if there are any errors
      Returns:
      true if there are any errors
    • run

      public void run()
      Specified by:
      run in interface Runnable
      See Also: