[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


 Description   

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.



 Comments   
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 Dec 13 03:11:43 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.