You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2014/10/30 20:29:03 UTC
[14/19] git commit: Fix and eclipse warning
Fix and eclipse warning
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/035154fb
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/035154fb
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/035154fb
Branch: refs/heads/master
Commit: 035154fb466fb9c833804d1bc747804df9e9992b
Parents: c1c9562
Author: Daniel Kulp <dk...@apache.org>
Authored: Thu Oct 30 14:23:14 2014 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Thu Oct 30 14:23:14 2014 -0400
----------------------------------------------------------------------
.../org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/035154fb/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
----------------------------------------------------------------------
diff --git a/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java b/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
index 0d5904d..5e7a182 100644
--- a/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
+++ b/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
@@ -349,12 +349,14 @@ public class JettyHTTPServerEngine
//need an error handler that won't leak information about the exception
//back to the client.
ErrorHandler eh = new ErrorHandler() {
+ @SuppressWarnings("deprecation")
public void handle(String target, Request baseRequest,
HttpServletRequest request, HttpServletResponse response)
throws IOException {
String msg = HttpStatus.getMessage(response.getStatus());
request.setAttribute(RequestDispatcher.ERROR_MESSAGE, msg);
if (response instanceof Response) {
+ //need to use the deprecated method to support compiling with Jetty 8
((Response)response).setStatus(response.getStatus(), msg);
}
super.handle(target, baseRequest, request, response);