Commit Graph

377 Commits

Author SHA1 Message Date
Oleg Zhurakousky
41acbfd438 Fix Message unwrapping condition 2020-05-07 10:33:45 +02:00
Oleg Zhurakousky
9310898396 Fix styles 2020-05-05 14:53:48 +02:00
Oleg Zhurakousky
ad3c0f15bb Change from warn to debug when function is not found 2020-05-05 14:51:56 +02:00
Oleg Zhurakousky
e3ee776c04 Re-enable ignored tests 2020-05-05 14:51:43 +02:00
Oleg Zhurakousky
1bc20fa557 Removed dependency on org.json
Resolves #508
2020-05-05 14:50:56 +02:00
buildmaster
96f1931a4b Bumping versions to 3.0.7.BUILD-SNAPSHOT after release 2020-04-22 14:39:04 +00:00
buildmaster
6153554d78 Going back to snapshots 2020-04-22 14:39:04 +00:00
buildmaster
e9282980f7 Update SNAPSHOT to 3.0.6.RELEASE 2020-04-22 14:22:27 +00:00
Oleg Zhurakousky
40c208c124 Fix condition for payload extraction before invocation
We need to only extract payload for cases where input is coming from SCF-Web
2020-04-22 13:56:32 +02:00
buildmaster
9ca0053cbb Bumping versions to 3.0.6.BUILD-SNAPSHOT after release 2020-04-21 16:58:09 +00:00
buildmaster
612b863417 Going back to snapshots 2020-04-21 16:58:09 +00:00
buildmaster
1d217827b5 Update SNAPSHOT to 3.0.5.RELEASE 2020-04-21 16:44:39 +00:00
Oleg Zhurakousky
cfe534660e Remove hard dependency on Gson from FCF adapter in favor of SCF proivided configurable JsonMapper 2020-04-21 15:15:59 +02:00
Oleg Zhurakousky
defd2b962a Add propagation of HTTP headers
Polish function composition logic
2020-04-20 18:18:02 +02:00
Oleg Zhurakousky
2ca5282019 Remove attempt to convert incoming type to target type from Requestprocessor
This fix effectively forces all type conversion happen in function catalog
2020-04-20 18:17:54 +02:00
Oleg Zhurakousky
7d66672104 GH-499,498 Add support for SupplierExporter to control output content-type
- Add 'contentType' property to ExporterProperties to assist SupplierExporter with delegating it to function catalog
- Add additional logging and testing
- Change JsonMapper to abstract class providing special handling of conversion of Json Sting to byte[]
2020-04-20 18:17:23 +02:00
Oleg Zhurakousky
2fa75594a3 Fix the implicit composition logic in BeanFactoryAwareFunctionRegistry 2020-04-20 18:17:13 +02:00
Oleg Zhurakousky
ab68cb58e9 Fix regression for implicit composition
Also, added message check in AWS destination resolver
2020-04-20 18:17:06 +02:00
Oleg Zhurakousky
f1c15bf950 Extract common code from BeanFactoryAwareFunctionRegistry
. . . to ensure that we can have the version of FunctionRegistry that is not dependent on BeanFactory.
2020-04-20 18:16:58 +02:00
buildmaster
7e03ea0f50 Bumping versions to 3.0.5.BUILD-SNAPSHOT after release 2020-04-07 17:57:04 +00:00
buildmaster
4d56b8e65b Going back to snapshots 2020-04-07 17:57:04 +00:00
buildmaster
0b3fdf8dfc Update SNAPSHOT to 3.0.4.RELEASE 2020-04-07 17:39:09 +00:00
Oleg Zhurakousky
d3345576bd Minor cleanup and improvements in new GCF adapter
Resolves #468
2020-04-02 09:51:25 +02:00
Oleg Zhurakousky
366d05050f GH-476 Add generic JsonMessageConverter compatible with Jackson and Gson
Added implementation of JsonMessageConverter which is initialized with JsonMapper so it can delegate to Jackson or Gson based on property setting and/or availability of the underlying library.

Resolves #476
2020-04-01 16:08:38 +02:00
Oleg Zhurakousky
1ec107abbd GH-474 Add TypeResolver library and simplify type discovery
For complex cases where deep hierarchies are used there was still an issue with the fix in #473.
By adding TypeResolver library we essentially simplify our discovery process

Resolves #474
2020-03-30 17:26:01 +02:00
Oleg Zhurakousky
86d12f3a84 GH-473 Fix type discovery for generic parameters
Resolves #473
2020-03-30 10:56:00 +02:00
Oleg Zhurakousky
9434a68bd2 GH-461 Add to register more than one functional class
Similar to the way we allow multiple functions to be listed with 'definition' property, this enhancement allows several functional classes to be deployed

