Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
Loading...
Searching...
No Matches
IHandlerContainer Interface Reference

Interface for components that can contain multiple handlers. More...

Inheritance diagram for IHandlerContainer:
IHandler ILifeCycle TdjAbstractHandlerContainer TdjServerBase TdjHandlerCollection TdjHandlerWrapper TdjServer TdjHandlerList TdjContextHandler TdjServerBase TdjContextHandlerCollection TdjWebComponentContextHandler TdjServer TdjWebAppContext

Public Member Functions

 AddHandler (const IHandler Handler)
 Adds a handler to this container.
 Handle (const string Target, TdjServerContext Context, TdjRequest Request, TdjResponse Response)
 Handles an HTTP request.
boolean IsStarted ()
boolean IsStopped ()
 RemoveHandler (const IHandler Handler)
 Removes a handler from this container.
 Start ()
 Starts the component.
 Stop ()
 Stops the component.

Detailed Description

Interface for components that can contain multiple handlers.

Member Function Documentation

◆ AddHandler()

IHandlerContainer::AddHandler ( const IHandler Handler)

Adds a handler to this container.

Parameters
HandlerHandler to add

Implemented in TdjAbstractHandlerContainer, TdjHandlerCollection, and TdjHandlerWrapper.

◆ Handle()

IHandler::Handle ( const string Target,
TdjServerContext Context,
TdjRequest Request,
TdjResponse Response )
inherited

Handles an HTTP request.

Parameters
TargetTarget path or resource identifier
ContextServer context for this request
RequestHTTP request object
ResponseHTTP response object to populate
Exceptions
EWebComponentExceptionif an exception occurs that interferes with the component's normal operation.

Implemented in TdjAbstractHandler, TdjContextHandler, TdjHandlerCollection, TdjHandlerList, TdjHandlerWrapper, TdjServerBase, TdjWebComponentContextHandler, and TdjWebComponentHandler.

◆ IsStarted()

boolean ILifeCycle::IsStarted ( )
inherited
Returns
True if component is started

Implemented in TdjLifeCycle.

Referenced by Stop().

◆ IsStopped()

boolean ILifeCycle::IsStopped ( )
inherited
Returns
True if component is stopped

Implemented in TdjLifeCycle.

◆ RemoveHandler()

IHandlerContainer::RemoveHandler ( const IHandler Handler)

Removes a handler from this container.

Parameters
HandlerHandler to remove

Implemented in TdjAbstractHandlerContainer, TdjHandlerCollection, and TdjHandlerWrapper.

◆ Start()

ILifeCycle::Start ( )
inherited

Starts the component.

Implemented in TdjLifeCycle.

◆ Stop()

ILifeCycle::Stop ( )
inherited

Stops the component.

Implemented in TdjLifeCycle.

References IsStarted().