Search code examples
javajbossjax-rswildfly

Make Wildfly decode URL Path Parameters


How to make Wildfly to decode URL Path Parameters automatically when a request is received?
E.g., Request URI

/user/dusayanta%23XYZ

Should result into

/user/dusayanta#XYZ

Solution

  • Just use @PathParam. The value is URL decoded unless this is disabled using the @Encoded annotation.

    See also: