Interface KristenHttpServerEventHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onAgentReceived​(Agent agent)
      Called when an agent has been received by the HTTP server.
      void onDefaultContextCreated​(com.sun.net.httpserver.HttpContext context)
      Called when the default HTTP context has been created.
      void onHttpContextCreated​(com.sun.net.httpserver.HttpContext context)
      Called when an HTTP context has been created.
      void onHttpContextRemoved​(com.sun.net.httpserver.HttpContext context)
      Called when an HTTP context has been removed.
      void onHttpContextRemoved​(String path)
      Called when an HTTP context has been removed.
      void onHttpServerCreated​(com.sun.net.httpserver.HttpServer httpServer)
      Called when the underlying HTTP server has been created.
      void onHttpServerStarted​(com.sun.net.httpserver.HttpServer httpServer)
      Called when the underlying HTTP server has started.
      void onHttpServerStopped()
      Called when the underlying HTTP server has stopped.
    • Method Detail

      • onHttpServerCreated

        void onHttpServerCreated​(com.sun.net.httpserver.HttpServer httpServer)
        Called when the underlying HTTP server has been created.
        Parameters:
        httpServer - the HTTP server that was created
      • onDefaultContextCreated

        void onDefaultContextCreated​(com.sun.net.httpserver.HttpContext context)
        Called when the default HTTP context has been created.
        Parameters:
        context - the default HTTP context that was created
      • onHttpServerStarted

        void onHttpServerStarted​(com.sun.net.httpserver.HttpServer httpServer)
        Called when the underlying HTTP server has started.
        Parameters:
        httpServer - the HTTP server that was started
      • onHttpServerStopped

        void onHttpServerStopped()
        Called when the underlying HTTP server has stopped.
      • onHttpContextCreated

        void onHttpContextCreated​(com.sun.net.httpserver.HttpContext context)
        Called when an HTTP context has been created.
        Parameters:
        context - the HTTP context that was created
      • onHttpContextRemoved

        void onHttpContextRemoved​(com.sun.net.httpserver.HttpContext context)
        Called when an HTTP context has been removed.
        Parameters:
        context - the HTTP context that was removed
      • onHttpContextRemoved

        void onHttpContextRemoved​(String path)
        Called when an HTTP context has been removed.
        Parameters:
        path - the path of the HTTP context that was removed
      • onAgentReceived

        void onAgentReceived​(Agent agent)
        Called when an agent has been received by the HTTP server.
        Parameters:
        agent - the agent that was received