Commit Graph

206 Commits

Author SHA1 Message Date
Oleg Zhurakousky
7236a1b5f0 Cleanup 2023-02-08 12:18:18 +01:00
Oleg Zhurakousky
17cd163f29 GH-925 Fix regression with Kotlin @Component regstration
Resolves #925
2022-09-20 18:10:46 +02:00
Oleg Zhurakousky
6b1752f4e4 checkstyle 2022-07-26 17:05:59 +02:00
Oleg Zhurakousky
b2f0a3d653 GH-891 Ensure HTTP Request params are mapped even when body is not present
Resolves #891
2022-07-26 16:53:40 +02:00
Oleg Zhurakousky
1a5489b5b6 GH-864 Add support for carying HTTP request parameters in Message headers
Resolves #864
2022-05-03 19:49:19 +02:00
Oleg Zhurakousky
ea7d724820 polishing 2022-04-26 09:03:14 +02:00
Oleg Zhurakousky
f992c448de Cleanup and additional test 2022-01-24 16:19:47 +01:00
Oleg Zhurakousky
5a36dda7c6 GH-792 Fix Supplier streaming in s-c-function-web
Resolves #792
2022-01-24 15:38:16 +01:00
Oleg Zhurakousky
fedae1cb5f GH-783 Fix Consumer processing with webflux
Resolves #783
2021-12-13 16:08:21 +01:00
Oleg Zhurakousky
4e5bf0f00c Disable test 2021-10-18 18:02:09 +02:00
Oleg Zhurakousky
2295dee2e6 Temporary fixes related to native AOT enablement 2021-09-29 11:24:37 +02:00
Oleg Zhurakousky
2f8cd6c0c0 GH-713 Add support for default function for HTTP
Resolves #713
2021-07-14 14:46:21 +02:00
Oleg Zhurakousky
78f99eefc1 Fix checkstyle 2021-07-13 16:54:01 +02:00
Oleg Zhurakousky
74a867cd2f Extract uri into message headers 2021-07-06 07:38:26 +02:00
Oleg Zhurakousky
ddc08de2d1 GH-708 Consolidate web request processing for Flux and MVC endpoints" 2021-06-17 20:38:06 +02:00
Oleg Zhurakousky
ae8062efb1 GH-708 Removed RequestProcessor from Flux FunctionController
Resolves #708

polish
2021-06-16 17:09:52 +02:00
Oleg Zhurakousky
e245114875 GH-708 Removed RequestProcessor from MVC FunctionController 2021-06-15 19:53:02 +02:00
Oleg Zhurakousky
4cc88f1124 GH-708 Initial refactoring and consolidation of s-c-function-web MVC part. 2021-06-15 15:15:26 +02:00
Oleg Zhurakousky
eb319e525a GH-668 Initial NPE fix in RequestProcessor when no path argument provided 2021-03-25 14:28:18 +01:00
Adrien Poupard
e30a091f82 Add Kotlin suspend function support
Use suspendCoroutineUninterceptedOrReturn to avoid using not fully implemented Function2.reflect()

Mapping of Function, Consumer and Supplier to kotlin suspend flow lambda

Fix MR review

Resolves #655
2021-03-02 08:51:00 +01:00
Oleg Zhurakousky
73bd787c8d GH-649 Ignire factory bean names during discovery of a function
Resolves #649
2021-02-15 17:53:12 +01:00
Oleg Zhurakousky
bc4b5b3f80 Add stream (kafka, Rabbit) and Rsocket examples for Cloud Event 2020-12-18 16:44:29 +01:00
Oleg Zhurakousky
28184039de Restructure Cloud Events support to optionally support Cloud Events SDK 2020-12-01 22:12:34 +01:00
Dave Syer
8bf2fa7e70 Refactor some lambdas to enable native image building
Without this change a function with a Tomcat wrapper cannot be compiled
to a native image (or it can but it fails at runtime) because there
are lambda$$$ methods in the byte code that refer to missing types.
2020-11-25 11:00:08 +00:00
Dave Syer
e6d53f000c Better test of whether webflux is present 2020-11-20 09:17:15 +00:00
Dave Syer
01be2060e6 Move class present check to static initializer
Helps with native images
2020-11-19 11:44:51 +00:00
Oleg Zhurakousky
97ba22da76 Polishing cleanup and javadoc 2020-11-17 08:01:21 +01:00
Oleg Zhurakousky
8ea309c45b Clean up and simplifications around CloudEvent processing
This commit effectively a merge of work with #607 and simplifies the following
- CloudEventAttributesProvider now provides CloudEventAttributes initialized with defaults to be set by the user
- In HTTP RequestProcessor the logic of sanitizing headers was improved to ensure that correct prefix is applied

