[SWS-404] Do not transform request payload Sources when not necessary Created: 30/Jul/08 Updated: 04/May/12 Resolved: 30/Jul/08
|Project:||Spring Web Services|
|Reporter:||Arjen Poutsma||Assignee:||Arjen Poutsma|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Currently, all request Sources are transformed into the required type. For instance, the AbstractDomPayloadEndpoint always transforms the request Source into a DOMResult, and passes that on to invokeInternal(). This is quite expensive, and not required.
Instead, we should inspect the source, and see if it is of the required type. If so, use it directly, otherwise, transform.
|Comment by Arjen Poutsma [ 30/Jul/08 ]|
Fixed. The AbstractDomPayloadEndpoint, AbstractJDomPayloadEndpoint, AbstractDom4jPayloadEndpoint, and AbstractXomPayloadEndpoint now use this more efficient mechanism.
The old, transforming behavior can still be obtained by setting a "alwaysTransform" boolean property to true. Default is false.
|Comment by Arjen Poutsma [ 04/May/12 ]|
Closing old issues