wcy666103 commented on issue #14838:
URL: https://github.com/apache/dubbo/issues/14838#issuecomment-2445928007

   > I only want to obtain the parameters of the URL in the provider's 
interception. Currently, I am unable to obtain custom parameters 
(securityFilter) in the provider's interception, but I can obtain them in the 
consumer's interception. Is there a problem? I am looking forward to your reply 
very much
   > 
   > CONSUMER
   > 
   > ```
   > @DubboReference(version = "1.0.0",
   >             retries = 0,
   >             timeout=5000,
   >             parameters = {"securityFilter", "false","responseFilter", 
"true"},
   >             loadbalance = "roundrobin",
   >             check = false,
   >             cluster="failsafe",
   >             protocol = "dubbo",
   >             mock = "com.device.notify.api.mock.NotifyServiceApiMock")
   >     NotifyServiceApi notifyServiceApi;
   > ```
   > 
   > PROVIDER
   > 
   > ```
   > @Activate(group = {CommonConstants.PROVIDER})
   > public class SecurityFilter extends ListenableFilter {
   > 
   >   @Override
   >   public Result invoke(Invoker<?> invoker, Invocation invocation) throws 
RpcException {
   >     String securityFilter= 
invoker.getUrl().getParameter("securityFilter");//value is NULL
   >     return invoker.invoke(invocation);
   >   }
   > }
   > ```
   
   I hope this helps you  
https://dubbo.apache.org/zh-cn/overview/tasks/develop/context


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to