allow path templates in mongo-mounts uri

Description

use undertow PathTemplateHandler if the mongo-mount where URI contains path variables.

For instance the following configuration would make use of PathTemplateHandler

1 2 3 mongo-mounts: - what: "*" where: /{prefix}/*

The path template paramters actual values are available in the what property (e.g. what: /{prefix}_db/coll) and from the RequestContext.getPathTemplateParamenters() method.

Note that to avoid conflicts between PathHandler and PathTemplateHandler URI matchers the mongo-mounts URI need to be either all absolute paths or all path templates.

Environment

None

Status

Assignee

Andrea Di Cesare

Reporter

Andrea Di Cesare

Labels

None

Fix versions

Priority

Major
Configure