Example usage for org.springframework.http RequestEntity getType

List of usage examples for org.springframework.http RequestEntity getType

Introduction

In this page you can find the example usage for org.springframework.http RequestEntity getType.

Prototype

@Nullable
public Type getType() 

Source Link

Document

Return the type of the request's body.

Usage

From source file:org.springframework.boot.test.web.client.TestRestTemplate.java

@SuppressWarnings({ "rawtypes", "unchecked" })
private RequestEntity<?> createRequestEntityWithRootAppliedUri(RequestEntity<?> requestEntity) {
    return new RequestEntity(requestEntity.getBody(), requestEntity.getHeaders(), requestEntity.getMethod(),
            applyRootUriIfNecessary(requestEntity.getUrl()), requestEntity.getType());
}