Package com.github.toolarium.jwebserver
Class JWebServer
- java.lang.Object
-
- com.github.toolarium.jwebserver.JWebServer
-
- All Implemented Interfaces:
java.lang.Runnable
public class JWebServer extends java.lang.Object implements java.lang.RunnableThe jwebserver. https://blogs.oracle.com/javamagazine/post/java-18-simple-web-server
-
-
Constructor Summary
Constructors Constructor Description JWebServer()Constructor for JWebServer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IWebServerConfigurationgetConfiguration()Get the configurationstatic voidmain(java.lang.String[] args)The main classvoidrun()voidsetConfiguration(IWebServerConfiguration configuration)Get the configurationvoidstop()Stop the server
-
-
-
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:
runin interfacejava.lang.Runnable- See Also:
Runnable.run()
-
stop
public void stop()
Stop the server
-
-