[SWS-404] Do not transform request payload Sources when not necessary Created: 30/Jul/08  Updated: 04/May/12  Resolved: 30/Jul/08

Status: Closed
Project: Spring Web Services
Component/s: Core
Affects Version/s: None
Fix Version/s: 1.5.4

Type: Improvement Priority: Major
Reporter: Arjen Poutsma Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
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

Generated at Wed Nov 21 03:22:53 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.