List of usage examples for org.springframework.http RequestEntity getType
@Nullable
public Type getType()
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());
}