X4 Produktdokumentation

Declaring Configurations in the Source View

The root element of the .wac file is <Configuration>. This element contains all configurations for the Web App. Attributes control the appearance and behavior of the Web App.

The <Configuration> element can include the following elements:

Element

Description

Access

Contains configuration definitions for accessing the Web App.

AccessRights

Contains configuration definitions for the access rights for the Web App.

General

Contains configuration definitions for the general appearance of the Web App.

HeaderIncludes

Contains header configuration definitions. For example, you can insert your own JavaScript code in the header.

HTTPSecurityHeaders

Contains configuration definitions for the HTTP security header.

Logout

Contains configuration definitions for the logout.

MapAPIKey

Containes the API key if required by the map provider.

To use OpenStreetMap, no API key is required. If an API key is entered when using OpenStreetMap as the map provider, the API key is ignored.

If Google Maps is used as the map provider, the following APIs must be enabled:

  • Maps JS API

  • Locations (for search and route calculation)

  • Directions (for route calculation)

Notifications

Contains configuration definitions for the info banner.

Status

Contains configuration definitions for the internal status values of the Web App.

Url

Contains configuration definitions for the path of the Web App that is displayed in the URL.

For the documentation of the ReST interface, see http://localhost:8080/X4/X4Api/.