Example usage for org.springframework.web.reactive.function.server HandlerStrategies empty

List of usage examples for org.springframework.web.reactive.function.server HandlerStrategies empty

Introduction

In this page you can find the example usage for org.springframework.web.reactive.function.server HandlerStrategies empty.

Prototype

static Builder empty() 

Source Link

Document

Return a mutable, empty builder for a HandlerStrategies .

Usage

From source file:org.springframework.cloud.function.web.function.FunctionEndpointInitializer.java

private HttpWebHandlerAdapter httpHandler(GenericApplicationContext context) {
    return (HttpWebHandlerAdapter) RouterFunctions.toHttpHandler(context.getBean(RouterFunction.class),
            HandlerStrategies.empty().exceptionHandler(context.getBean(WebExceptionHandler.class))
                    .codecs(config -> config.registerDefaults(true)).build());
}