Class KristenHttpServerEventAdapter

    • Constructor Detail

      • KristenHttpServerEventAdapter

        public KristenHttpServerEventAdapter()
        Creates an HTTP server event adapter with no-op event handlers.
    • Method Detail

      • onAgentReceived

        public void onAgentReceived​(Agent agent)
        Called when an agent has been received by the HTTP server.
        Specified by:
        onAgentReceived in interface KristenHttpServerEventHandler
        Parameters:
        agent - the agent that was received
      • onHttpServerCreated

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

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

        public void onHttpServerStarted​(com.sun.net.httpserver.HttpServer httpServer)
        Called when the underlying HTTP server has started.
        Specified by:
        onHttpServerStarted in interface KristenHttpServerEventHandler
        Parameters:
        httpServer - the HTTP server that was started
      • onHttpContextCreated

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

        public void onHttpContextRemoved​(com.sun.net.httpserver.HttpContext context)
        Called when an HTTP context has been removed.
        Specified by:
        onHttpContextRemoved in interface KristenHttpServerEventHandler
        Parameters:
        context - the HTTP context that was removed