Example usage for org.springframework.web.reactive HandlerResult getReturnType

List of usage examples for org.springframework.web.reactive HandlerResult getReturnType

Introduction

In this page you can find the example usage for org.springframework.web.reactive HandlerResult getReturnType.

Prototype

public ResolvableType getReturnType() 

Source Link

Document

Return the type of the value returned from the handler -- e.g.

Usage

From source file:org.springframework.web.reactive.result.HandlerResultHandlerSupport.java

/**
 * Get a {@code ReactiveAdapter} for the top-level return value type.
 * @return the matching adapter or {@code null}
 *///  w w w  .  j a v a 2  s  . c  o m
@Nullable
protected ReactiveAdapter getAdapter(HandlerResult result) {
    Class<?> returnType = result.getReturnType().getRawClass();
    return getAdapterRegistry().getAdapter(returnType, result.getReturnValue());
}