メインコンテンツまでスキップ
バージョン: 次へ

Web サーバー

4D in local mode and 4D Server include a web server engine (aka http server) that enables you to design and publish powerful web applications that can make the most of your 4D databases.

Deprecated feature

Using the web server on a remote 4D is deprecated as of 4D 21. It is no longer recommended to use this feature.

簡単なモニタリング

Webアプリケーションの公開は、いつでも開始または停止することができます。 メニューコマンドを選択、またはランゲージコマンドを実行するだけで、操作できます。

Monitoring the 4D web server is easy and can be done using the 4D Server administration window or through special URLs.

すぐに使えます

4D Webサーバーは、デフォルトのルートフォルダーとデフォルトのホームページを自動作成するため、すぐに利用できます。

セキュリティ

データセキュリティは、4D Webサーバーの実装のすべての段階に存在します。 セキュリティレベルは調整可能で、デフォルト設定では通常、もっとも安全なオプションが選択されます。 4D Webサーバーのセキュリティは、以下の要素に基づいています:

4Dのセキュリティ機能の概要については、4D Security guide をご覧ください。

ユーザーセッション

4D Webサーバーには cookie を使用する、完全に自動化された Webセッション (ユーザーセッション) 管理機能があります。

RESTリクエストへのゲートウェイ

4D Webサーバーにより、4Dアプリケーションに保存されているデータに RESTリクエストを通じてアクセスすることが可能になります。 REST requests provide direct access to any ORDA operation such as adding, reading, editing, ordering, or searching data.

RESTリクエストの詳細については、RESTサーバー のセクションを参照ください。

拡張設定

The 4D web server configuration is defined through a comprehensive set of application-level settings that can also be customized for the session using the webServer object properties or the WEB SET OPTION command.

テンプレートとURL

4D Webサーバーは、テンプレートページおよび専用のURLを介して、4Dアプリケーションに保存されているデータへのアクセスを提供します。

  • テンプレートページには、ブラウザーに送信される際に Webサーバーの処理を開始する 特別なタグ が含まれています。

  • 専用のURL は、任意のアクションを実行するために 4D を呼び出すもので、ユーザーが HTMLフォームを POST したときに処理を開始するフォームアクションとしても使用できます。

専用のデータベースメソッド

On Web AuthenticationOn Web Connection、および On REST Authentication データベースメソッドは、Webサーバーにおいてリクエストのエントリーポイントであり、あらゆるタイプのリクエストを評価・ルーティングするのに使用できます。