Resolves #461
2020-03-23 14:51:56 +01:00
Oleg Zhurakousky
85000ee084 GH-460 Add support for function filtering
Added support for function filtering in the event there are more then one function in catalog. This is primarily to ensure that
we have a mechanism to specify which functions to export as web enpoints (instead of all)

Resolves #460
2020-03-23 11:19:40 +01:00
Oleg Zhurakousky
919b9902e9 Improved handling of output Message conversion
remove the check for 'accept' header
added test

Resolves #465
2020-03-18 17:01:55 +01:00
Eric Bottard
b28c7c5cfc Add a test for accept being multi-valued and tested in order 2020-03-18 16:59:09 +01:00
Oleg Zhurakousky
fb095f7ac3 Improve output type conversion handling
- Re-enable, clean and improve  special handling for collection/array output type
- Add tests to validate and demonstrate the differences in  special handling of collection of Messages ve collection of non-Messages

Resolves #464
2020-03-18 15:50:55 +01:00
Eric Bottard
b1d9890e0c Don't treat byte[] or collections in a special way. 2020-03-18 13:59:21 +01:00
Oleg Zhurakousky
0acff2b1d3 Enhancements to content-type negotiation
- Added logic to wrap custom (user) message converters with NegotiatingMessageConverterWrapper
- Removed 'addDefaultConverters' flag from ContextFunctionCatalogAutoConfiguration as it is more confusing then useful
- Added test which uses wild card accept content-type with several converters available to ensure the appropriate one is used
- Made NegotiatingMessageConverterWrapper package private and moved it and it's test to a contex.config package

Resolves #462
2020-03-18 11:15:03 +01:00
Florent Biville
046913de99 Add tests to NegotiatingMessageConverterWrapper 2020-03-18 11:05:16 +01:00
Eric Bottard
161ac0efae Introduce better content-type negotiation when converting to messages.
This commit introduces a MessageConverter wrapper that supports a
wildcard-aware Accept header.
2020-03-18 11:05:16 +01:00
Arno
013e714c42 Add consumer lookup, for single consumer in catalog
Related to issue #454

Resolves #455
2020-03-16 09:05:42 +01:00
Oleg Zhurakousky
005611b682 Polish javadoc in RoutingFunction 2020-03-11 09:04:58 +01:00
Oleg Zhurakousky
b71c793dab GH-458 Remove default dependency on ApplicationJsonMessageMarshallingConverter
Resolves #458
2020-03-10 16:13:28 +01:00
Oleg Zhurakousky
777f0d8afa GH-453 Provide continuation model for reactive consumer
Modified invocation model of the reactive consumer to ensure it provides reasonable continuation path via MonoIgnoreElements (Mono.. . .then())

Resolves #453
2020-03-05 08:56:46 +01:00
buildmaster
87dd0dd113 Bumping versions to 3.0.4.BUILD-SNAPSHOT after release 2020-03-03 15:23:14 +00:00
buildmaster
568fd9affd Going back to snapshots 2020-03-03 15:23:14 +00:00
buildmaster
340a5cc3f3 Update SNAPSHOT to 3.0.3.RELEASE 2020-03-03 14:53:54 +00:00
Oleg Zhurakousky
df32fd6954 Add MessageConverter filtering logic
Aligned ApplicationJsonMessageMarshallingConverter with the same from s-c-Stream
2020-03-02 13:08:45 +01:00
Oleg Zhurakousky
2b4f8c7958 Clean up FunctionTypeUtils.isOfType method 2020-03-02 09:55:45 +01:00
Oleg Zhurakousky
67a4642b2d Polish/cleanup FunctionTypeUtils 2020-02-27 13:48:21 +01:00
Oleg Zhurakousky
f4530e0d89 Fix to-Message conversion logic
Fixed  logic to ensure that for cases where user may return a Message with no contentType set, the property-set content type is propagated
2020-02-22 08:24:27 +01:00
buildmaster
9eb98bd545 Bumping versions to 3.0.3.BUILD-SNAPSHOT after release 2020-02-12 17:43:00 +00:00
buildmaster
28baf6fc04 Going back to snapshots 2020-02-12 17:42:59 +00:00
buildmaster
36a4e69a31 Update SNAPSHOT to 3.0.2.RELEASE 2020-02-12 17:31:16 +00:00
Oleg Zhurakousky
b71d012d02 Revert "Update SNAPSHOT to 3.0.2.RELEASE"
This reverts commit 669e8eaabe.
2020-02-12 18:22:55 +01:00