add optional parameter to support hessian protocol method overload and request protocol version#1331
add optional parameter to support hessian protocol method overload and request protocol version#1331chickenlj merged 10 commits intoapache:masterfrom maxiaoguang64:master
Conversation
原来不支持重载的方法调用
|
|
1 similar comment
|
|
Codecov Report
@@ Coverage Diff @@
## master #1331 +/- ##
==========================================
+ Coverage 32.31% 32.43% +0.11%
==========================================
Files 691 691
Lines 34535 34535
Branches 6811 6811
==========================================
+ Hits 11161 11201 +40
+ Misses 21449 21401 -48
- Partials 1925 1933 +8
Continue to review full report at Codecov.
|
|
good job I suggest this option can be a optional parameter for hessian protocol, then developers can turn it on/off. |
| @SuppressWarnings("unchecked") | ||
| protected <T> T doRefer(Class<T> serviceType, URL url) throws RpcException { | ||
| HessianProxyFactory hessianProxyFactory = new HessianProxyFactory(); | ||
| hessianProxyFactory.setOverloadEnabled(true); |
There was a problem hiding this comment.
I suggest this option can be a optional parameter for hessian protocol, then developers can turn it on/off.
There was a problem hiding this comment.
ok, please review again
There was a problem hiding this comment.
what happend in jdk8 travis-ci, please help me
|
Hi, Could you please update the description in your pull request, and your commit message into English? Dubbo is a global community, please be aware that non-English commit message may not be understood by other people. |
hessian协议中方法重载和request协议可配置
hessian协议中方法重载和request协议可配置
hessian协议中方法重载和request协议可配置
hessian协议中方法重载和request协议可配置
| @SuppressWarnings("unchecked") | ||
| protected <T> T doRefer(Class<T> serviceType, URL url) throws RpcException { | ||
| HessianProxyFactory hessianProxyFactory = new HessianProxyFactory(); | ||
| boolean isHessian2Request = url.getParameter(Constants.HESSIAN2_REQUEST_KEY, Constants.DEFAULT_HESSIAN2_REQUEST); |
There was a problem hiding this comment.
When will the Constants.HESSIAN2_REQUEST_KEY key add to url?
If i configure dubbo.service.hessian2.request=true, will that take effect?
There was a problem hiding this comment.
sorry, i am not sure but will try it
There was a problem hiding this comment.
I will add hessian2.request and hessian.overload.method to dubbo.xsd.
currently you configure dubbo.service.hessian2.request and dubbo.service.hessian.overload.method will effective
添加hessian协议规则
| <xsd:annotation> | ||
| <xsd:documentation><![CDATA[ hessian protocol support overload method. ]]></xsd:documentation> | ||
| </xsd:annotation> | ||
| </xsd:attribute> |
There was a problem hiding this comment.
Why do you put different prefixes hessian2.request and hessian.overload.method.
Actually, i think we don't have to add xml support for every parameter, especially for parameters bind to a specific protocol, we can use properties or <dubbo:parameter /> to do that. Your previous changes is ready to work, would you please revert changes adding xml, sorry for misleading you.
|
@chickenlj |
* @reference support annotate on annotation type * Fixes apache#1303 TimeUnit conversion error * Fixes apache#1289, use bind_port as mapping key * Fixes apache#1313, remove destroy check in Registry. * checkout .travis.yml from origin/master * Fix hessian2 serialized short, byte is converted to int bug (apache#1232) * Fix hessian2 serialized short, byte is converted to int bug * Fix hessian2 serialized short, byte is converted to int bug * adapt jdk1.5+ * fixed travis-ci failed because of test cases. (apache#1370) * Merge pull request apache#1377, remove redundant arguments for StatItem.isAllowable() * Merge pull request apache#1378, replace StringBuider with simple string concatenation in log. * Merge pull request apache#1375, remove unnecessary boxing. Fixes apache#1245 * Merge pull request apache#1331, add optional parameter to support hessian protocol method overload and request protocol version. * Merge pull request apache#1376, do not instantiate load balance if there is no invokers Fixes apache#1297 * Merge pull request apache#1384, fix build string bug. * Merge pull request apache#1040, refactor: replace some deprecated methods related with jedis. * Merge pull request apache#1242, remove redundant null check. fixes apache#1231
* @reference support annotate on annotation type * Fixes apache#1303 TimeUnit conversion error * Fixes apache#1289, use bind_port as mapping key * Fixes apache#1313, remove destroy check in Registry. * checkout .travis.yml from origin/master * Fix hessian2 serialized short, byte is converted to int bug (apache#1232) * Fix hessian2 serialized short, byte is converted to int bug * Fix hessian2 serialized short, byte is converted to int bug * adapt jdk1.5+ * fixed travis-ci failed because of test cases. (apache#1370) * Merge pull request apache#1377, remove redundant arguments for StatItem.isAllowable() * Merge pull request apache#1378, replace StringBuider with simple string concatenation in log. * Merge pull request apache#1375, remove unnecessary boxing. Fixes apache#1245 * Merge pull request apache#1331, add optional parameter to support hessian protocol method overload and request protocol version. * Merge pull request apache#1376, do not instantiate load balance if there is no invokers Fixes apache#1297 * Merge pull request apache#1384, fix build string bug. * Merge pull request apache#1040, refactor: replace some deprecated methods related with jedis. * Merge pull request apache#1242, remove redundant null check. fixes apache#1231 * Change Mailing list address * Fixed apache#1398, revert bugs introduced from apache#1375 * Fix time unit problem in UT * Fix time unit problem related with FutureAdapter in UT
* @reference support annotate on annotation type * Fixes apache#1303 TimeUnit conversion error * Fixes apache#1289, use bind_port as mapping key * Fixes apache#1313, remove destroy check in Registry. * checkout .travis.yml from origin/master * Fix hessian2 serialized short, byte is converted to int bug (apache#1232) * Fix hessian2 serialized short, byte is converted to int bug * Fix hessian2 serialized short, byte is converted to int bug * adapt jdk1.5+ * fixed travis-ci failed because of test cases. (apache#1370) * Merge pull request apache#1377, remove redundant arguments for StatItem.isAllowable() * Merge pull request apache#1378, replace StringBuider with simple string concatenation in log. * Merge pull request apache#1375, remove unnecessary boxing. Fixes apache#1245 * Merge pull request apache#1331, add optional parameter to support hessian protocol method overload and request protocol version. * Merge pull request apache#1376, do not instantiate load balance if there is no invokers Fixes apache#1297 * Merge pull request apache#1384, fix build string bug. * Merge pull request apache#1040, refactor: replace some deprecated methods related with jedis. * Merge pull request apache#1242, remove redundant null check. fixes apache#1231 * Change Mailing list address * Fixed apache#1398, revert bugs introduced from apache#1375 * Fix time unit problem in UT * Fix time unit problem related with FutureAdapter in UT * Fix time unit problem related with FutureAdapter in UT * Merge pull request apache#1391, fix typo of method name in qos module. * fix hessian lite test case fail bug (apache#1394) * fix hessian lite test case fail bug * update test * remove ignore * Fix time unit problem related with FutureAdapter in UT * revert file * fix number type is lost in yaml config file (apache#1401) * apache#1399 fi * update test * update readme to add some details (apache#1403) * update readme to add some details update readme to add some details * delete duplicated words delete duplicated words * update README format * apache#1411: Locale deserialize 'zh-hant_CN'
* remotes/upstream/master: (226 commits) clean up imports for CacheTest [Dubbo-apache#1362] cache provider always lru cache (apache#1396) Remove author info and add apache license Fix "promoteTransitiveDependencies=false" of maven-shade-plugin apache#1411: Locale deserialize 'zh-hant_CN' update README format update readme to add some details (apache#1403) fix number type is lost in yaml config file (apache#1401) fix hessian lite test case fail bug (apache#1394) Merge pull request apache#1391, fix typo of method name in qos module. Fix time unit problem related with FutureAdapter in UT Fix time unit problem related with FutureAdapter in UT Fix time unit problem in UT Fixed apache#1398, revert bugs introduced from apache#1375 Change Mailing list address Merge pull request apache#1242, remove redundant null check. Merge pull request apache#1040, refactor: replace some deprecated methods related with jedis. Merge pull request apache#1384, fix build string bug. Merge pull request apache#1376, do not instantiate load balance if there is no invokers Merge pull request apache#1331, add optional parameter to support hessian protocol method overload and request protocol version. ...
…sian protocol method overload and request protocol version.
add hessian.overload.method to support method overload default is false
add hessian2.request to support request protocol version default is version 1