Getting Route Parameters
An Akula project developer can set properties on the module definition within the route configuration file. These properties are typically set once and then read in a custom module during initialization.
The following example route configuration file shows a module definition that sets the properties
lang on a module in the route:
Note that the values must be URL-encoded. For example, you must replace ampersands (&) with %26 and spaces with %20.
In your custom module, you access the route properties by using the
getRouteProperties() methods of the
AKRouteParameters class. An instance of this class is passed to the custom module in the
The following example reads the
lang properties and returns them to the output:
To get all route properties, use the
getRouteProperties() method on the
AKRouteParameters object. This method returns a Map of the properties and their names.
The following example iterates over all route properties and writes them to the output: