GH-437 Refactor Azure request handler

This approach simplifies the existing request handlers while also fixing the invocation model to ensure AC is not created multiple times and ExecutionContext is properly propagated via Message headers
The old request handlers are deprecated
Documentation updates as well as tests
Resolves #437
This commit is contained in:
Oleg Zhurakousky
2021-03-15 11:08:36 +01:00
parent b0ef4522d4
commit 4e42e3631a
9 changed files with 386 additions and 42 deletions

View File

@@ -25,12 +25,12 @@ import com.microsoft.azure.functions.annotation.HttpTrigger;
import java.util.Optional;
import org.springframework.cloud.function.adapter.azure.AzureSpringBootRequestHandler;
import org.springframework.cloud.function.adapter.azure.FunctionInvoker;
/**
* @author Soby Chacko
*/
public class UppercaseHandler extends AzureSpringBootRequestHandler<String, String> {
public class UppercaseHandler extends FunctionInvoker<String, String> {
@FunctionName("uppercase")
public String execute(@HttpTrigger(name = "req", methods = {HttpMethod.GET,