RuleRoute


Object Hierarchy:

Valum.RuleRoute Valum.RuleRoute Valum.RuleRoute Valum.RegexRoute Valum.RegexRoute Valum.RegexRoute->Valum.RuleRoute Valum.Route Valum.Route Valum.Route->Valum.RegexRoute GLib.Object GLib.Object GLib.Object->Valum.Route

Description:


[ Version ( since = "0.3" ) ]
public class RuleRoute : RegexRoute

Route based on the rule system.

The rule pattern is composed of a few elements:

  • '<' '>' for parameters
  • '(' and ')' for group
  • '?' for optional
  • '*' for wildcard

The content of a parameters is a name with an optional type such as '<type:name>'. Types are resolved in a provided mapping and names are pushed on the routing Valum.Context.

A group allow a more fine-grained application for optional parts.

The optional symbol makes the last character or group optional. If it contains parameters, they will not be pushed on the context.

The wildcard stands for the '.*' regular expression, which match pretty much anything.


Namespace: Valum
Package: valum-0.3

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Valum.RegexRoute
All known members inherited from class Valum.Route
All known members inherited from class GLib.Object



2022 vala-language.org