Example usage for org.springframework.util MultiValueMap getClass

List of usage examples for org.springframework.util MultiValueMap getClass

Introduction

In this page you can find the example usage for org.springframework.util MultiValueMap getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.devefx.httpmapper.http.RequestEntity.java

/**
 * Return the type of the request's body.
 * @return the request's body type, or {@code null} if not known
 *///from w ww  .  java2  s  .c o  m
public Type getType() {
    if (this.type == null) {
        MultiValueMap<String, Object> body = getBody();
        if (body != null) {
            this.type = body.getClass();
        }
    }
    return this.type;
}