public interface SourceExtractor<T>
Used for output object creation in
WebServiceTemplate. Alternatively, output sources can also be returned to
client code as-is. In case of a source as execution result, you will almost always want to implement a
SourceExtractor, to be able to read the message content in a managed fashion, with the connection still
open while reading the message.
Implementations of this interface perform the actual work of extracting results, but don't need to worry about exception handling, or resource handling.
T extractData(Source source) throws IOException, TransformerException
Source, creating a corresponding result object.
Copyright © 2019 Pivotal Software. All rights reserved.