Class RequestProcessor
java.lang.Object
org.springframework.cloud.function.web.RequestProcessor
- Author:
- Dave Syer, Oleg Zhurakousky
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWrapper for functions. -
Constructor Summary
ConstructorsConstructorDescriptionRequestProcessor(JsonMapper mapper, org.springframework.beans.factory.ObjectProvider<org.springframework.http.codec.ServerCodecConfigurer> codecs) -
Method Summary
Modifier and TypeMethodDescriptionreactor.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)
-
Constructor Details
-
RequestProcessor
public RequestProcessor(JsonMapper mapper, org.springframework.beans.factory.ObjectProvider<org.springframework.http.codec.ServerCodecConfigurer> codecs)
-
-
Method Details
-
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)
-