Resolves #607
2020-11-16 13:40:53 +01:00
Oleg Zhurakousky
14b39c2077 Fix HTTP header propagation logic
Related to GH-422 and GH-606
2020-11-13 17:47:41 +01:00
Oleg Zhurakousky
632e73caf9 Fix CloudEvent prefix and fix the name of CloudEventAttributesProvider.java 2020-11-13 16:07:33 +01:00
Oleg Zhurakousky
249f3257c0 remove commented code 2020-11-09 19:34:14 +01:00
Oleg Zhurakousky
45520d3325 GH-597 Add support for handling MultipartFile(s)
This initial fix ensures that functions can process single MultipartFile as well as multiple.

Resolves #597
2020-11-09 19:27:01 +01:00
Oleg Zhurakousky
88766cf0ed Simplify logic around getting item type of a function type 2020-11-04 11:29:01 +01:00
Oleg Zhurakousky
3f14e3779c Disable 'sentencesAcceptSse' test as it started to fail due to some reactor changes 2020-11-03 14:03:39 +01:00
Oleg Zhurakousky
780cb05e79 Initial refactoring and simplificatioin of web module 2020-11-03 13:46:52 +01:00
Oleg Zhurakousky
63a1c3228d Fix SmartCompositeMessageConverter to ensure it properly injects contentType
Initial refactoring web - test pass
2020-11-03 13:44:45 +01:00
Oleg Zhurakousky
818cda144c Deprecate and remove all usages of FunctionInspector 2020-10-19 18:11:11 +02:00
Oleg Zhurakousky
3f1315c523 Consolidate isMessage() operation 2020-10-19 14:57:55 +02:00
Oleg Zhurakousky
89466b5cdc Refactor FunctionCatalog implementation 2020-10-16 17:59:06 +02:00
Oleg Zhurakousky
9f700bf2f2 GH-578 Fix FunctionRegistration lookup
The root of the issue was in implementation of  equals() and hashCode() of FunctionInvocationWrapper

Resolves #578
2020-09-21 15:22:21 +02:00
Oleg Zhurakousky
ddba54dee6 Various polishing to accomodate boot, reactor and other changes 2020-08-04 19:21:14 +02:00
Oleg Zhurakousky
c294816e7a GH-500 Fix NPE in FunctionEndpointInitializer
This ensures that posting to the consumer does not result in NPE given that there is no body

Resolves #500
2020-06-10 19:44:27 +02:00
anshlykov
dfa02750c1 Migrate to JUnit 5
spring-cloud-function-context

spring-cloud-function-context: fix

spring-cloud-function-web

spring-cloud-function-adapters

spring-cloud-function-samples

spring-cloud-function-deployer; spring-cloud-function-kotlin

Resolves #535
2020-06-10 16:43:04 +02:00
Oleg Zhurakousky
8503c39104 Re-enable ignored tests 2020-05-04 21:09:41 +02:00
Oleg Zhurakousky
5f3f0cf965 Polishing
Fix code format
Resolves #489
2020-04-29 15:29:35 +02:00
谭繁华
719f3745f0 GH-489 the received data which Post Flux data to FunctionController is not same as the function apply
fix test case
2020-04-29 15:29:35 +02:00
Oleg Zhurakousky
b5592d8e7a Enhance test to validate HTTP header propagation 2020-04-21 14:13:35 +02:00
Oleg Zhurakousky
27494567a0 Add propagation of HTTP headers
Polish function composition logic
2020-04-20 18:13:45 +02:00
Oleg Zhurakousky
5f37819eae 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 09:14:57 +02:00
Oleg Zhurakousky
7bd84c79a2 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 07:06:18 +02:00