Dusayanta Prasad
Dusayanta Prasad

Reputation: 349

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

Upvotes: 0

Views: 312

Answers (1)

Jasper de Vries
Jasper de Vries

Reputation: 20243

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

See also:

Upvotes: 2

Related Questions