Index
All Classes and Interfaces|All Packages|Serialized Form
C
- customize(WebTestClient.Builder) - Method in interface org.springframework.boot.web.server.test.client.reactive.WebTestClientBuilderCustomizer
-
Customize the given
builder.
D
- delete(String, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Delete the resources at the specified URI.
- delete(String, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Delete the resources at the specified URI.
- delete(URI) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Delete the resources at the specified URL.
E
- ENABLE_COOKIES - Enum constant in enum class org.springframework.boot.web.server.test.client.TestRestTemplate.HttpClientOption
-
Enable cookies.
- exchange(String, HttpMethod, HttpEntity<?>, Class<T>, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity. - exchange(String, HttpMethod, HttpEntity<?>, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity. - exchange(String, HttpMethod, HttpEntity<?>, ParameterizedTypeReference<T>, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity. - exchange(String, HttpMethod, HttpEntity<?>, ParameterizedTypeReference<T>, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity. - exchange(URI, HttpMethod, HttpEntity<?>, Class<T>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity. - exchange(URI, HttpMethod, HttpEntity<?>, ParameterizedTypeReference<T>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response as
ResponseEntity. - exchange(RequestEntity<?>, Class<T>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the request specified in the given
RequestEntityand return the response asResponseEntity. - exchange(RequestEntity<?>, ParameterizedTypeReference<T>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the request specified in the given
RequestEntityand return the response asResponseEntity. - execute(String, HttpMethod, RequestCallback, ResponseExtractor<T>, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback, and reading the response with aResponseExtractor. - execute(String, HttpMethod, RequestCallback, ResponseExtractor<T>, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback, and reading the response with aResponseExtractor. - execute(URI, HttpMethod, RequestCallback, ResponseExtractor<T>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Execute the HTTP method to the given URL, preparing the request with the
RequestCallback, and reading the response with aResponseExtractor.
G
- get(String) - Method in class org.springframework.boot.web.server.test.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
- getForEntity(String, Class<T>, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Retrieve an entity by doing a GET on the specified URL.
- getForEntity(String, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Retrieve a representation by doing a GET on the URI template.
- getForEntity(URI, Class<T>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Retrieve a representation by doing a GET on the URL .
- getForObject(String, Class<T>, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Retrieve a representation by doing a GET on the specified URL.
- getForObject(String, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Retrieve a representation by doing a GET on the URI template.
- getForObject(URI, Class<T>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Retrieve a representation by doing a GET on the URL .
- getPage(String) - Method in class org.springframework.boot.web.server.test.htmlunit.LocalHostWebClient
- getRestTemplate() - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Returns the underlying
RestTemplatethat is actually used to perform the REST operations. - getRootUri() - Method in class org.springframework.boot.web.server.test.client.LocalHostUriTemplateHandler
- getRootUri() - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Returns the root URI applied by
RestTemplateBuilder.rootUri(String)or""if the root URI has not been applied.
H
- headForHeaders(String, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Retrieve all headers of the resource specified by the URI template.
- headForHeaders(String, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Retrieve all headers of the resource specified by the URI template.
- headForHeaders(URI) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Retrieve all headers of the resource specified by the URL.
L
- LocalHostUriTemplateHandler - Class in org.springframework.boot.web.server.test.client
-
UriTemplateHandlerwill automatically prefix relative URIs withlocalhost:${local.server.port}. - LocalHostUriTemplateHandler(Environment) - Constructor for class org.springframework.boot.web.server.test.client.LocalHostUriTemplateHandler
-
Create a new
LocalHostUriTemplateHandlerthat will generatehttpURIs using the givenenvironmentto determine the context path and port. - LocalHostUriTemplateHandler(Environment, String) - Constructor for class org.springframework.boot.web.server.test.client.LocalHostUriTemplateHandler
-
Create a new
LocalHostUriTemplateHandlerthat will generate URIs with the givenschemeand use the givenenvironmentto determine the context-path and port. - LocalHostUriTemplateHandler(Environment, String, UriTemplateHandler) - Constructor for class org.springframework.boot.web.server.test.client.LocalHostUriTemplateHandler
-
Create a new
LocalHostUriTemplateHandlerthat will generate URIs with the givenscheme, use the givenenvironmentto determine the context-path and port and delegate to the given templatehandler. - LocalHostWebClient - Class in org.springframework.boot.web.server.test.htmlunit
-
WebClientwill automatically prefix relative URLs withlocalhost:${local.server.port}. - LocalHostWebClient(Environment) - Constructor for class org.springframework.boot.web.server.test.htmlunit.LocalHostWebClient
- LocalHostWebConnectionHtmlUnitDriver - Class in org.springframework.boot.web.server.test.htmlunit.webdriver
-
LocalHostWebConnectionHtmlUnitDriverwill automatically prefix relative URLs withlocalhost:${local.server.port}. - LocalHostWebConnectionHtmlUnitDriver(Environment) - Constructor for class org.springframework.boot.web.server.test.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
- LocalHostWebConnectionHtmlUnitDriver(Environment, boolean) - Constructor for class org.springframework.boot.web.server.test.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
- LocalHostWebConnectionHtmlUnitDriver(Environment, BrowserVersion) - Constructor for class org.springframework.boot.web.server.test.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
- LocalHostWebConnectionHtmlUnitDriver(Environment, Capabilities) - Constructor for class org.springframework.boot.web.server.test.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
- LocalManagementPort - Annotation Interface in org.springframework.boot.web.server.test
-
Annotation at the field or method/constructor parameter level that injects the HTTP management port that was allocated at runtime.
- LocalServerPort - Annotation Interface in org.springframework.boot.web.server.test
-
Annotation at the field or method/constructor parameter level that injects the HTTP server port that was allocated at runtime.
O
- optionsForAllow(String, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Return the value of the
Allowheader for the given URI. - optionsForAllow(String, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Return the value of the
Allowheader for the given URI. - optionsForAllow(URI) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Return the value of the
Allowheader for the given URL. - org.springframework.boot.web.server.test - package org.springframework.boot.web.server.test
-
Web server test utilities and support classes.
- org.springframework.boot.web.server.test.client - package org.springframework.boot.web.server.test.client
-
Client-side support for testing embedded web servers.
- org.springframework.boot.web.server.test.client.reactive - package org.springframework.boot.web.server.test.client.reactive
-
Spring Boot support for testing Spring WebFlux server endpoints via
WebTestClient. - org.springframework.boot.web.server.test.htmlunit - package org.springframework.boot.web.server.test.htmlunit
-
HtmlUnit support classes.
- org.springframework.boot.web.server.test.htmlunit.webdriver - package org.springframework.boot.web.server.test.htmlunit.webdriver
-
Selenium support classes.
P
- patchForObject(String, Object, Class<T>, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Update a resource by PATCHing the given object to the URI template, and returns the representation found in the response.
- patchForObject(String, Object, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Update a resource by PATCHing the given object to the URI template, and returns the representation found in the response.
- patchForObject(URI, Object, Class<T>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Update a resource by PATCHing the given object to the URL, and returns the representation found in the response.
- postForEntity(String, Object, Class<T>, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns the response as
ResponseEntity. - postForEntity(String, Object, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns the response as
HttpEntity. - postForEntity(URI, Object, Class<T>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URL, and returns the response as
ResponseEntity. - postForLocation(String, Object, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns the value of the
Locationheader. - postForLocation(String, Object, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns the value of the
Locationheader. - postForLocation(URI, Object) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URL, and returns the value of the
Locationheader. - postForObject(String, Object, Class<T>, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns the representation found in the response.
- postForObject(String, Object, Class<T>, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URI template, and returns the representation found in the response.
- postForObject(URI, Object, Class<T>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new resource by POSTing the given object to the URL, and returns the representation found in the response.
- put(String, Object, Object...) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create or update a resource by PUTting the given object to the URI.
- put(String, Object, Map<String, ?>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Creates a new resource by PUTting the given object to URI template.
- put(URI, Object) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Creates a new resource by PUTting the given object to URL.
S
- setUriTemplateHandler(UriTemplateHandler) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Configure the
UriTemplateHandlerto use to expand URI templates. - SSL - Enum constant in enum class org.springframework.boot.web.server.test.client.TestRestTemplate.HttpClientOption
-
Use a
TlsSocketStrategythat trusts self-signed certificates.
T
- TestRestTemplate - Class in org.springframework.boot.web.server.test.client
-
Convenient alternative of
RestTemplatethat is suitable for integration tests. - TestRestTemplate(String, String, TestRestTemplate.HttpClientOption...) - Constructor for class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new
TestRestTemplateinstance with the specified credentials. - TestRestTemplate(RestTemplateBuilder) - Constructor for class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new
TestRestTemplateinstance. - TestRestTemplate(RestTemplateBuilder, String, String, TestRestTemplate.HttpClientOption...) - Constructor for class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new
TestRestTemplateinstance with the specified credentials. - TestRestTemplate(TestRestTemplate.HttpClientOption...) - Constructor for class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Create a new
TestRestTemplateinstance. - TestRestTemplate.HttpClientOption - Enum Class in org.springframework.boot.web.server.test.client
-
Options used to customize the Apache HTTP Client.
V
- valueOf(String) - Static method in enum class org.springframework.boot.web.server.test.client.TestRestTemplate.HttpClientOption
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.springframework.boot.web.server.test.client.TestRestTemplate.HttpClientOption
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WebTestClientBuilderCustomizer - Interface in org.springframework.boot.web.server.test.client.reactive
-
A customizer for a
WebTestClient.Builder. - withBasicAuth(String, String) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Creates a new
TestRestTemplatewith the same configuration as this one, except that it will send basic authorization headers using the givenusernameandpassword. - withRedirects(HttpRedirects) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Creates a new
TestRestTemplatewith the same configuration as this one, except that it will apply the givenHttpRedirects. - withRequestFactorySettings(UnaryOperator<ClientHttpRequestFactorySettings>) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Creates a new
TestRestTemplatewith the same configuration as this one, except that it will customize theClientHttpRequestFactorySettings. - withRequestFactorySettings(ClientHttpRequestFactorySettings) - Method in class org.springframework.boot.web.server.test.client.TestRestTemplate
-
Creates a new
TestRestTemplatewith the same configuration as this one, except that it will apply the givenClientHttpRequestFactorySettings.
All Classes and Interfaces|All Packages|Serialized Form