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

Interface for HTTP request handlers. More...

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

Public Member Functions

 Handle (const string Target, TdjServerContext Context, TdjRequest Request, TdjResponse Response)
 Handles an HTTP request.
boolean IsStarted ()
boolean IsStopped ()
 Start ()
 Starts the component.
 Stop ()
 Stops the component.

Detailed Description

Interface for HTTP request handlers.

Member Function Documentation

◆ Handle()

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

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.

◆ Start()

ILifeCycle::Start ( )
inherited

Starts the component.

Implemented in TdjLifeCycle.

◆ Stop()

ILifeCycle::Stop ( )
inherited

Stops the component.

Implemented in TdjLifeCycle.

References IsStarted().