Package de.freaklamarsch.systarest
Class SystaRESTServer
java.lang.Object
de.freaklamarsch.systarest.SystaRESTServer
public class SystaRESTServer
extends java.lang.Object
The main function of this class starts an
HttpServer
for providing SystaRESTAPI
and STouchRESTAPI
. The main method requires a configured
SystaREST.properties for setting the interfaces that should be used. One
interface is used for the connection to the Paradigma SystaComfort II and one
for accessing the REST APIs.-
Constructor Summary
Constructors Constructor Description SystaRESTServer()
-
Method Summary
Modifier and Type Method Description private static java.lang.String
getIPv4Address(java.lang.String interfaceName)
Helper function to get the IPv4 address for a given interface namestatic void
main(java.lang.String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SystaRESTServer
public SystaRESTServer()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) -
getIPv4Address
private static java.lang.String getIPv4Address(java.lang.String interfaceName)Helper function to get the IPv4 address for a given interface name- Parameters:
interfaceName
-- Returns:
- the configured IPv4 address as
String
, e.g. "127.0.0.1", or null if no configured IPv4 address was found
-