Package oshi.demo

Class OshiHTTPServer

java.lang.Object
oshi.demo.OshiHTTPServer
All Implemented Interfaces:
Runnable

public class OshiHTTPServer extends Object implements Runnable
Demo class to vend OSHI JSON data via an HTTP Webserver

This is for demonstration only not to be used in production code.

Code based on tutorial found on SSaurel's Blog : https://www.ssaurel.com/blog/create-a-simple-http-web-server-in-java Each Client Connection will be managed in a dedicated Thread

  • Constructor Details

    • OshiHTTPServer

      public OshiHTTPServer(Socket c)
  • Method Details

    • main

      public static void main(String[] args)
    • run

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