CommandFacadeBodyExtractor
object CommandFacadeBodyExtractor : BodyExtractor<Mono<Tuple2<Any, AggregateRouteMetadata<Any>>>, ReactiveHttpInputMessage>
Reads the global command facade's request: the Command-Type header names the command, the optional Command-Aggregate-Context / Command-Aggregate-Name headers name its aggregate, and the body is the command.
The facade accepts exactly the commands that have an aggregate command route: a command type registered on an aggregate known to this service's metadata (or one of the default delete / recover / apply-resource-tags commands the aggregate does not override), whose aggregate route and @CommandRoute are enabled. The type name is matched against those registered classes; a client string is never loaded with Class.forName. Any other type answers like a disabled route: NotFoundResourceException (NotFound, 404).
Functions
Link copied to clipboard
open override fun extract(inputMessage: ReactiveHttpInputMessage, context: BodyExtractor.Context): Mono<Tuple2<Any, AggregateRouteMetadata<Any>>>