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

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -