Class StopServerHandler

  • All Implemented Interfaces:
    com.sun.net.httpserver.HttpHandler

    public class StopServerHandler
    extends java.lang.Object
    implements com.sun.net.httpserver.HttpHandler
    Ein HTTP-Handler zum Stoppen der Anwendung
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(com.sun.net.httpserver.HttpExchange e)
      Den Server geordnet herunterfahren und dann die Anwendung beenden.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StopServerHandler

        public StopServerHandler()
    • Method Detail

      • handle

        public void handle​(com.sun.net.httpserver.HttpExchange e)
                    throws java.io.IOException
        Den Server geordnet herunterfahren und dann die Anwendung beenden.
        Specified by:
        handle in interface com.sun.net.httpserver.HttpHandler
        Parameters:
        e - das Objekt mit Methoden zur Untersuchung der Anfrage sowie zum Anfertigen und Senden der Antwort
        Throws:
        java.io.IOException - falls etwas schief geht entsteht dieser Fehler