Uses of Class
org.springframework.http.HttpMethod
Packages that use HttpMethod
Package
Description
Contains a basic abstraction over client/server-side HTTP.
Contains an abstraction over client-side HTTP.
Abstractions for reactive HTTP client support including
ClientHttpRequest and
ClientHttpResponse as well as a
ClientHttpConnector.This package provides generic HTTP support classes,
to be used by higher-level classes like RestTemplate.
Contains an abstraction over server-side HTTP.
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing.Mock implementations of client-side HTTP abstractions.
Mock implementations of reactive HTTP client contracts.
Mock implementations of reactive HTTP server contracts.
A comprehensive set of Servlet API 6.0 mock objects, targeted at usage with
Spring's Web MVC framework.
Mock objects for the functional web framework.
Contains client-side REST testing support.
Contains built-in
RequestMatcher
implementations.Support for testing Spring WebFlux server endpoints via
WebTestClient.AssertJ support for MockMvc.
Support for testing Spring MVC applications via
RestTestClient with
MockMvc for server request handling.Contains built-in
RequestBuilder
implementations.Common, generic interfaces that define minimal boundary points
between Spring's web infrastructure and other framework modules.
Annotations for binding requests to controllers and handler methods
as well as for binding request parameters to method arguments.
Core package of the client-side web support.
Support for generic request context holding, in particular for
scoping of application objects per HTTP request or HTTP session.
Support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy.Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy.Multipart resolution framework for handling file uploads.
Support classes for the multipart resolution framework.
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer.Provides the types that make up Spring's functional web framework for Reactive environments.
Classes supporting the
org.springframework.web.reactive.function.server package.Core interfaces and classes for Spring's generic, reactive web support.
Support for creating a client proxy for an HTTP service annotated with
HttpExchange methods.Annotation-based setup for Spring MVC.
Provides the types that make up Spring's functional web framework for Servlet environments.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
Support classes for serving static resources.
Support classes for SockJS including an
AbstractSockJsService
implementation.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.-
Uses of HttpMethod in org.springframework.http
Classes in org.springframework.http that implement interfaces with type arguments of type HttpMethodFields in org.springframework.http declared as HttpMethodModifier and TypeFieldDescriptionstatic final HttpMethodHttpMethod.DELETEThe HTTP methodDELETE.static final HttpMethodHttpMethod.GETThe HTTP methodGET.static final HttpMethodHttpMethod.HEADThe HTTP methodHEAD.static final HttpMethodHttpMethod.OPTIONSThe HTTP methodOPTIONS.static final HttpMethodHttpMethod.PATCHThe HTTP methodPATCH.static final HttpMethodHttpMethod.POSTThe HTTP methodPOST.static final HttpMethodHttpMethod.PUTThe HTTP methodPUT.static final HttpMethodHttpMethod.TRACEThe HTTP methodTRACE.Methods in org.springframework.http that return HttpMethodModifier and TypeMethodDescriptionHttpHeaders.getAccessControlRequestMethod()Return the value of theAccess-Control-Request-Methodrequest header.HttpRequest.getMethod()Return the HTTP method of the request.RequestEntity.getMethod()Return the HTTP method of the request.static HttpMethodReturn anHttpMethodobject for the given value.static HttpMethod[]HttpMethod.values()Returns an array containing the standard HTTP methods.Methods in org.springframework.http that return types with arguments of type HttpMethodModifier and TypeMethodDescriptionHttpHeaders.getAccessControlAllowMethods()Return the value of theAccess-Control-Allow-Methodsresponse header.HttpHeaders.getAllow()Return the set of allowedHTTP methods, as specified by theAllowheader.Methods in org.springframework.http with parameters of type HttpMethodModifier and TypeMethodDescriptionResponseEntity.HeadersBuilder.allow(HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.intHttpMethod.compareTo(HttpMethod other) static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, String uriTemplate, @Nullable Object... uriVariables) Create a builder with the given HTTP method, URI template, and variables.static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, String uriTemplate, Map<String, ?> uriVariables) Create a builder with the given HTTP method, URI template, and variables.static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, URI url) Create a builder with the given method and url.voidHttpHeaders.setAccessControlRequestMethod(@Nullable HttpMethod requestMethod) Set the (new) value of theAccess-Control-Request-Methodrequest header.Method parameters in org.springframework.http with type arguments of type HttpMethodModifier and TypeMethodDescriptionvoidHttpHeaders.setAccessControlAllowMethods(List<HttpMethod> allowedMethods) Set the (new) value of theAccess-Control-Allow-Methodsresponse header.voidHttpHeaders.setAllow(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.Constructors in org.springframework.http with parameters of type HttpMethodModifierConstructorDescriptionRequestEntity(@Nullable T body, @Nullable HttpHeaders headers, @Nullable HttpMethod method, @Nullable URI url, @Nullable Type type) Constructor with method, URL, headers, body and type.RequestEntity(@Nullable T body, @Nullable HttpHeaders headers, @Nullable HttpMethod method, URI url) Constructor with method, URL, headers and body.RequestEntity(@Nullable T body, HttpMethod method, URI url) Constructor with method, URL and body but without headers.RequestEntity(@Nullable T body, HttpMethod method, URI url, Type type) Constructor with method, URL, body and type but without headers.RequestEntity(@Nullable T body, @Nullable MultiValueMap<String, String> headers, @Nullable HttpMethod method, @Nullable URI url, @Nullable Type type) Deprecated, for removal: This API element is subject to removal in a future version.RequestEntity(@Nullable T body, @Nullable MultiValueMap<String, String> headers, @Nullable HttpMethod method, URI url) Deprecated, for removal: This API element is subject to removal in a future version.RequestEntity(HttpHeaders headers, HttpMethod method, URI url) Constructor with method, URL and headers but without body.RequestEntity(HttpMethod method, URI url) Constructor with method and URL but without body nor headers.RequestEntity(MultiValueMap<String, String> headers, HttpMethod method, URI url) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofRequestEntity(HttpHeaders, HttpMethod, URI) -
Uses of HttpMethod in org.springframework.http.client
Methods in org.springframework.http.client with parameters of type HttpMethodModifier and TypeMethodDescriptionprotected @Nullable org.apache.hc.core5.http.protocol.HttpContextHttpComponentsClientHttpRequestFactory.createHttpContext(HttpMethod httpMethod, URI uri) Template method that creates aHttpContextfor the given HTTP method and URI.protected org.apache.hc.core5.http.ClassicHttpRequestHttpComponentsClientHttpRequestFactory.createHttpUriRequest(HttpMethod httpMethod, URI uri) Create a Commons HttpMethodBase object for the given HTTP method and URI specification.final ClientHttpRequestAbstractClientHttpRequestFactoryWrapper.createRequest(URI uri, HttpMethod httpMethod) This implementation simply callsAbstractClientHttpRequestFactoryWrapper.createRequest(URI, HttpMethod, ClientHttpRequestFactory)with the wrapped request factory provided to the constructor.protected abstract ClientHttpRequestAbstractClientHttpRequestFactoryWrapper.createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) Create a newClientHttpRequestfor the specified URI and HTTP method by using the passed-on request factory.protected ClientHttpRequestBufferingClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) ClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) Create a newClientHttpRequestfor the specified URI and HTTP method.HttpComponentsClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) protected ClientHttpRequestInterceptingClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) JdkClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) JettyClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) ReactorClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) SimpleClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) protected booleanBufferingClientHttpRequestFactory.shouldBuffer(URI uri, HttpMethod httpMethod) Indicates whether the request/response exchange for the given URI and method should be buffered in memory.Method parameters in org.springframework.http.client with type arguments of type HttpMethodModifier and TypeMethodDescriptionvoidHttpComponentsClientHttpRequestFactory.setHttpContextFactory(BiFunction<HttpMethod, URI, org.apache.hc.core5.http.protocol.HttpContext> httpContextFactory) Configure a factory to pre-create theHttpContextfor each request.Constructor parameters in org.springframework.http.client with type arguments of type HttpMethodModifierConstructorDescriptionBufferingClientHttpRequestFactory(ClientHttpRequestFactory requestFactory, @Nullable BiPredicate<URI, HttpMethod> bufferingPredicate) Constructor variant with an additional predicate to decide whether to buffer the response.InterceptingClientHttpRequestFactory(ClientHttpRequestFactory requestFactory, @Nullable List<ClientHttpRequestInterceptor> interceptors, @Nullable BiPredicate<URI, HttpMethod> bufferingPredicate) Constructor variant with an additional predicate to decide whether to buffer the response. -
Uses of HttpMethod in org.springframework.http.client.reactive
Methods in org.springframework.http.client.reactive that return HttpMethodModifier and TypeMethodDescriptionClientHttpRequest.getMethod()Return the HTTP method of the request.ClientHttpRequestDecorator.getMethod()Methods in org.springframework.http.client.reactive with parameters of type HttpMethodModifier and TypeMethodDescriptionreactor.core.publisher.Mono<ClientHttpResponse> ClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) Connect to the origin server using the givenHttpMethodandURIand apply the givenrequestCallbackwhen the HTTP request of the underlying API can be initialized and written to.reactor.core.publisher.Mono<ClientHttpResponse> HttpComponentsClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse> JdkClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse> JettyClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse> ReactorClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) Constructor parameters in org.springframework.http.client.reactive with type arguments of type HttpMethodModifierConstructorDescriptionHttpComponentsClientHttpConnector(CloseableHttpAsyncClient client, BiFunction<HttpMethod, URI, ? extends HttpClientContext> contextProvider) Constructor with a pre-configuredCloseableHttpAsyncClientinstance and aHttpClientContextsupplier lambda which is called before each request and passed to the client. -
Uses of HttpMethod in org.springframework.http.client.support
Methods in org.springframework.http.client.support that return HttpMethodModifier and TypeMethodDescriptionHttpRequestWrapper.getMethod()Return the method of the wrapped request.Methods in org.springframework.http.client.support that return types with arguments of type HttpMethodModifier and TypeMethodDescriptionHttpAccessor.getBufferingPredicate()Return theconfiguredpredicate to determine whether to buffer request and response content.Methods in org.springframework.http.client.support with parameters of type HttpMethodModifier and TypeMethodDescriptionprotected ClientHttpRequestHttpAccessor.createRequest(URI url, HttpMethod method) Create a newClientHttpRequestvia this template'sClientHttpRequestFactory.Method parameters in org.springframework.http.client.support with type arguments of type HttpMethodModifier and TypeMethodDescriptionvoidHttpAccessor.setBufferingPredicate(@Nullable BiPredicate<URI, HttpMethod> predicate) Enable buffering of request and response, aggregating all content before it is sent, and making it possible to read the response body repeatedly. -
Uses of HttpMethod in org.springframework.http.server
Methods in org.springframework.http.server that return HttpMethod -
Uses of HttpMethod in org.springframework.http.server.reactive
Methods in org.springframework.http.server.reactive that return HttpMethodModifier and TypeMethodDescriptionAbstractServerHttpRequest.getMethod()ServerHttpRequestDecorator.getMethod()Methods in org.springframework.http.server.reactive with parameters of type HttpMethodModifier and TypeMethodDescriptionServerHttpRequest.Builder.method(HttpMethod httpMethod) Set the HTTP method to return.Constructors in org.springframework.http.server.reactive with parameters of type HttpMethodModifierConstructorDescriptionAbstractServerHttpRequest(HttpMethod method, URI uri, @Nullable String contextPath, HttpHeaders headers) Constructor with the method, URI and headers for the request. -
Uses of HttpMethod in org.springframework.mock.http.client
Methods in org.springframework.mock.http.client that return HttpMethodMethods in org.springframework.mock.http.client with parameters of type HttpMethodModifier and TypeMethodDescriptionvoidMockClientHttpRequest.setMethod(HttpMethod httpMethod) Set the HTTP method of the request.Constructors in org.springframework.mock.http.client with parameters of type HttpMethodModifierConstructorDescriptionMockClientHttpRequest(HttpMethod httpMethod, String uriTemplate, Object... vars) Create aMockClientHttpRequestwith the givenHttpMethod, URI template, and URI template variable values.MockClientHttpRequest(HttpMethod httpMethod, URI uri) -
Uses of HttpMethod in org.springframework.mock.http.client.reactive
Methods in org.springframework.mock.http.client.reactive that return HttpMethodConstructors in org.springframework.mock.http.client.reactive with parameters of type HttpMethodModifierConstructorDescriptionMockClientHttpRequest(HttpMethod httpMethod, String urlTemplate, Object... vars) MockClientHttpRequest(HttpMethod httpMethod, URI url) -
Uses of HttpMethod in org.springframework.mock.http.server.reactive
Methods in org.springframework.mock.http.server.reactive with parameters of type HttpMethodModifier and TypeMethodDescriptionMockServerHttpRequest.method(HttpMethod method, String uri, @Nullable Object... vars) Alternative toMockServerHttpRequest.method(HttpMethod, URI)that accepts a URI template.MockServerHttpRequest.method(HttpMethod method, URI url) Create a builder with the given HTTP method and aURI. -
Uses of HttpMethod in org.springframework.mock.web
Methods in org.springframework.mock.web that return HttpMethod -
Uses of HttpMethod in org.springframework.mock.web.reactive.function.server
Methods in org.springframework.mock.web.reactive.function.server that return HttpMethodMethods in org.springframework.mock.web.reactive.function.server with parameters of type HttpMethod -
Uses of HttpMethod in org.springframework.test.web.client
Methods in org.springframework.test.web.client with parameters of type HttpMethodModifier and TypeMethodDescriptionMockMvcClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) Deprecated. -
Uses of HttpMethod in org.springframework.test.web.client.match
Methods in org.springframework.test.web.client.match with parameters of type HttpMethodModifier and TypeMethodDescriptionstatic RequestMatcherMockRestRequestMatchers.method(HttpMethod method) Assert theHttpMethodof the request. -
Uses of HttpMethod in org.springframework.test.web.reactive.server
Methods in org.springframework.test.web.reactive.server that return HttpMethodMethods in org.springframework.test.web.reactive.server with parameters of type HttpMethodModifier and TypeMethodDescriptionreactor.core.publisher.Mono<ClientHttpResponse> HttpHandlerConnector.connect(HttpMethod httpMethod, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) WebTestClient.method(HttpMethod method) Prepare a request for the specifiedHttpMethod. -
Uses of HttpMethod in org.springframework.test.web.servlet.assertj
Methods in org.springframework.test.web.servlet.assertj with parameters of type HttpMethodModifier and TypeMethodDescriptionMockMvcTester.method(HttpMethod method) Prepare a request for the specifiedHttpMethod. -
Uses of HttpMethod in org.springframework.test.web.servlet.client
Methods in org.springframework.test.web.servlet.client that return HttpMethodMethods in org.springframework.test.web.servlet.client with parameters of type HttpMethodModifier and TypeMethodDescriptionreactor.core.publisher.Mono<ClientHttpResponse> MockMvcHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) RestTestClient.method(HttpMethod method) Prepare a request for the specifiedHttpMethod. -
Uses of HttpMethod in org.springframework.test.web.servlet.request
Methods in org.springframework.test.web.servlet.request with parameters of type HttpMethodModifier and TypeMethodDescriptionMockMvcRequestBuilders.multipart(HttpMethod httpMethod, String uriTemplate, @Nullable Object... uriVariables) Variant ofMockMvcRequestBuilders.multipart(String, Object...)that also accepts anHttpMethod.MockMvcRequestBuilders.multipart(HttpMethod httpMethod, URI uri) MockMvcRequestBuilders.request(HttpMethod method, String uriTemplate, @Nullable Object... uriVariables) Create aMockHttpServletRequestBuilderfor a request with the given HTTP method.MockMvcRequestBuilders.request(HttpMethod httpMethod, URI uri) Create aMockHttpServletRequestBuilderfor a request with the given HTTP method.Constructors in org.springframework.test.web.servlet.request with parameters of type HttpMethodModifierConstructorDescriptionprotectedAbstractMockHttpServletRequestBuilder(HttpMethod httpMethod) Create a new instance using the specifiedHttpMethod.protected -
Uses of HttpMethod in org.springframework.web
Methods in org.springframework.web that return types with arguments of type HttpMethodModifier and TypeMethodDescriptionHttpRequestMethodNotSupportedException.getSupportedHttpMethods()Return the actually supported HTTP methods asHttpMethodinstances, ornullif not known.Constructors in org.springframework.web with parameters of type HttpMethodModifierConstructorDescriptionHttpMediaTypeNotSupportedException(@Nullable MediaType contentType, List<MediaType> mediaTypes, @Nullable HttpMethod httpMethod) Create a new HttpMediaTypeNotSupportedException.HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, List<MediaType> supportedMediaTypes, @Nullable HttpMethod httpMethod, String message) Create a new HttpMediaTypeNotSupportedException. -
Uses of HttpMethod in org.springframework.web.bind.annotation
Methods in org.springframework.web.bind.annotation that return HttpMethodModifier and TypeMethodDescriptionRequestMethod.asHttpMethod()Return theHttpMethodcorresponding to thisRequestMethod.Methods in org.springframework.web.bind.annotation with parameters of type HttpMethodModifier and TypeMethodDescriptionstatic @Nullable RequestMethodRequestMethod.resolve(HttpMethod httpMethod) Resolve the givenHttpMethodto aRequestMethodenum value. -
Uses of HttpMethod in org.springframework.web.client
Methods in org.springframework.web.client that return types with arguments of type HttpMethodModifier and TypeMethodDescriptionRestOperations.optionsForAllow(String url, @Nullable Object... uriVariables) Return the value of theAllowheader for the given URI.Return the value of theAllowheader for the given URI.RestOperations.optionsForAllow(URI url) Return the value of theAllowheader for the given URL.RestTemplate.optionsForAllow(String url, @Nullable Object... uriVariables) RestTemplate.optionsForAllow(URI url) Methods in org.springframework.web.client with parameters of type HttpMethodModifier and TypeMethodDescriptionprotected <T> @Nullable TRestTemplate.doExecute(URI url, @Nullable String uriTemplate, @Nullable HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) Execute the given method on the provided URI.<T> ResponseEntity<T> RestOperations.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType, @Nullable Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, @Nullable Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType) Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType, @Nullable Object... uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, @Nullable Object... uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType) <T> ResponseEntity<T> RestTemplate.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) <T> @Nullable TRestOperations.execute(String uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, @Nullable Object... uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> @Nullable TRestOperations.execute(String uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, Map<String, ? extends @Nullable Object> uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> @Nullable TRestOperations.execute(URI url, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) Execute the HTTP method to the given URL, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> @Nullable TRestTemplate.execute(String uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, @Nullable Object... uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> @Nullable TRestTemplate.execute(String uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, Map<String, ? extends @Nullable Object> uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> @Nullable TRestTemplate.execute(URI url, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) Execute the HTTP method to the given URL, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.voidDefaultResponseErrorHandler.handleError(URI url, HttpMethod method, ClientHttpResponse response) Handle the error in the given response with the given resolved status code and extra information providing access to the request URL and HTTP method.protected voidDefaultResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode, @Nullable URI url, @Nullable HttpMethod method) Handle the error based on the resolved status code.protected voidExtractingResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode, @Nullable URI url, @Nullable HttpMethod method) default voidResponseErrorHandler.handleError(URI url, HttpMethod method, ClientHttpResponse response) Handle the error in the given response.protected voidRestTemplate.handleResponse(URI url, HttpMethod method, ClientHttpResponse response) Handle the given response, performing appropriate logging and invoking theResponseErrorHandlerif necessary.RestClient.method(HttpMethod method) Start building a request for the givenHttpMethod.Method parameters in org.springframework.web.client with type arguments of type HttpMethodModifier and TypeMethodDescriptionRestClient.Builder.bufferContent(BiPredicate<URI, HttpMethod> predicate) Enable buffering of request and response, aggregating all content before it is sent, and making it possible to read the response body repeatedly. -
Uses of HttpMethod in org.springframework.web.context.request
Methods in org.springframework.web.context.request that return HttpMethodModifier and TypeMethodDescriptionServletWebRequest.getHttpMethod()Return the HTTP method of the request. -
Uses of HttpMethod in org.springframework.web.cors
Methods in org.springframework.web.cors that return types with arguments of type HttpMethodModifier and TypeMethodDescriptionCorsConfiguration.checkHttpMethod(@Nullable HttpMethod requestMethod) Check the HTTP request method (or the method from theAccess-Control-Request-Methodheader on a pre-flight request) against the configured allowed methods.protected @Nullable List<HttpMethod> DefaultCorsProcessor.checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) Check the HTTP method and determine the methods for the response of a pre-flight request.Methods in org.springframework.web.cors with parameters of type HttpMethodModifier and TypeMethodDescriptionvoidCorsConfiguration.addAllowedMethod(HttpMethod method) Variant ofCorsConfiguration.setAllowedMethods(List)for adding one allowed method at a time.CorsConfiguration.checkHttpMethod(@Nullable HttpMethod requestMethod) Check the HTTP request method (or the method from theAccess-Control-Request-Methodheader on a pre-flight request) against the configured allowed methods.protected @Nullable List<HttpMethod> DefaultCorsProcessor.checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) Check the HTTP method and determine the methods for the response of a pre-flight request. -
Uses of HttpMethod in org.springframework.web.cors.reactive
Methods in org.springframework.web.cors.reactive that return types with arguments of type HttpMethodModifier and TypeMethodDescriptionprotected @Nullable List<HttpMethod> DefaultCorsProcessor.checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) Check the HTTP method and determine the methods for the response of a pre-flight request.Methods in org.springframework.web.cors.reactive with parameters of type HttpMethodModifier and TypeMethodDescriptionprotected @Nullable List<HttpMethod> DefaultCorsProcessor.checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) Check the HTTP method and determine the methods for the response of a pre-flight request. -
Uses of HttpMethod in org.springframework.web.multipart
Methods in org.springframework.web.multipart that return HttpMethodModifier and TypeMethodDescriptionMultipartHttpServletRequest.getRequestMethod()Return this request's method as a convenient HttpMethod instance. -
Uses of HttpMethod in org.springframework.web.multipart.support
Methods in org.springframework.web.multipart.support that return HttpMethod -
Uses of HttpMethod in org.springframework.web.reactive.function.client
Methods in org.springframework.web.reactive.function.client that return HttpMethodModifier and TypeMethodDescriptionWebClientRequestException.getMethod()Return the HTTP request method.ClientRequest.method()Return the HTTP method.Methods in org.springframework.web.reactive.function.client with parameters of type HttpMethodModifier and TypeMethodDescriptionstatic ClientRequest.BuilderClientRequest.create(HttpMethod method, URI url) Create a request builder with the given HTTP method and url.ClientRequest.Builder.method(HttpMethod method) Set the method of the request.WebClient.method(HttpMethod method) Start building a request for the givenHttpMethod.Constructors in org.springframework.web.reactive.function.client with parameters of type HttpMethodModifierConstructorDescriptionWebClientRequestException(Throwable ex, HttpMethod method, URI uri, HttpHeaders headers) Constructor for throwable. -
Uses of HttpMethod in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server that return HttpMethodMethods in org.springframework.web.reactive.function.server with parameters of type HttpMethodModifier and TypeMethodDescriptionEntityResponse.Builder.allow(HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.ServerResponse.HeadersBuilder.allow(HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.static RequestPredicateRequestPredicates.method(HttpMethod httpMethod) Return aRequestPredicatethat matches if the request's HTTP method is equal to the given method.ServerRequest.Builder.method(HttpMethod method) Set the method of the request.static RequestPredicateRequestPredicates.methods(HttpMethod... httpMethods) Return aRequestPredicatethat matches if the request's HTTP method is equal to one the of the given methods.Method parameters in org.springframework.web.reactive.function.server with type arguments of type HttpMethodModifier and TypeMethodDescriptionEntityResponse.Builder.allow(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.ServerResponse.HeadersBuilder.allow(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.voidRequestPredicates.Visitor.method(Set<HttpMethod> methods) Receive notification of an HTTP method predicate. -
Uses of HttpMethod in org.springframework.web.reactive.function.server.support
Methods in org.springframework.web.reactive.function.server.support that return HttpMethod -
Uses of HttpMethod in org.springframework.web.server
Methods in org.springframework.web.server that return types with arguments of type HttpMethodModifier and TypeMethodDescriptionMethodNotAllowedException.getSupportedMethods()Return the list of supported HTTP methods.Constructors in org.springframework.web.server with parameters of type HttpMethodModifierConstructorDescriptionMethodNotAllowedException(HttpMethod method, Collection<HttpMethod> supportedMethods) UnsupportedMediaTypeStatusException(@Nullable MediaType contentType, List<MediaType> supportedTypes, @Nullable ResolvableType bodyType, @Nullable HttpMethod method) Constructor for when trying to encode from or decode to a specific Java type.UnsupportedMediaTypeStatusException(@Nullable MediaType contentType, List<MediaType> supportedTypes, @Nullable HttpMethod method) Constructor that provides the HTTP method.Constructor parameters in org.springframework.web.server with type arguments of type HttpMethodModifierConstructorDescriptionMethodNotAllowedException(String method, @Nullable Collection<HttpMethod> supportedMethods) MethodNotAllowedException(HttpMethod method, Collection<HttpMethod> supportedMethods) -
Uses of HttpMethod in org.springframework.web.service.invoker
Methods in org.springframework.web.service.invoker that return HttpMethodModifier and TypeMethodDescriptionHttpRequestValues.Builder.getHttpMethod()HttpRequestValues.getHttpMethod()Return the HTTP method to use for the request.HttpRequestValues.Metadata.getHttpMethod()Return the HTTP method, if known.Methods in org.springframework.web.service.invoker with parameters of type HttpMethodModifier and TypeMethodDescriptionprotected HttpRequestValuesHttpRequestValues.Builder.createRequestValues(@Nullable HttpMethod httpMethod, @Nullable URI uri, @Nullable UriBuilderFactory uriBuilderFactory, @Nullable String uriTemplate, Map<String, String> uriVars, HttpHeaders headers, MultiValueMap<String, String> cookies, @Nullable Object version, Map<String, Object> attributes, @Nullable Object bodyValue, @Nullable ParameterizedTypeReference<?> bodyValueType) CreateHttpRequestValuesfrom values passed to theHttpRequestValues.Builder.protected ReactiveHttpRequestValuesReactiveHttpRequestValues.Builder.createRequestValues(@Nullable HttpMethod httpMethod, @Nullable URI uri, @Nullable UriBuilderFactory uriBuilderFactory, @Nullable String uriTemplate, Map<String, String> uriVars, HttpHeaders headers, MultiValueMap<String, String> cookies, @Nullable Object version, Map<String, Object> attributes, @Nullable Object bodyValue, @Nullable ParameterizedTypeReference<?> bodyValueType) HttpRequestValues.Builder.setHttpMethod(HttpMethod httpMethod) Set the HTTP method for the request.ReactiveHttpRequestValues.Builder.setHttpMethod(HttpMethod httpMethod) Constructors in org.springframework.web.service.invoker with parameters of type HttpMethodModifierConstructorDescriptionprotectedHttpRequestValues(@Nullable HttpMethod httpMethod, @Nullable URI uri, @Nullable UriBuilderFactory uriBuilderFactory, @Nullable String uriTemplate, Map<String, String> uriVariables, HttpHeaders headers, MultiValueMap<String, String> cookies, @Nullable Object version, Map<String, Object> attributes, @Nullable Object bodyValue, @Nullable ParameterizedTypeReference<?> bodyValueType) ConstructHttpRequestValues. -
Uses of HttpMethod in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation with parameters of type HttpMethodModifier and TypeMethodDescriptionInterceptorRegistration.excludeHttpMethods(HttpMethod... httpMethods) Add HTTP methods for requests the interceptor should be excluded from.InterceptorRegistration.includeHttpMethods(HttpMethod... httpMethods) Add HTTP methods for requests the interceptor should be included in.Method parameters in org.springframework.web.servlet.config.annotation with type arguments of type HttpMethodModifier and TypeMethodDescriptionInterceptorRegistration.excludeHttpMethods(List<HttpMethod> httpMethods) List-based variant ofInterceptorRegistration.excludeHttpMethods(HttpMethod...).InterceptorRegistration.includeHttpMethods(List<HttpMethod> httpMethods) List-based variant ofInterceptorRegistration.includeHttpMethods(HttpMethod...). -
Uses of HttpMethod in org.springframework.web.servlet.function
Methods in org.springframework.web.servlet.function that return HttpMethodMethods in org.springframework.web.servlet.function with parameters of type HttpMethodModifier and TypeMethodDescriptionEntityResponse.Builder.allow(HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.ServerResponse.HeadersBuilder.allow(HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.static RequestPredicateRequestPredicates.method(HttpMethod httpMethod) Return aRequestPredicatethat matches if the request's HTTP method is equal to the given method.ServerRequest.Builder.method(HttpMethod method) Set the method of the request.static RequestPredicateRequestPredicates.methods(HttpMethod... httpMethods) Return aRequestPredicatethat matches if the request's HTTP method is equal to one the of the given methods.Method parameters in org.springframework.web.servlet.function with type arguments of type HttpMethodModifier and TypeMethodDescriptionEntityResponse.Builder.allow(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.ServerResponse.HeadersBuilder.allow(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.voidRequestPredicates.Visitor.method(Set<HttpMethod> methods) Receive notification of an HTTP method predicate. -
Uses of HttpMethod in org.springframework.web.servlet.handler
Constructors in org.springframework.web.servlet.handler with parameters of type HttpMethodModifierConstructorDescriptionMappedInterceptor(String @Nullable [] includePatterns, String @Nullable [] excludePatterns, HttpMethod @Nullable [] includeHttpMethods, HttpMethod @Nullable [] excludeHttpMethods, HandlerInterceptor interceptor, @Nullable PathPatternParser parser) Create an instance with the given include and exclude patterns and HTTP methods. -
Uses of HttpMethod in org.springframework.web.servlet.resource
Methods in org.springframework.web.servlet.resource that return HttpMethodModifier and TypeMethodDescriptionNoResourceFoundException.getHttpMethod()Return the HTTP method for the request.Constructors in org.springframework.web.servlet.resource with parameters of type HttpMethodModifierConstructorDescriptionNoResourceFoundException(HttpMethod httpMethod, String requestUri, String resourcePath) Create an instance. -
Uses of HttpMethod in org.springframework.web.socket.sockjs.support
Methods in org.springframework.web.socket.sockjs.support with parameters of type HttpMethodModifier and TypeMethodDescriptionprotected booleanAbstractSockJsService.checkOrigin(ServerHttpRequest request, ServerHttpResponse response, HttpMethod... httpMethods) protected voidAbstractSockJsService.sendMethodNotAllowed(ServerHttpResponse response, HttpMethod... httpMethods) -
Uses of HttpMethod in org.springframework.web.socket.sockjs.transport
Methods in org.springframework.web.socket.sockjs.transport that return HttpMethod
RequestEntity(Object, HttpHeaders, HttpMethod, URI, Type)