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

HTTP connector. More...

Inheritance diagram for TdjHTTPConnector:
TdjAbstractConnector TdjLifeCycle IConnector ILifeCycle

Public Member Functions

 TdjHTTPConnector (const IHandler Handler)
 Create a HTTP connector.
 ~TdjHTTPConnector ()
 Destructor.
Boolean IsStarted ()
Boolean IsStopped ()
 Start ()
 Starts the component.
 Stop ()
 Stops the component.

Public Attributes

string Host
 The host address for the connector.
TdjHTTPServer HTTPServer
Integer Port
 The port number for the connector.
Boolean Started
Boolean Stopped

Protected Member Functions

 CheckStarted ()
 Raises an exception if the lifecycle is in "started" state.
 CheckStopped ()
 Raises an exception if the lifecycle is in "stopped" state.

Protected Attributes

IHandler Handler
 Handler for incoming requests.

Detailed Description

HTTP connector.

Instances of this class wrap a TdjHTTPServer component.

Constructor & Destructor Documentation

◆ TdjHTTPConnector()

TdjHTTPConnector::TdjHTTPConnector ( const IHandler Handler)

Create a HTTP connector.

The handler is a required argument. The connector will call the "Handle" method for incoming requests.

Parameters
Handlerthe request handler

◆ ~TdjHTTPConnector()

TdjHTTPConnector::~TdjHTTPConnector ( )

Destructor.

Member Function Documentation

◆ CheckStarted()

TdjLifeCycle::CheckStarted ( )
protectedinherited

Raises an exception if the lifecycle is in "started" state.

References TdjLifeCycle().

◆ CheckStopped()

TdjLifeCycle::CheckStopped ( )
protectedinherited

Raises an exception if the lifecycle is in "stopped" state.

References TdjLifeCycle(), and Started.

◆ IsStarted()

Boolean TdjLifeCycle::IsStarted ( )
inherited
Returns
True if component is started

Implements ILifeCycle.

References Create().

Referenced by DoStart(), and TdjWebComponentHandler::FindHolder().

◆ IsStopped()

Boolean TdjLifeCycle::IsStopped ( )
inherited
Returns
True if component is stopped

Implements ILifeCycle.

Referenced by DoStart().

◆ Start()

TdjLifeCycle::Start ( )
inherited

Starts the component.

Implements ILifeCycle.

References Stopped.

◆ Stop()

TdjLifeCycle::Stop ( )
inherited

Stops the component.

Implements ILifeCycle.

References TdjLifeCycle().

Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().

Member Data Documentation

◆ Handler

IHandler TdjAbstractConnector::Handler
protectedinherited

Handler for incoming requests.

Referenced by TdjAbstractConnector().

◆ Host

string TdjAbstractConnector::Host
inherited

The host address for the connector.

◆ HTTPServer

TdjHTTPServer TdjHTTPConnector::HTTPServer

◆ Port

Integer TdjAbstractConnector::Port
inherited

The port number for the connector.

◆ Started

◆ Stopped

Boolean TdjLifeCycle::Stopped
inherited

Referenced by DoStop(), and Start().