I use Jersey's Link Headers feature to create HTTP link headers:
@InjectLink(value="users/?orgId=12345&page=0",rel="first")
Works well except question mark - this is encoded in %3F and resulting URL looks like:
http://localhost:8080/app/users/%3ForgId=12345&page=0
I there any way to prevent encoding and leave question mark char as is?
question mar is url encoded for query params string, so its normal to have %3 in your path. Try using 'bindings' or puting @Queryparams like this How to force URIBuilder.path(...) to encode parameters like "%AD"? This method doesn't always encode parameters with percentage, correctly