Skip to content

Commit

Permalink
Update to 2.0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Nov 13, 2016
1 parent 696333b commit 692c56c
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 11 deletions.
Binary file modified dist/hprose_client_for_java_5.jar
Binary file not shown.
Binary file modified dist/hprose_client_for_java_6.jar
Binary file not shown.
Binary file modified dist/hprose_client_for_java_7.jar
Binary file not shown.
Binary file modified dist/hprose_client_for_java_8.jar
Binary file not shown.
Binary file modified dist/hprose_for_java_5.jar
Binary file not shown.
Binary file modified dist/hprose_for_java_6.jar
Binary file not shown.
Binary file modified dist/hprose_for_java_7.jar
Binary file not shown.
Binary file modified dist/hprose_for_java_8.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion example/Benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.hprose</groupId>
<artifactId>tcphelloexam</artifactId>
<version>2.0.27</version>
<version>2.0.28</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion example/Example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.hprose</groupId>
<artifactId>hprose.example</artifactId>
<version>2.0.27</version>
<version>2.0.28</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion example/exam/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.hprose</groupId>
<artifactId>exam.client</artifactId>
<version>2.0.27</version>
<version>2.0.28</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion example/exam/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.hprose</groupId>
<artifactId>exam.server</artifactId>
<version>2.0.27</version>
<version>2.0.28</version>
<packaging>war</packaging>

<name>ExamServer</name>
Expand Down
2 changes: 1 addition & 1 deletion example/hello/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.hprose</groupId>
<artifactId>hello.server</artifactId>
<version>2.0.27</version>
<version>2.0.28</version>
<packaging>war</packaging>

<name>HelloServer</name>
Expand Down
2 changes: 1 addition & 1 deletion example/tcphelloexam/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.hprose</groupId>
<artifactId>tcphelloexam</artifactId>
<version>2.0.27</version>
<version>2.0.28</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.hprose</groupId>
<artifactId>hprose-java</artifactId>
<version>2.0.27</version>
<version>2.0.28</version>
<name>Hprose for Java</name>
<description>Hprose is a High Performance Remote Object Service Engine.

Expand Down Expand Up @@ -49,7 +49,7 @@
<connection>scm:git:https://github.com/hprose/hprose-java.git</connection>
<developerConnection>scm:git:https://github.com/hprose/hprose-java.git</developerConnection>
<url>https://github.com/hprose/hprose-java</url>
<tag>v2.0.27</tag>
<tag>v2.0.28</tag>
</scm>
<developers>
<developer>
Expand Down
2 changes: 1 addition & 1 deletion spring-hprose/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.hprose</groupId>
<artifactId>spring-hprose</artifactId>
<version>2.0.27</version>
<version>2.0.28</version>

<dependencies>
<dependency>
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/hprose/client/HproseClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* hprose client class for Java. *
* *
* LastModified: Nov 13, 2016 *
* LastModified: Oct 16, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -336,6 +336,10 @@ private ByteBuffer inputFilter(ByteBuffer response, ClientContext context) {

private Promise<ByteBuffer> beforeFilterHandler(ByteBuffer request, final ClientContext context) {
request = outputFilter(request, context);
if (context.getSettings().isOneway()) {
afterFilterHandler.handle(request, context);
return Promise.value(null);
}
return afterFilterHandler.handle(request, context).then(new Func<ByteBuffer, ByteBuffer>() {
public ByteBuffer call(ByteBuffer response) throws Throwable {
response = inputFilter(response, context);
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/hprose/common/HandlerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* hprose HandlerManager class for Java. *
* *
* LastModified: Jul 4, 2016 *
* LastModified: Nov 13, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -40,6 +40,7 @@ public Promise<ByteBuffer> handle(ByteBuffer request, HproseContext context) {
}
return beforeFilterHandler(request, context).then(new Func<ByteBuffer, ByteBuffer>() {
public ByteBuffer call(ByteBuffer response) throws Throwable {
if (response == null) return null;
if (response.position() != 0) {
response.flip();
}
Expand All @@ -55,6 +56,7 @@ public Promise<ByteBuffer> handle(ByteBuffer request, HproseContext context) {
}
return afterFilterHandler(request, context).then(new Func<ByteBuffer, ByteBuffer>() {
public ByteBuffer call(ByteBuffer response) throws Throwable {
if (response == null) return null;
if (response.position() != 0) {
response.flip();
}
Expand Down Expand Up @@ -93,6 +95,7 @@ public Promise<ByteBuffer> handle(ByteBuffer request, HproseContext context) {
}
return handler.handle(request, context, next).then(new Func<ByteBuffer, ByteBuffer>() {
public ByteBuffer call(ByteBuffer response) throws Throwable {
if (response == null) return null;
if (response.position() != 0) {
response.flip();
}
Expand Down

0 comments on commit 692c56c

Please sign in to comment.