代码拉取完成,页面将自动刷新
diff -Nru Resteasy-3.0.19.Final/jaxrs/pom.xml Resteasy-3.0.19.Final.netty3/jaxrs/pom.xml
--- Resteasy-3.0.19.Final/jaxrs/pom.xml 2016-12-27 11:13:52.980803759 +0100
+++ Resteasy-3.0.19.Final.netty3/jaxrs/pom.xml 2016-12-27 11:15:46.080178186 +0100
@@ -39,7 +39,7 @@
<dep.cdi-api.version>1.2</dep.cdi-api.version>
<dep.jboss-ejb-api_3.1_spec.version>1.0.0.Final</dep.jboss-ejb-api_3.1_spec.version>
<dep.guice.version>4.0</dep.guice.version>
- <dep.netty.version>3.6.4.Final</dep.netty.version>
+ <dep.netty.version>3.10.6.Final</dep.netty.version>
<dep.netty4.version>4.0.7.Final</dep.netty4.version>
<dep.slf4j.version>1.7.5</dep.slf4j.version>
<dep.bc.version>1.52</dep.bc.version>
diff -Nru Resteasy-3.0.19.Final/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyHttpResponse.java Resteasy-3.0.19.Final.netty3/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyHttpResponse.java
--- Resteasy-3.0.19.Final/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyHttpResponse.java 2016-08-02 16:26:27.000000000 +0200
+++ Resteasy-3.0.19.Final.netty3/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyHttpResponse.java 2016-12-27 11:14:53.477794634 +0100
@@ -119,8 +119,9 @@
if (keepAlive)
{
// Add keep alive and content length if needed
- response.addHeader(Names.CONNECTION, Values.KEEP_ALIVE);
- response.addHeader(Names.CONTENT_LENGTH, 0);
+ response.headers()
+ .add(Names.CONNECTION, Values.KEEP_ALIVE)
+ .add(Names.CONTENT_LENGTH, 0);
}
channel.write(response);
committed = true;
diff -Nru Resteasy-3.0.19.Final/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyUtil.java Resteasy-3.0.19.Final.netty3/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyUtil.java
--- Resteasy-3.0.19.Final/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyUtil.java 2016-08-02 16:26:27.000000000 +0200
+++ Resteasy-3.0.19.Final.netty3/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyUtil.java 2016-12-27 11:03:35.816979009 +0100
@@ -98,7 +98,7 @@
{
Headers<String> requestHeaders = new Headers<String>();
- for (Map.Entry<String, String> header : request.getHeaders())
+ for (Map.Entry<String, String> header : request.headers())
{
requestHeaders.add(header.getKey(), header.getValue());
}
diff -Nru Resteasy-3.0.19.Final/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/RestEasyHttpResponseEncoder.java Resteasy-3.0.19.Final.netty3/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/RestEasyHttpResponseEncoder.java
--- Resteasy-3.0.19.Final/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/RestEasyHttpResponseEncoder.java 2016-08-02 16:26:27.000000000 +0200
+++ Resteasy-3.0.19.Final.netty3/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/RestEasyHttpResponseEncoder.java 2016-12-27 11:05:34.884907810 +0100
@@ -58,11 +58,11 @@
RuntimeDelegate.HeaderDelegate delegate = dispatcher.providerFactory.getHeaderDelegate(value.getClass());
if (delegate != null)
{
- response.addHeader(key, delegate.toString(value));
+ response.headers().add(key, delegate.toString(value));
}
else
{
- response.setHeader(key, value.toString());
+ response.headers().add(key, value.toString());
}
}
}
@@ -77,8 +77,9 @@
if (nettyResponse.isKeepAlive())
{
// Add content length and connection header if needed
- response.setHeader(Names.CONTENT_LENGTH, buffer.readableBytes());
- response.setHeader(Names.CONNECTION, Values.KEEP_ALIVE);
+ response.headers()
+ .set(Names.CONTENT_LENGTH, buffer.readableBytes())
+ .set(Names.CONNECTION, Values.KEEP_ALIVE);
}
return response;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。