Search in sources :

Example 1 with MultipartBodyArgumentBinder

use of io.micronaut.http.server.netty.multipart.MultipartBodyArgumentBinder in project micronaut-core by micronaut-projects.

the class NettyBinderRegistrar method onCreated.

@Override
public RequestBinderRegistry onCreated(BeanCreatedEvent<RequestBinderRegistry> event) {
    RequestBinderRegistry registry = event.getBean();
    registry.addRequestArgumentBinder(new CompletableFutureBodyBinder(httpContentProcessorResolver, conversionService));
    registry.addRequestArgumentBinder(new MultipartBodyArgumentBinder(beanLocator, httpServerConfiguration));
    registry.addRequestArgumentBinder(new InputStreamBodyBinder(httpContentProcessorResolver, executorService.get()));
    return registry;
}
Also used : RequestBinderRegistry(io.micronaut.http.bind.RequestBinderRegistry) MultipartBodyArgumentBinder(io.micronaut.http.server.netty.multipart.MultipartBodyArgumentBinder)

Aggregations

RequestBinderRegistry (io.micronaut.http.bind.RequestBinderRegistry)1 MultipartBodyArgumentBinder (io.micronaut.http.server.netty.multipart.MultipartBodyArgumentBinder)1