in appactive-java-client/client-bridge/client-bridge-rpc-apache-dubbo/client-bridge-rpc-apache-dubbo2/src/main/java/io/appactive/rpc/apache/dubbo2/provider/ProviderProtectFilter.java [161:175]
private String getFromParams(ProviderModel providerModel, Invocation invocation) {
String routerId;
Object[] args = invocation.getArguments();
String routeKey = (String)providerModel.getServiceMetadata().getAttachments().get(
RPCConstant.URL_ROUTE_INDEX_KEY);
int route = -1;
if (routeKey != null && !routeKey.isEmpty()) {
route = Integer.parseInt(routeKey);
}
if (route >= 0 && args != null && args.length > 0) {
routerId = String.valueOf(args[route]);
return routerId;
}
return null;
}