Daraja HTTP Framework  2.0
HTTP server framework for Object Pascal
TdjAbstractHandlerContainer Class Reference

This is the base class for handlers that may contain other handlers. More...

+ Inheritance diagram for TdjAbstractHandlerContainer:

Protected Member Functions

 AddHandler (const IHandler Handler)
 Add a handler. More...
 
 RemoveHandler (const IHandler Handler)
 Remove a handler. More...
 
- Protected Member Functions inherited from TdjLifeCycle
 DoStart ()
 Execute the custom start code.
 
 DoStop ()
 Execute the custom stop code.
 
 CheckStarted ()
 Raises an exception if the lifecycle is in "started" state.
 
 CheckStopped ()
 Raises an exception if the lifecycle is in "stopped" state.
 

Additional Inherited Members

- Public Member Functions inherited from TdjAbstractHandler
 TdjAbstractHandler ()
 Constructor.
 
 DoStart ()
 Start the handler.
 
 DoStop ()
 Start the handler.
 
 Handle (const string Target, TdjServerContext Context, TdjRequest Request, TdjResponse Response)
 Handle a HTTP request. More...
 
- Public Member Functions inherited from TdjLifeCycle
 TdjLifeCycle ()
 Constructor.
 
 Start ()
 Start the handler. More...
 
 Stop ()
 Stop the handler. More...
 
Boolean IsStarted ()
 
Boolean IsStopped ()
 
- Public Attributes inherited from TdjLifeCycle
Boolean Started
 True if the state is "started". More...
 
Boolean Stopped
 True if the state is "stopped". More...
 

Detailed Description

This is the base class for handlers that may contain other handlers.

Member Function Documentation

◆ AddHandler()

TdjAbstractHandlerContainer::AddHandler ( const IHandler  Handler)
protected

Add a handler.

Parameters
Handlerthe handler to be added.

◆ RemoveHandler()

TdjAbstractHandlerContainer::RemoveHandler ( const IHandler  Handler)
protected

Remove a handler.

Parameters
Handlerthe handler to be removed.