Package com.kristensoft.kdc
Class KristenHttpServerEventAdapter
- java.lang.Object
-
- com.kristensoft.kdc.KristenHttpServerEventAdapter
-
- All Implemented Interfaces:
KristenHttpServerEventHandler
public class KristenHttpServerEventAdapter extends Object implements KristenHttpServerEventHandler
Provides an empty implementation ofKristenHttpServerEventHandler.Applications may extend this class and override only the HTTP server event methods they are interested in.
- Author:
- Charles B. Kozoyed
- See Also:
KristenHttpServerEventHandler,KristenHttpServer
-
-
Constructor Summary
Constructors Constructor Description KristenHttpServerEventAdapter()Creates an HTTP server event adapter with no-op event handlers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAgentReceived(Agent agent)Called when an agent has been received by the HTTP server.voidonDefaultContextCreated(com.sun.net.httpserver.HttpContext context)Called when the default HTTP context has been created.voidonHttpContextCreated(com.sun.net.httpserver.HttpContext context)Called when an HTTP context has been created.voidonHttpContextRemoved(com.sun.net.httpserver.HttpContext context)Called when an HTTP context has been removed.voidonHttpContextRemoved(String path)Called when an HTTP context has been removed.voidonHttpServerCreated(com.sun.net.httpserver.HttpServer httpServer)Called when the underlying HTTP server has been created.voidonHttpServerStarted(com.sun.net.httpserver.HttpServer httpServer)Called when the underlying HTTP server has started.voidonHttpServerStopped()Called when the underlying HTTP server has stopped.
-
-
-
Method Detail
-
onAgentReceived
public void onAgentReceived(Agent agent)
Called when an agent has been received by the HTTP server.- Specified by:
onAgentReceivedin interfaceKristenHttpServerEventHandler- 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:
onHttpServerCreatedin interfaceKristenHttpServerEventHandler- 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:
onDefaultContextCreatedin interfaceKristenHttpServerEventHandler- 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:
onHttpServerStartedin interfaceKristenHttpServerEventHandler- Parameters:
httpServer- the HTTP server that was started
-
onHttpServerStopped
public void onHttpServerStopped()
Called when the underlying HTTP server has stopped.- Specified by:
onHttpServerStoppedin interfaceKristenHttpServerEventHandler
-
onHttpContextCreated
public void onHttpContextCreated(com.sun.net.httpserver.HttpContext context)
Called when an HTTP context has been created.- Specified by:
onHttpContextCreatedin interfaceKristenHttpServerEventHandler- 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:
onHttpContextRemovedin interfaceKristenHttpServerEventHandler- Parameters:
context- the HTTP context that was removed
-
onHttpContextRemoved
public void onHttpContextRemoved(String path)
Called when an HTTP context has been removed.- Specified by:
onHttpContextRemovedin interfaceKristenHttpServerEventHandler- Parameters:
path- the path of the HTTP context that was removed
-
-