Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] [External] : Query parameters from ClientRequestContext?

I tried @Context UriInfo and @Inject UriInfo, but both returned null.

What worked was:

    MultivaluedMap<String, String> queryParams =
UriComponent.decodeQuery(cr.getUri(), true);

On Thu, Mar 11, 2021 at 8:31 PM Santiago Pericasgeertsen
<santiago.pericasgeertsen@xxxxxxxxxx> wrote:
>
> Marynas,
>
>  You should be able to inject UriInfo in your filter using @Context.
>
> — Santiago
>
> > On Mar 10, 2021, at 4:45 PM, Martynas Jusevičius <martynas@xxxxxxxxxxxxx> wrote:
> >
> > Hi,
> >
> > I've implemented a ClientRequestFilter and want to check the list of
> > URL query parameters, but there doesn't seem to be any method for that
> > in ClientRequestContext?
> >
> > I can get cr.getUri().getQuery(), bet then I have to parse it myself,
> > which is not very convenient.
> >
> >
> > Martynas
> > _______________________________________________
> > jersey-dev mailing list
> > jersey-dev@xxxxxxxxxxx
> > To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/jersey-dev__;!!GqivPVa7Brio!JOvvlZ_OeOiiDHCwBLJBxm1AJJfVEu5gS2iUDBXy_ufnAb1pYdf2Qcob8tZXD3V9YjITY7f26Q$
>
> _______________________________________________
> jersey-dev mailing list
> jersey-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jersey-dev


Back to the top