...
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Spring Configuration
Note |
---|
The |
If the springResource
or springResourceRef
attributes are specified, then the configuration of the data connector bean is delegated to the supplied resources. The system will create a factory for an HTTPDataConnector object, and look for beans in the Spring resource(s) supplied that match the types of properties supported by that type and its parent classes. Note that since these are not public, but implementation classes, they are subject to change, which creates some risk during non-patch upgrades, so you must take additional precautions to use this feature.
...
The HttpClient instance and its security settings are injected via the
httpClientRef
andhttpClientSecurityParametersRef
attributes.The builder for the request can be specified as an externally defined bean via the
executableSearchBuilderRef
attribute (as a replacement for the<URLTemplate>
element and related elements). This allows for complete generality of the request-building process.The processing of the response can be specified with an externally defined bean via the
mappingStrategyRef
attribute (as a replacement for the<ResponseMapping>
element).The caching of results can be specified as an externally defined bean via the
<ResultCacheBean>
element (as a replacement for the<ResultCache>
element).A Validator can be specifier as as an externally defined bean via the
validatorRef
attribute. The only available class which implements this Interface is NonFailFastValidatorRarely, a non-default Velocity engine can be injected via the
templateEngine
attribute.
...