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.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.mock.http.client |
Mock implementations of client-side HTTP abstractions.
|
org.springframework.mock.web |
A comprehensive set of Servlet API 2.5 mock objects,
targeted at usage with Spring's web MVC 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.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.multipart |
Multipart resolution framework for handling file uploads.
|
org.springframework.web.multipart.support |
Support classes for the multipart resolution framework.
|
Modifier and Type | Method and Description |
---|---|
HttpMethod |
HttpRequest.getMethod()
Return the HTTP method of the request.
|
static HttpMethod |
HttpMethod.valueOf(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 |
---|---|
Set<HttpMethod> |
HttpHeaders.getAllow()
Return the set of allowed
HTTP methods , as specified by the Allow header. |
Modifier and Type | Method and Description |
---|---|
void |
HttpHeaders.setAllow(Set<HttpMethod> allowedMethods)
Set the set of allowed
HTTP methods , as specified by the Allow header. |
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.httpclient.HttpMethodBase |
CommonsClientHttpRequestFactory.createCommonsHttpMethod(HttpMethod httpMethod,
String uri)
Deprecated.
Create a Commons HttpMethodBase object for the given HTTP method
and URI specification.
|
protected org.apache.http.protocol.HttpContext |
HttpComponentsClientHttpRequestFactory.createHttpContext(HttpMethod httpMethod,
URI uri)
Template methods that creates a
HttpContext for the given HTTP method and URI. |
protected org.apache.http.client.methods.HttpUriRequest |
HttpComponentsClientHttpRequestFactory.createHttpUriRequest(HttpMethod httpMethod,
URI uri)
Create a Commons HttpMethodBase object for the given HTTP method and URI specification.
|
ClientHttpRequest |
ClientHttpRequestFactory.createRequest(URI uri,
HttpMethod httpMethod)
Create a new
ClientHttpRequest for the specified URI and HTTP method. |
ClientHttpRequest |
HttpComponentsClientHttpRequestFactory.createRequest(URI uri,
HttpMethod httpMethod) |
ClientHttpRequest |
CommonsClientHttpRequestFactory.createRequest(URI uri,
HttpMethod httpMethod)
Deprecated.
|
ClientHttpRequest |
SimpleClientHttpRequestFactory.createRequest(URI uri,
HttpMethod httpMethod) |
ClientHttpRequest |
AbstractClientHttpRequestFactoryWrapper.createRequest(URI uri,
HttpMethod httpMethod)
This implementation simply calls
AbstractClientHttpRequestFactoryWrapper.createRequest(URI, HttpMethod, ClientHttpRequestFactory)
with the wrapped request factory provided to the
constructor. |
protected ClientHttpRequest |
InterceptingClientHttpRequestFactory.createRequest(URI uri,
HttpMethod httpMethod,
ClientHttpRequestFactory requestFactory) |
protected ClientHttpRequest |
BufferingClientHttpRequestFactory.createRequest(URI uri,
HttpMethod httpMethod,
ClientHttpRequestFactory requestFactory) |
protected abstract ClientHttpRequest |
AbstractClientHttpRequestFactoryWrapper.createRequest(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 boolean |
BufferingClientHttpRequestFactory.shouldBuffer(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 |
HttpRequestWrapper.getMethod()
Returns the method of the wrapped request.
|
Modifier and Type | Method and Description |
---|---|
protected ClientHttpRequest |
HttpAccessor.createRequest(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 |
MockClientHttpRequest.getMethod() |
Modifier and Type | Method and Description |
---|---|
void |
MockClientHttpRequest.setMethod(HttpMethod httpMethod) |
Constructor and Description |
---|
MockClientHttpRequest(HttpMethod httpMethod,
URI uri)
Create an instance with the given HttpMethod and URI.
|
Modifier and Type | Method and Description |
---|---|
HttpMethod |
MockMultipartHttpServletRequest.getRequestMethod() |
Modifier and Type | Method and Description |
---|---|
ClientHttpRequest |
MockMvcClientHttpRequestFactory.createRequest(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 |
---|---|
static MockHttpServletRequestBuilder |
MockMvcRequestBuilders.request(HttpMethod httpMethod,
String urlTemplate,
Object... urlVariables)
Create a
MockHttpServletRequestBuilder for a request with the given HTTP method. |
Modifier and Type | Method and Description |
---|---|
Set<HttpMethod> |
HttpRequestMethodNotSupportedException.getSupportedHttpMethods()
Return the actually supported HTTP methods, if known, as
HttpMethod instances. |
Modifier and Type | Method and Description |
---|---|
Set<HttpMethod> |
RestOperations.optionsForAllow(String url,
Map<String,?> uriVariables)
Return the value of the Allow header for the given URI.
|
Set<HttpMethod> |
RestTemplate.optionsForAllow(String url,
Map<String,?> urlVariables) |
Set<HttpMethod> |
RestOperations.optionsForAllow(String url,
Object... uriVariables)
Return the value of the Allow header for the given URI.
|
Set<HttpMethod> |
RestTemplate.optionsForAllow(String url,
Object... urlVariables) |
Set<HttpMethod> |
RestOperations.optionsForAllow(URI url)
Return the value of the Allow header for the given URL.
|
Set<HttpMethod> |
RestTemplate.optionsForAllow(URI url) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
RestTemplate.doExecute(URI url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor)
Execute the given method on the provided URI.
|
<T> ResponseEntity<T> |
RestOperations.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType,
Map<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(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables) |
<T> ResponseEntity<T> |
RestOperations.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType,
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(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables) |
<T> ResponseEntity<T> |
RestOperations.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
Map<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(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
Map<String,?> uriVariables) |
<T> ResponseEntity<T> |
RestOperations.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
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(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
Object... uriVariables) |
<T> ResponseEntity<T> |
RestOperations.exchange(URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
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(URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType) |
<T> ResponseEntity<T> |
RestOperations.exchange(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(URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType) |
<T> T |
RestOperations.execute(String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
Map<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(String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
Map<String,?> urlVariables) |
<T> T |
RestOperations.execute(String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
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(String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
Object... urlVariables) |
<T> T |
RestOperations.execute(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(URI url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor) |
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() |
Copyright © 2015. All rights reserved.