Class FunctionWebRequestProcessingHelper
- java.lang.Object
-
- org.springframework.cloud.function.web.util.FunctionWebRequestProcessingHelper
-
public final class FunctionWebRequestProcessingHelper extends Object
!INTERNAL USE ONLY!- Author:
- Oleg Zhurakousky
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
acceptContentTypes(List<org.springframework.http.MediaType> acceptHeaders)
static SimpleFunctionRegistry.FunctionInvocationWrapper
findFunction(FunctionProperties functionProperties, org.springframework.http.HttpMethod method, FunctionCatalog functionCatalog, Map<String,Object> attributes, String path, String[] acceptContentTypes)
static Object
invokeFunction(SimpleFunctionRegistry.FunctionInvocationWrapper function, Object input, boolean isMessage)
static org.reactivestreams.Publisher<?>
processRequest(FunctionWrapper wrapper, Object argument, boolean eventStream)
-
-
-
Method Detail
-
findFunction
public static SimpleFunctionRegistry.FunctionInvocationWrapper findFunction(FunctionProperties functionProperties, org.springframework.http.HttpMethod method, FunctionCatalog functionCatalog, Map<String,Object> attributes, String path, String[] acceptContentTypes)
-
acceptContentTypes
public static String[] acceptContentTypes(List<org.springframework.http.MediaType> acceptHeaders)
-
invokeFunction
public static Object invokeFunction(SimpleFunctionRegistry.FunctionInvocationWrapper function, Object input, boolean isMessage)
-
processRequest
public static org.reactivestreams.Publisher<?> processRequest(FunctionWrapper wrapper, Object argument, boolean eventStream)
-
-