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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -