Creating WebBroker Applications

From RAD Studio
Jump to: navigation, search

Go Up to Creating Web Server Applications

You can use WebBroker to create web server applications such as CGI applications or dynamic-link libraries (DLLs). These web server applications can contain any nonvisual component. Components on the Internet category of the Tool palette enable you to create event handlers, programmatically construct HTML or XML documents, and transfer them to the client.

Note: The WebBroker server applications can now be deployed on an Android device or a developer board (like a RaspBerry Pi running the Android OS). Both on Android 32-bit and 64-bit.

To create a new web server application using the WebBroker architecture, choose File > New > Other, and then navigate to either:

  • Delphi Projects > WebBroker > Web Server Application
  • C++ Projects > WebBroker > Web Server Application

Use this wizard to create and specify the type of server your web server application will work with.

Web server application types:

Item Description
Windows and Linux

Stand-alone console application

Selecting this type of application sets up an environment for developing web server console applications.

Apache dynamic link module

The Apache web server hosts static or dynamic websites, providing secure and efficient web server features as SSL (Secure Sockets Layer), and virtual domains. Apache has support for HTTP and HTTPS.

CGI Stand-alone executable

A CGI stand-alone web server application is a console application that receives client request information on standard input and passes the results back to the server on standard output. This data is evaluated by TCGIApplication. Each request message is handled by a separate instance of the application. Selecting this type of application adds the library header of the project files and required entries to the uses list and exports clause of the project file.

Windows

Stand-alone application

Selecting this type of application sets up an environment for developing web server applications that display a form.

ISAPI Dynamic Link Library

ISAPI web server applications are dynamic link libraries (DLL) that are loaded by the web server. Client request information is passed to the DLL as a structure and evaluated by TISAPIApplication. Each request message is handled in a separate execution thread. Selecting this type of application adds the library header of the project files and required entries to the uses list and exports clause of the project file.

CGI applications use more system resources on the server, so it is better to create complex applications as ISAPI, or Apache DLL applications. When writing an application that potentially interacts with other platforms, you should select CGI stand-alone or Apache Shared Module (DLL) for web server development. These are also the same options you see when creating Web Service applications.

See Also