Repository: cxf Updated Branches: refs/heads/master 6d2723015 -> d512d5273
CXF-5700 Avoid to throw IllegalStateException in NettyHttpServletRequest Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/d512d527 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/d512d527 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/d512d527 Branch: refs/heads/master Commit: d512d5273b747e970448730bcb10b867bc3abdaa Parents: e2b5264 Author: Willem Jiang <[email protected]> Authored: Thu Apr 17 22:50:27 2014 +0800 Committer: Willem Jiang <[email protected]> Committed: Thu Apr 17 22:50:46 2014 +0800 ---------------------------------------------------------------------- .../server/servlet/NettyHttpServletRequest.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/d512d527/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/servlet/NettyHttpServletRequest.java ---------------------------------------------------------------------- diff --git a/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/servlet/NettyHttpServletRequest.java b/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/servlet/NettyHttpServletRequest.java index ece8e94..05ccc77 100644 --- a/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/servlet/NettyHttpServletRequest.java +++ b/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/servlet/NettyHttpServletRequest.java @@ -416,20 +416,20 @@ public class NettyHttpServletRequest implements HttpServletRequest { @Override public String getAuthType() { - throw new IllegalStateException( - "Method 'getAuthType' not yet implemented!"); + // CXF Calls this method to cache the Request informaiton + return null; } @Override public String getPathTranslated() { - throw new IllegalStateException( - "Method 'getPathTranslated' not yet implemented!"); + // CXF Calls this method to cache the Request informaiton + return null; } @Override public String getRemoteUser() { - throw new IllegalStateException( - "Method 'getRemoteUser' not yet implemented!"); + // CXF Calls this method to cache the Request informaiton + return null; } @Override @@ -452,8 +452,7 @@ public class NettyHttpServletRequest implements HttpServletRequest { @Override public boolean isRequestedSessionIdValid() { - throw new IllegalStateException( - "Method 'isRequestedSessionIdValid' not yet implemented!"); + return false; } @Override
