Class NotifyWebServerViaFile

  • All Implemented Interfaces:
    INotifyWebServer

    public class NotifyWebServerViaFile
    extends java.lang.Object
    implements INotifyWebServer
    For communication between Game/Server and WebServer. Perhaps later replaced with a two-way socket connection? Class is always created, no matter whether we have a web server ( => active == true) or not ( => active == false); but this way, we can have all the "if (we have a web server) { } " checking done inside this class and do not clutter the main server code.
    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
      • flagFilename

        private final java.lang.String flagFilename
      • out

        private java.io.PrintWriter out
      • flagFile

        private java.io.File flagFile
      • active

        private final boolean active
    • Constructor Detail

      • NotifyWebServerViaFile

        public NotifyWebServerViaFile​(java.lang.String name)