Java org.springframework.boot.test.web.client TestRestTemplate fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.boot.test.web.client TestRestTemplate fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.boot.test.web.client TestRestTemplate.

The text is from its open source code.

Constructor

Method

ResponseEntityexchange(URI url, HttpMethod method, HttpEntity requestEntity, Class responseType)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as ResponseEntity .
ResponseEntityexchange(URI url, HttpMethod method, HttpEntity requestEntity, ParameterizedTypeReference responseType)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as ResponseEntity .
ResponseEntitygetForEntity(URI url, Class responseType)
Retrieve a representation by doing a GET on the URL .
RestTemplategetRestTemplate()
Returns the underlying RestTemplate that is actually used to perform the REST operations.
ResponseEntitypostForEntity(URI url, Object request, Class responseType)
Create a new resource by POSTing the given object to the URL, and returns the response as ResponseEntity .
voidsetUriTemplateHandler(UriTemplateHandler handler)
Configure the UriTemplateHandler to use to expand URI templates.
TestRestTemplatewithBasicAuth(String username, String password)
Creates a new TestRestTemplate with the same configuration as this one, except that it will send basic authorization headers using the given username and password .