Author: dkulp
Date: Mon Feb 21 19:13:17 2011
New Revision: 1073119
URL: http://svn.apache.org/viewvc?rev=1073119&view=rev
Log:
Don't do the HttpRequest wrappering if we don't need to.
Modified:
cxf/branches/2.3.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Modified:
cxf/branches/2.3.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
URL:
http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java?rev=1073119&r1=1073118&r2=1073119&view=diff
==============================================================================
---
cxf/branches/2.3.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
(original)
+++
cxf/branches/2.3.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Mon Feb 21 19:13:17 2011
@@ -296,10 +296,10 @@ public abstract class AbstractHTTPDestin
DelegatingInputStream in = new
DelegatingInputStream(req.getInputStream()) {
public void cacheInput() {
- if (!cached) {
- //we need to cache the values of the HttpServletRequest
+ if (!cached && inMessage.getExchange().getOutMessage() ==
null) {
+ //For one-ways, we need to cache the values of the
HttpServletRequest
//so they can be queried later for things like paths and
schemes
- //and such like that
+ //and such like that.
inMessage.put(HTTP_REQUEST, new
HttpServletRequestSnapshot(req));
}
super.cacheInput();