Package | Description |
---|---|
org.springframework.http |
Contains a basic abstraction over client/server-side HTTP.
|
org.springframework.http.client |
Contains an abstraction over client-side HTTP.
|
org.springframework.http.client.reactive |
Abstractions for reactive HTTP client support including
ClientHttpRequest and
ClientHttpResponse as well as a
ClientHttpConnector . |
org.springframework.http.client.support |
This package provides generic HTTP support classes,
to be used by higher-level classes like RestTemplate.
|
org.springframework.http.server |
Contains an abstraction over server-side HTTP.
|
org.springframework.http.server.reactive |
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing. |
org.springframework.mock.http.client |
Mock implementations of client-side HTTP abstractions.
|
org.springframework.mock.http.client.reactive |
Mock implementations of reactive HTTP client contracts.
|
org.springframework.mock.http.server.reactive |
Mock implementations of reactive HTTP server contracts.
|
org.springframework.mock.web |
A comprehensive set of Servlet API 3.0 mock objects,
targeted at usage with Spring's Web MVC framework.
|
org.springframework.mock.web.reactive.function.server |
Mock objects for the functional web framework.
|
org.springframework.test.web.client |
Contains client-side REST testing support.
|
org.springframework.test.web.client.match |
Contains built-in
RequestMatcher
implementations. |
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
org.springframework.test.web.servlet.request |
Contains built-in
RequestBuilder
implementations. |
org.springframework.web |
Common, generic interfaces that define minimal boundary points
between Spring's web infrastructure and other framework modules.
|
org.springframework.web.client |
Core package of the client-side web support.
|
org.springframework.web.context.request |
Support for generic request context holding, in particular for
scoping of application objects per HTTP request or HTTP session.
|
org.springframework.web.cors |
Support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy. |
org.springframework.web.cors.reactive |
Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy. |
org.springframework.web.multipart |
Multipart resolution framework for handling file uploads.
|
org.springframework.web.multipart.support |
Support classes for the multipart resolution framework.
|
org.springframework.web.reactive.function.client |
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer. |
org.springframework.web.reactive.function.server |
Provides the types that make up Spring's functional web framework.
|
org.springframework.web.reactive.function.server.support |
Classes supporting the
org.springframework.web.reactive.function.server package. |
org.springframework.web.server |
Core interfaces and classes for Spring's generic, reactive web support.
|
org.springframework.web.socket.sockjs.support |
Support classes for SockJS including an
AbstractSockJsService
implementation. |
org.springframework.web.socket.sockjs.transport |
Server-side support for SockJS transports including
TransportHandler implementations
for processing incoming requests, their
session
counterparts for sending messages over the various transports, and
DefaultSockJsService . |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
HttpHeaders.getAccessControlRequestMethod()
Return the value of the
Access-Control-Request-Method request header. |
default HttpMethod |
HttpRequest.getMethod()
Return the HTTP method of the request.
|
HttpMethod |
RequestEntity.getMethod()
Return the HTTP method of the request.
|
static HttpMethod |
HttpMethod.resolve(java.lang.String method)
Resolve the given method value to an
HttpMethod . |
static HttpMethod |
HttpMethod.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethod[] |
HttpMethod.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<HttpMethod> |
HttpHeaders.getAccessControlAllowMethods()
Return the value of the
Access-Control-Allow-Methods response header. |
java.util.Set<HttpMethod> |
HttpHeaders.getAllow()
Return the set of allowed
HTTP methods ,
as specified by the Allow header. |
Modifier and Type | Method and Description |
---|---|
B |
ResponseEntity.HeadersBuilder.allow(HttpMethod... allowedMethods)
Set the set of allowed
HTTP methods , as specified
by the Allow header. |
static RequestEntity.BodyBuilder |
RequestEntity.method(HttpMethod method,
java.net.URI url)
Create a builder with the given method and url.
|
void |
HttpHeaders.setAccessControlRequestMethod(HttpMethod requestMethod)
Set the (new) value of the
Access-Control-Request-Method request header. |
Modifier and Type | Method and Description |
---|---|
void |
HttpHeaders.setAccessControlAllowMethods(java.util.List<HttpMethod> allowedMethods)
Set the (new) value of the
Access-Control-Allow-Methods response header. |
void |
HttpHeaders.setAllow(java.util.Set<HttpMethod> allowedMethods)
Set the set of allowed
HTTP methods ,
as specified by the Allow header. |
Constructor and Description |
---|
RequestEntity(HttpMethod method,
java.net.URI url)
Constructor with method and URL but without body nor headers.
|
RequestEntity(MultiValueMap<java.lang.String,java.lang.String> headers,
HttpMethod method,
java.net.URI url)
Constructor with method, URL and headers but without body.
|
RequestEntity(T body,
HttpMethod method,
java.net.URI url)
Constructor with method, URL and body but without headers.
|
RequestEntity(T body,
HttpMethod method,
java.net.URI url,
java.lang.reflect.Type type)
Constructor with method, URL, body and type but without headers.
|
RequestEntity(T body,
MultiValueMap<java.lang.String,java.lang.String> headers,
HttpMethod method,
java.net.URI url)
Constructor with method, URL, headers and body.
|
RequestEntity(T body,
MultiValueMap<java.lang.String,java.lang.String> headers,
HttpMethod method,
java.net.URI url,
java.lang.reflect.Type type)
Constructor with method, URL, headers, body and type.
|
Modifier and Type | Method and Description |
---|---|
AsyncClientHttpRequest |
InterceptingAsyncClientHttpRequestFactory.createAsyncRequest(java.net.URI uri,
HttpMethod method)
Deprecated.
|
AsyncClientHttpRequest |
Netty4ClientHttpRequestFactory.createAsyncRequest(java.net.URI uri,
HttpMethod httpMethod)
Deprecated.
|
AsyncClientHttpRequest |
HttpComponentsAsyncClientHttpRequestFactory.createAsyncRequest(java.net.URI uri,
HttpMethod httpMethod)
Deprecated.
|
AsyncClientHttpRequest |
SimpleClientHttpRequestFactory.createAsyncRequest(java.net.URI uri,
HttpMethod httpMethod)
Create a new asynchronous
AsyncClientHttpRequest for the specified URI
and HTTP method. |
AsyncClientHttpRequest |
AsyncClientHttpRequestFactory.createAsyncRequest(java.net.URI uri,
HttpMethod httpMethod)
Deprecated.
Create a new asynchronous
AsyncClientHttpRequest for the specified URI
and HTTP method. |
AsyncClientHttpRequest |
OkHttp3ClientHttpRequestFactory.createAsyncRequest(java.net.URI uri,
HttpMethod httpMethod) |
protected org.apache.http.protocol.HttpContext |
HttpComponentsClientHttpRequestFactory.createHttpContext(HttpMethod httpMethod,
java.net.URI uri)
Template methods that creates a
HttpContext for the given HTTP method and URI. |
protected HttpUriRequest |
HttpComponentsClientHttpRequestFactory.createHttpUriRequest(HttpMethod httpMethod,
java.net.URI uri)
Create a Commons HttpMethodBase object for the given HTTP method and URI specification.
|
ClientHttpRequest |
Netty4ClientHttpRequestFactory.createRequest(java.net.URI uri,
HttpMethod httpMethod)
Deprecated.
|
ClientHttpRequest |
HttpComponentsClientHttpRequestFactory.createRequest(java.net.URI uri,
HttpMethod httpMethod) |
ClientHttpRequest |
ClientHttpRequestFactory.createRequest(java.net.URI uri,
HttpMethod httpMethod)
Create a new
ClientHttpRequest for the specified URI and HTTP method. |
ClientHttpRequest |
SimpleClientHttpRequestFactory.createRequest(java.net.URI uri,
HttpMethod httpMethod) |
ClientHttpRequest |
AbstractClientHttpRequestFactoryWrapper.createRequest(java.net.URI uri,
HttpMethod httpMethod)
This implementation simply calls
AbstractClientHttpRequestFactoryWrapper.createRequest(URI, HttpMethod, ClientHttpRequestFactory)
with the wrapped request factory provided to the
constructor. |
ClientHttpRequest |
OkHttp3ClientHttpRequestFactory.createRequest(java.net.URI uri,
HttpMethod httpMethod) |
protected ClientHttpRequest |
InterceptingClientHttpRequestFactory.createRequest(java.net.URI uri,
HttpMethod httpMethod,
ClientHttpRequestFactory requestFactory) |
protected abstract ClientHttpRequest |
AbstractClientHttpRequestFactoryWrapper.createRequest(java.net.URI uri,
HttpMethod httpMethod,
ClientHttpRequestFactory requestFactory)
Create a new
ClientHttpRequest for the specified URI and HTTP method
by using the passed-on request factory. |
protected ClientHttpRequest |
BufferingClientHttpRequestFactory.createRequest(java.net.URI uri,
HttpMethod httpMethod,
ClientHttpRequestFactory requestFactory) |
protected boolean |
BufferingClientHttpRequestFactory.shouldBuffer(java.net.URI uri,
HttpMethod httpMethod)
Indicates whether the request/response exchange for the given URI and method
should be buffered in memory.
|
Modifier and Type | Method and Description |
---|---|
HttpMethod |
ClientHttpRequestDecorator.getMethod() |
HttpMethod |
ClientHttpRequest.getMethod()
Return the HTTP method of the request.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ClientHttpResponse> |
JettyClientHttpConnector.connect(HttpMethod method,
java.net.URI uri,
java.util.function.Function<? super ClientHttpRequest,reactor.core.publisher.Mono<java.lang.Void>> requestCallback) |
reactor.core.publisher.Mono<ClientHttpResponse> |
ReactorClientHttpConnector.connect(HttpMethod method,
java.net.URI uri,
java.util.function.Function<? super ClientHttpRequest,reactor.core.publisher.Mono<java.lang.Void>> requestCallback) |
reactor.core.publisher.Mono<ClientHttpResponse> |
ClientHttpConnector.connect(HttpMethod method,
java.net.URI uri,
java.util.function.Function<? super ClientHttpRequest,reactor.core.publisher.Mono<java.lang.Void>> requestCallback)
Connect to the origin server using the given
HttpMethod and
URI and apply the given requestCallback when the HTTP
request of the underlying API can be initialized and written to. |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
HttpRequestWrapper.getMethod()
Return the method of the wrapped request.
|
Modifier and Type | Method and Description |
---|---|
protected AsyncClientHttpRequest |
AsyncHttpAccessor.createAsyncRequest(java.net.URI url,
HttpMethod method)
Deprecated.
Create a new
AsyncClientHttpRequest via this template's
AsyncClientHttpRequestFactory . |
protected ClientHttpRequest |
HttpAccessor.createRequest(java.net.URI url,
HttpMethod method)
Create a new
ClientHttpRequest via this template's ClientHttpRequestFactory . |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
ServletServerHttpRequest.getMethod() |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
ServerHttpRequestDecorator.getMethod() |
Modifier and Type | Method and Description |
---|---|
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.method(HttpMethod httpMethod)
Set the HTTP method to return.
|
Modifier and Type | Method and Description |
---|---|
HttpMethod |
MockClientHttpRequest.getMethod() |
Modifier and Type | Method and Description |
---|---|
void |
MockClientHttpRequest.setMethod(HttpMethod httpMethod) |
Constructor and Description |
---|
MockAsyncClientHttpRequest(HttpMethod httpMethod,
java.net.URI uri)
Deprecated.
|
MockClientHttpRequest(HttpMethod httpMethod,
java.net.URI uri)
Create an instance with the given HttpMethod and URI.
|
Modifier and Type | Method and Description |
---|---|
HttpMethod |
MockClientHttpRequest.getMethod() |
Constructor and Description |
---|
MockClientHttpRequest(HttpMethod httpMethod,
java.lang.String urlTemplate,
java.lang.Object... vars) |
MockClientHttpRequest(HttpMethod httpMethod,
java.net.URI url) |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
MockServerHttpRequest.getMethod() |
Modifier and Type | Method and Description |
---|---|
static MockServerHttpRequest.BodyBuilder |
MockServerHttpRequest.method(HttpMethod method,
java.lang.String urlTemplate,
java.lang.Object... vars)
Alternative to
MockServerHttpRequest.method(HttpMethod, URI) that accepts a URI template. |
static MockServerHttpRequest.BodyBuilder |
MockServerHttpRequest.method(HttpMethod method,
java.net.URI url)
Create a builder with the given HTTP method and a
URI . |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
MockMultipartHttpServletRequest.getRequestMethod() |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
MockServerRequest.method() |
Modifier and Type | Method and Description |
---|---|
MockServerRequest.Builder |
MockServerRequest.Builder.method(HttpMethod method) |
Modifier and Type | Method and Description |
---|---|
AsyncClientHttpRequest |
MockMvcClientHttpRequestFactory.createAsyncRequest(java.net.URI uri,
HttpMethod method) |
ClientHttpRequest |
MockMvcClientHttpRequestFactory.createRequest(java.net.URI uri,
HttpMethod httpMethod) |
Modifier and Type | Method and Description |
---|---|
static RequestMatcher |
MockRestRequestMatchers.method(HttpMethod method)
Assert the
HttpMethod of the request. |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
ExchangeResult.getMethod()
Return the method of the request.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ClientHttpResponse> |
HttpHandlerConnector.connect(HttpMethod httpMethod,
java.net.URI uri,
java.util.function.Function<? super ClientHttpRequest,reactor.core.publisher.Mono<java.lang.Void>> requestCallback) |
WebTestClient.RequestBodyUriSpec |
WebTestClient.method(HttpMethod method)
Prepare a request for the specified
HttpMethod . |
Modifier and Type | Method and Description |
---|---|
static MockHttpServletRequestBuilder |
MockMvcRequestBuilders.request(HttpMethod method,
java.lang.String urlTemplate,
java.lang.Object... uriVars)
Create a
MockHttpServletRequestBuilder for a request with the given HTTP method. |
static MockHttpServletRequestBuilder |
MockMvcRequestBuilders.request(HttpMethod httpMethod,
java.net.URI uri)
Create a
MockHttpServletRequestBuilder for a request with the given HTTP method. |
Modifier and Type | Method and Description |
---|---|
java.util.Set<HttpMethod> |
HttpRequestMethodNotSupportedException.getSupportedHttpMethods()
Return the actually supported HTTP methods as
HttpMethod instances,
or null if not known. |
Modifier and Type | Method and Description |
---|---|
java.util.Set<HttpMethod> |
RestOperations.optionsForAllow(java.lang.String url,
java.util.Map<java.lang.String,?> uriVariables)
Return the value of the Allow header for the given URI.
|
java.util.Set<HttpMethod> |
RestTemplate.optionsForAllow(java.lang.String url,
java.util.Map<java.lang.String,?> uriVariables) |
ListenableFuture<java.util.Set<HttpMethod>> |
AsyncRestTemplate.optionsForAllow(java.lang.String url,
java.util.Map<java.lang.String,?> uriVars)
Deprecated.
|
ListenableFuture<java.util.Set<HttpMethod>> |
AsyncRestOperations.optionsForAllow(java.lang.String url,
java.util.Map<java.lang.String,?> uriVariables)
Deprecated.
Asynchronously return the value of the Allow header for the given URI.
|
java.util.Set<HttpMethod> |
RestOperations.optionsForAllow(java.lang.String url,
java.lang.Object... uriVariables)
Return the value of the Allow header for the given URI.
|
java.util.Set<HttpMethod> |
RestTemplate.optionsForAllow(java.lang.String url,
java.lang.Object... uriVariables) |
ListenableFuture<java.util.Set<HttpMethod>> |
AsyncRestTemplate.optionsForAllow(java.lang.String url,
java.lang.Object... uriVars)
Deprecated.
|
ListenableFuture<java.util.Set<HttpMethod>> |
AsyncRestOperations.optionsForAllow(java.lang.String url,
java.lang.Object... uriVariables)
Deprecated.
Asynchronously return the value of the Allow header for the given URI.
|
java.util.Set<HttpMethod> |
RestOperations.optionsForAllow(java.net.URI url)
Return the value of the Allow header for the given URL.
|
java.util.Set<HttpMethod> |
RestTemplate.optionsForAllow(java.net.URI url) |
ListenableFuture<java.util.Set<HttpMethod>> |
AsyncRestTemplate.optionsForAllow(java.net.URI url)
Deprecated.
|
ListenableFuture<java.util.Set<HttpMethod>> |
AsyncRestOperations.optionsForAllow(java.net.URI url)
Deprecated.
Asynchronously return the value of the Allow header for the given URL.
|
Modifier and Type | Method and Description |
---|---|
protected <T> ListenableFuture<T> |
AsyncRestTemplate.doExecute(java.net.URI url,
HttpMethod method,
AsyncRequestCallback requestCallback,
ResponseExtractor<T> responseExtractor)
Deprecated.
Execute the given method on the provided URI.
|
protected <T> T |
RestTemplate.doExecute(java.net.URI url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor)
Execute the given method on the provided URI.
|
<T> ResponseEntity<T> |
RestOperations.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType,
java.util.Map<java.lang.String,?> uriVariables)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType,
java.util.Map<java.lang.String,?> uriVariables) |
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestTemplate.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType,
java.util.Map<java.lang.String,?> uriVariables)
Deprecated.
|
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestOperations.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType,
java.util.Map<java.lang.String,?> uriVariables)
Deprecated.
Asynchronously execute the HTTP method to the given URI template, writing the
given request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestOperations.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType,
java.lang.Object... uriVariables)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType,
java.lang.Object... uriVariables) |
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestTemplate.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType,
java.lang.Object... uriVariables)
Deprecated.
|
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestOperations.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType,
java.lang.Object... uriVariables)
Deprecated.
Asynchronously execute the HTTP method to the given URI template, writing the
given request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestOperations.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
java.util.Map<java.lang.String,?> uriVariables)
Execute the HTTP method to the given URI template, writing the given
request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
java.util.Map<java.lang.String,?> uriVariables) |
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestTemplate.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
java.util.Map<java.lang.String,?> uriVariables)
Deprecated.
|
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestOperations.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
java.util.Map<java.lang.String,?> uriVariables)
Deprecated.
Asynchronously execute the HTTP method to the given URI template, writing the given
request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestOperations.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
java.lang.Object... uriVariables)
Execute the HTTP method to the given URI template, writing the given
request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
java.lang.Object... uriVariables) |
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestTemplate.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
java.lang.Object... uriVariables)
Deprecated.
|
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestOperations.exchange(java.lang.String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
java.lang.Object... uriVariables)
Deprecated.
Asynchronously execute the HTTP method to the given URI template, writing the given
request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestOperations.exchange(java.net.URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(java.net.URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType) |
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestTemplate.exchange(java.net.URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType)
Deprecated.
|
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestOperations.exchange(java.net.URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
java.lang.Class<T> responseType)
Deprecated.
Asynchronously execute the HTTP method to the given URI template, writing the
given request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestOperations.exchange(java.net.URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType)
Execute the HTTP method to the given URI template, writing the given
request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(java.net.URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType) |
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestTemplate.exchange(java.net.URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType)
Deprecated.
|
<T> ListenableFuture<ResponseEntity<T>> |
AsyncRestOperations.exchange(java.net.URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType)
Deprecated.
Asynchronously execute the HTTP method to the given URI template, writing the given
request entity to the request, and returns the response as
ResponseEntity . |
<T> ListenableFuture<T> |
AsyncRestTemplate.execute(java.lang.String url,
HttpMethod method,
AsyncRequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
java.util.Map<java.lang.String,?> uriVariables)
Deprecated.
|
<T> ListenableFuture<T> |
AsyncRestOperations.execute(java.lang.String url,
HttpMethod method,
AsyncRequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
java.util.Map<java.lang.String,?> uriVariables)
Deprecated.
Asynchronously execute the HTTP method to the given URI template, preparing the
request with the
AsyncRequestCallback , and reading the response with a
ResponseExtractor . |
<T> ListenableFuture<T> |
AsyncRestTemplate.execute(java.lang.String url,
HttpMethod method,
AsyncRequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
java.lang.Object... uriVariables)
Deprecated.
|
<T> ListenableFuture<T> |
AsyncRestOperations.execute(java.lang.String url,
HttpMethod method,
AsyncRequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
java.lang.Object... uriVariables)
Deprecated.
Asynchronously execute the HTTP method to the given URI template, preparing the
request with the
AsyncRequestCallback , and reading the response with a
ResponseExtractor . |
<T> T |
RestOperations.execute(java.lang.String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
java.util.Map<java.lang.String,?> uriVariables)
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . |
<T> T |
RestTemplate.execute(java.lang.String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
java.util.Map<java.lang.String,?> uriVariables)
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . |
<T> T |
RestOperations.execute(java.lang.String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
java.lang.Object... uriVariables)
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . |
<T> T |
RestTemplate.execute(java.lang.String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
java.lang.Object... uriVariables)
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . |
<T> ListenableFuture<T> |
AsyncRestTemplate.execute(java.net.URI url,
HttpMethod method,
AsyncRequestCallback requestCallback,
ResponseExtractor<T> responseExtractor)
Deprecated.
|
<T> ListenableFuture<T> |
AsyncRestOperations.execute(java.net.URI url,
HttpMethod method,
AsyncRequestCallback requestCallback,
ResponseExtractor<T> responseExtractor)
Deprecated.
Asynchronously execute the HTTP method to the given URL, preparing the request
with the
AsyncRequestCallback , and reading the response with a
ResponseExtractor . |
<T> T |
RestOperations.execute(java.net.URI url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor)
Execute the HTTP method to the given URL, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . |
<T> T |
RestTemplate.execute(java.net.URI url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor)
Execute the HTTP method to the given URL, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . |
default void |
ResponseErrorHandler.handleError(java.net.URI url,
HttpMethod method,
ClientHttpResponse response)
Alternative to
ResponseErrorHandler.handleError(ClientHttpResponse) with extra
information providing access to the request URL and HTTP method. |
protected void |
RestTemplate.handleResponse(java.net.URI url,
HttpMethod method,
ClientHttpResponse response)
Handle the given response, performing appropriate logging and
invoking the
ResponseErrorHandler if necessary. |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
ServletWebRequest.getHttpMethod()
Return the HTTP method of the request.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<HttpMethod> |
CorsConfiguration.checkHttpMethod(HttpMethod requestMethod)
Check the HTTP request method (or the method from the
Access-Control-Request-Method header on a pre-flight request)
against the configured allowed methods. |
protected java.util.List<HttpMethod> |
DefaultCorsProcessor.checkMethods(CorsConfiguration config,
HttpMethod requestMethod)
Check the HTTP method and determine the methods for the response of a
pre-flight request.
|
Modifier and Type | Method and Description |
---|---|
void |
CorsConfiguration.addAllowedMethod(HttpMethod method)
Add an HTTP method to allow.
|
java.util.List<HttpMethod> |
CorsConfiguration.checkHttpMethod(HttpMethod requestMethod)
Check the HTTP request method (or the method from the
Access-Control-Request-Method header on a pre-flight request)
against the configured allowed methods. |
protected java.util.List<HttpMethod> |
DefaultCorsProcessor.checkMethods(CorsConfiguration config,
HttpMethod requestMethod)
Check the HTTP method and determine the methods for the response of a
pre-flight request.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<HttpMethod> |
DefaultCorsProcessor.checkMethods(CorsConfiguration config,
HttpMethod requestMethod)
Check the HTTP method and determine the methods for the response of a
pre-flight request.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<HttpMethod> |
DefaultCorsProcessor.checkMethods(CorsConfiguration config,
HttpMethod requestMethod)
Check the HTTP method and determine the methods for the response of a
pre-flight request.
|
Modifier and Type | Method and Description |
---|---|
HttpMethod |
MultipartHttpServletRequest.getRequestMethod()
Return this request's method as a convenient HttpMethod instance.
|
Modifier and Type | Method and Description |
---|---|
HttpMethod |
AbstractMultipartHttpServletRequest.getRequestMethod() |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
ClientRequest.method()
Return the HTTP method.
|
Modifier and Type | Method and Description |
---|---|
static ClientRequest.Builder |
ClientRequest.create(HttpMethod method,
java.net.URI url)
Create a request builder with the given method and url.
|
WebClient.RequestBodyUriSpec |
WebClient.method(HttpMethod method)
Start building a request for the given
HttpMethod . |
ClientRequest.Builder |
ClientRequest.Builder.method(HttpMethod method)
Set the method of the request.
|
static ClientRequest.Builder |
ClientRequest.method(HttpMethod method,
java.net.URI url)
Deprecated.
in favor of
ClientRequest.create(HttpMethod, URI) |
Modifier and Type | Method and Description |
---|---|
default HttpMethod |
ServerRequest.method()
Get the HTTP method.
|
Modifier and Type | Method and Description |
---|---|
EntityResponse.Builder<T> |
EntityResponse.Builder.allow(HttpMethod... allowedMethods)
Set the set of allowed
HTTP methods , as specified
by the Allow header. |
B |
ServerResponse.HeadersBuilder.allow(HttpMethod... allowedMethods)
Set the set of allowed
HTTP methods , as specified
by the Allow header. |
ServerRequest.Builder |
ServerRequest.Builder.method(HttpMethod method)
Set the method of the request.
|
static RequestPredicate |
RequestPredicates.method(HttpMethod httpMethod)
Return a
RequestPredicate that matches if the request's
HTTP method is equal to the given method. |
static RequestPredicate |
RequestPredicates.methods(HttpMethod... httpMethods)
Return a
RequestPredicate that matches if the request's
HTTP method is equal to one the of the given methods. |
Modifier and Type | Method and Description |
---|---|
EntityResponse.Builder<T> |
EntityResponse.Builder.allow(java.util.Set<HttpMethod> allowedMethods)
Set the set of allowed
HTTP methods , as specified
by the Allow header. |
B |
ServerResponse.HeadersBuilder.allow(java.util.Set<HttpMethod> allowedMethods)
Set the set of allowed
HTTP methods , as specified
by the Allow header. |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
ServerRequestWrapper.method() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<HttpMethod> |
MethodNotAllowedException.getSupportedMethods()
Return the list of supported HTTP methods.
|
Constructor and Description |
---|
MethodNotAllowedException(HttpMethod method,
java.util.Collection<HttpMethod> supportedMethods) |
Constructor and Description |
---|
MethodNotAllowedException(HttpMethod method,
java.util.Collection<HttpMethod> supportedMethods) |
MethodNotAllowedException(java.lang.String method,
java.util.Collection<HttpMethod> supportedMethods) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractSockJsService.checkOrigin(ServerHttpRequest request,
ServerHttpResponse response,
HttpMethod... httpMethods) |
protected void |
AbstractSockJsService.sendMethodNotAllowed(ServerHttpResponse response,
HttpMethod... httpMethods) |
Modifier and Type | Method and Description |
---|---|
HttpMethod |
TransportType.getHttpMethod() |