public final class FunctionWebRequestProcessingHelper extends Object
Modifier and Type | Method and 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 Object |
processRequest(FunctionWrapper wrapper,
Object argument,
boolean eventStream) |
public static SimpleFunctionRegistry.FunctionInvocationWrapper findFunction(FunctionProperties functionProperties, org.springframework.http.HttpMethod method, FunctionCatalog functionCatalog, Map<String,Object> attributes, String path, String[] acceptContentTypes)
public static String[] acceptContentTypes(List<org.springframework.http.MediaType> acceptHeaders)
public static Object invokeFunction(SimpleFunctionRegistry.FunctionInvocationWrapper function, Object input, boolean isMessage)
public static Object processRequest(FunctionWrapper wrapper, Object argument, boolean eventStream)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.