java - Anyway to have undertow path template with wildcards -
i need handle requests may have number of sub path elements (that can ignore), e.g. following map same handler:
- /abc?type=a
- /abc/foo?type=a
- /abc/foo/bar?type=a
the code have come is:
handlers.pathtemplate().add("/{id}", handler).add("/{id}/foo", handler).add("/{id}/foo/bar", handler);
but not ideal need define each possible path, there anyway allow (and ignore) number of paths following prefix e.g.
handlers.pathtemplate().add("/{id}*", handler)
handlers.path().addprefixpath
allows sort of matching lose path template variables.
Comments
Post a Comment