Class RequestProcessor
- java.lang.Object
-
- org.springframework.cloud.function.web.RequestProcessor
-
public class RequestProcessor extends Object
- Author:
- Dave Syer, Oleg Zhurakousky
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestProcessor.FunctionWrapperWrapper for functions.
-
Constructor Summary
Constructors Constructor Description RequestProcessor(JsonMapper mapper, org.springframework.beans.factory.ObjectProvider<org.springframework.http.codec.ServerCodecConfigurer> codecs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>get(RequestProcessor.FunctionWrapper wrapper)reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>post(RequestProcessor.FunctionWrapper wrapper, String body, boolean stream)reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>response(RequestProcessor.FunctionWrapper wrapper, Object body, boolean stream)reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>stream(RequestProcessor.FunctionWrapper functionWrapper)static RequestProcessor.FunctionWrapperwrapper(SimpleFunctionRegistry.FunctionInvocationWrapper function)
-
-
-
Constructor Detail
-
RequestProcessor
public RequestProcessor(JsonMapper mapper, org.springframework.beans.factory.ObjectProvider<org.springframework.http.codec.ServerCodecConfigurer> codecs)
-
-
Method Detail
-
wrapper
public static RequestProcessor.FunctionWrapper wrapper(SimpleFunctionRegistry.FunctionInvocationWrapper function)
-
get
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> get(RequestProcessor.FunctionWrapper wrapper)
-
post
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> post(RequestProcessor.FunctionWrapper wrapper, String body, boolean stream)
-
stream
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> stream(RequestProcessor.FunctionWrapper functionWrapper)
-
response
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> response(RequestProcessor.FunctionWrapper wrapper, Object body, boolean stream)
-
-