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?
  • From: Santiago Pericasgeertsen <santiago.pericasgeertsen@xxxxxxxxxx>
  • Date: Thu, 11 Mar 2021 20:11:12 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CNJqcRPanGRQpciIhlGZBJw/eKaACbrbRAEKYf4choE=; b=Zg+jXcuEEMx8qimKIEXhPysVRnak+QCM9G35LoAfviUo1cX1GmJormMSKPFjEMxsKOGsGoyM4kT4OQwwxFhaungkVS6OKTeZDmoK86seu9AsWSQRoFvszEnS3Ba06kKQ6gKTWHMdFJxEQCMpqW1qDHmDctfC+lFWe153iO9ksUmcr+ZNVsTcaefIom1d0Y0axtq9XdQXziZePZV8J5oQWALvkqs1rGvnn4BDU+CdUiUYmSv00C86Neky2MqCdTXWjtyB8otpg2TwH5URges3dhoKgyPIN21ERz7UXVmrch7afy0AJ/an9dDknMHNZv6qnZlbFFTkvsj6OrylGgZ4kw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TrrjsS6GOhdDDEu7595+0m8f5+fZt+YSm35/ikODrjhh7HMsI+XUQ9iRCz3zsx032sYQKCIEn/XkWnlmjhsh9RZxxexVjuGAXbvdeNT9VqlugS+IXBnpRvE9RDciKsKVqc7zY/XGr2N1KykiYOIxO71/DDuVs++8h23RL/OV4QD/Glk6Hdswg9wSGsr4YsACrTn+tpiskdecifMioDE/7an/lksXb9SN+yvxE3I12sv27gTvwAQPrm42tmD+ga+aqa+42v7GyhaHvMF56AmERZ/4Yy32cg8MCCfYQH+OodIFclDnn04s5uEppfG1XT9E1cU6k/CdH3iJKR7g+IuLiA==
  • Delivered-to: jersey-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jersey-dev/>
  • List-help: <mailto:jersey-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXFrAFUuHANRSzXkCP0sZh8Ac9JKp/N/uA
  • Thread-topic: [jersey-dev] [External] : Query parameters from ClientRequestContext?


> On Mar 11, 2021, at 2:51 PM, Martynas Jusevičius <martynas@xxxxxxxxxxxxx> wrote:
> 
> I tried @Context UriInfo and @Inject UriInfo, but both returned null.

 Sorry, misread client as container.

— Santiago

> 
> 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://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/jersey-dev__;!!GqivPVa7Brio!LE6z7i8MqrxG3Udy0y9lPH6o7w6_Hk_g2M3sUdalwyxQRKHKzv6kzU7fe_zHbY2_ST-9DDx9NA$ 
> _______________________________________________
> 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!LE6z7i8MqrxG3Udy0y9lPH6o7w6_Hk_g2M3sUdalwyxQRKHKzv6kzU7fe_zHbY2_ST-9DDx9NA$ 


Back to the top