Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

(JAX-RS 2.0) Attaching query parameters (not headers) inside a client-side ContainerRequestFilter?  RSS feed

 
Kevin Thorne
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I simply need to attach query parameters (not headers) onto a outgoing request. (Java EE 7.0, JAX-RS 2.0)

In specifics, I currently using the RESTeasy Client ver 3.0.14, so I make my calls using the fancy interface-proxy system. I was attempting to produce something like this:



with:



I made sure I was registering it with as well. Feel free to ask questions. Thanks!
 
Kevin Thorne
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Overlooked the interface and accidentally implemented ContainerRequestFilter instead of ClientRequestFilter, looking to using requestContext.setUri(); and rebuilding it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!