org.springframework.cloud.function.web.RequestProcessor Java Examples
The following examples show how to use
org.springframework.cloud.function.web.RequestProcessor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReactorAutoConfigurationInitializer.java From spring-init with Apache License 2.0 | 5 votes |
private void registerEndpoint(GenericApplicationContext context) { context.registerBean(StringConverter.class, () -> new BasicStringConverter(context.getBean(FunctionInspector.class), context.getBeanFactory())); context.registerBean(RequestProcessor.class, () -> new RequestProcessor(context.getBean(FunctionInspector.class), context.getBean(FunctionCatalog.class), context.getBeanProvider(JsonMapper.class), context.getBean(StringConverter.class), context.getBeanProvider(ServerCodecConfigurer.class))); context.registerBean(PublicFunctionEndpointFactory.class, () -> new PublicFunctionEndpointFactory(context.getBean(FunctionCatalog.class), context.getBean(FunctionInspector.class), context.getBean(RequestProcessor.class), context.getEnvironment())); context.registerBean(RouterFunction.class, () -> context.getBean(PublicFunctionEndpointFactory.class).functionEndpoints()); }
Example #2
Source File: FunctionEndpointInitializer.java From spring-cloud-function with Apache License 2.0 | 5 votes |
private void registerEndpoint(GenericApplicationContext context) { context.registerBean(StringConverter.class, () -> new BasicStringConverter(context.getBean(FunctionInspector.class), context.getBeanFactory())); context.registerBean(RequestProcessor.class, () -> new RequestProcessor(context.getBean(FunctionInspector.class), context.getBean(FunctionCatalog.class), context.getBeanProvider(JsonMapper.class), context.getBean(StringConverter.class), context.getBeanProvider(ServerCodecConfigurer.class))); context.registerBean(FunctionEndpointFactory.class, () -> new FunctionEndpointFactory(context.getBean(FunctionCatalog.class), context.getBean(FunctionInspector.class), context.getBean(RequestProcessor.class), context.getEnvironment())); context.registerBean(RouterFunction.class, () -> context.getBean(FunctionEndpointFactory.class).functionEndpoints()); }
Example #3
Source File: FunctionEndpointInitializer.java From spring-cloud-function with Apache License 2.0 | 5 votes |
FunctionEndpointFactory(FunctionCatalog functionCatalog, FunctionInspector inspector, RequestProcessor processor, Environment environment) { String handler = environment.resolvePlaceholders("${function.handler}"); if (handler.startsWith("$")) { handler = null; } this.processor = processor; this.inspector = inspector; this.functionCatalog = functionCatalog; this.handler = handler; }
Example #4
Source File: PublicFunctionEndpointFactory.java From spring-init with Apache License 2.0 | 4 votes |
public PublicFunctionEndpointFactory(FunctionCatalog functionCatalog, FunctionInspector inspector, RequestProcessor processor, Environment environment) { super(functionCatalog, inspector, processor, environment); }
Example #5
Source File: FunctionController.java From spring-cloud-function with Apache License 2.0 | 4 votes |
public FunctionController(RequestProcessor processor) { this.processor = processor; }
Example #6
Source File: FunctionController.java From spring-cloud-function with Apache License 2.0 | 4 votes |
public FunctionController(RequestProcessor processor) { this.processor = processor; }