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.codec.multipart |
Multipart support.
|
org.springframework.http.converter |
Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.
|
org.springframework.http.converter.json |
Provides HttpMessageConverter implementations for handling JSON.
|
org.springframework.http.converter.xml |
Provides HttpMessageConverter implementations for handling XML.
|
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.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 | Field and Description |
---|---|
static HttpHeaders |
HttpHeaders.EMPTY
The empty
HttpHeaders instance (immutable). |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpMessage.getHeaders()
Return the headers of this message.
|
HttpHeaders |
HttpEntity.getHeaders()
Returns the headers of this entity.
|
static HttpHeaders |
HttpHeaders.readOnlyHttpHeaders(HttpHeaders headers)
Return a
HttpHeaders object that can only be read, not written to. |
Modifier and Type | Method and Description |
---|---|
B |
ResponseEntity.HeadersBuilder.headers(HttpHeaders headers)
Copy the given headers into the entity's headers map.
|
static HttpHeaders |
HttpHeaders.readOnlyHttpHeaders(HttpHeaders headers)
Return a
HttpHeaders object that can only be read, not written to. |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
AbstractClientHttpRequest.getHeaders() |
Modifier and Type | Method and Description |
---|---|
protected abstract ClientHttpResponse |
AbstractClientHttpRequest.executeInternal(HttpHeaders headers)
Abstract template method that writes the given headers and content to the HTTP request.
|
protected abstract java.io.OutputStream |
AbstractClientHttpRequest.getBodyInternal(HttpHeaders headers)
Abstract template method that returns the body.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
ClientHttpResponseDecorator.getHeaders() |
HttpHeaders |
AbstractClientHttpRequest.getHeaders() |
HttpHeaders |
ClientHttpRequestDecorator.getHeaders() |
Constructor and Description |
---|
AbstractClientHttpRequest(HttpHeaders headers) |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpRequestWrapper.getHeaders()
Return the headers of the wrapped request.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
Part.headers()
Return the headers associated with the part.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractHttpMessageConverter.addDefaultHeaders(HttpHeaders headers,
T t,
MediaType contentType)
Add default headers to the output message.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
MappingJacksonInputMessage.getHeaders() |
Constructor and Description |
---|
MappingJacksonInputMessage(java.io.InputStream body,
HttpHeaders headers) |
MappingJacksonInputMessage(java.io.InputStream body,
HttpHeaders headers,
java.lang.Class<?> deserializationView) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
MarshallingHttpMessageConverter.readFromSource(java.lang.Class<?> clazz,
HttpHeaders headers,
javax.xml.transform.Source source) |
protected java.lang.Object |
Jaxb2RootElementHttpMessageConverter.readFromSource(java.lang.Class<?> clazz,
HttpHeaders headers,
javax.xml.transform.Source source) |
protected abstract T |
AbstractXmlHttpMessageConverter.readFromSource(java.lang.Class<? extends T> clazz,
HttpHeaders headers,
javax.xml.transform.Source source)
Abstract template method called from
AbstractHttpMessageConverter.read(Class, HttpInputMessage) . |
protected T |
Jaxb2CollectionHttpMessageConverter.readFromSource(java.lang.Class<? extends T> clazz,
HttpHeaders headers,
javax.xml.transform.Source source) |
protected void |
MarshallingHttpMessageConverter.writeToResult(java.lang.Object o,
HttpHeaders headers,
javax.xml.transform.Result result) |
protected void |
Jaxb2RootElementHttpMessageConverter.writeToResult(java.lang.Object o,
HttpHeaders headers,
javax.xml.transform.Result result) |
protected abstract void |
AbstractXmlHttpMessageConverter.writeToResult(T t,
HttpHeaders headers,
javax.xml.transform.Result result)
Abstract template method called from
AbstractXmlHttpMessageConverter.writeInternal(Object, HttpOutputMessage) . |
protected void |
Jaxb2CollectionHttpMessageConverter.writeToResult(T t,
HttpHeaders headers,
javax.xml.transform.Result result) |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
ServletServerHttpRequest.getHeaders() |
HttpHeaders |
ServletServerHttpResponse.getHeaders() |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
ServerHttpRequestDecorator.getHeaders() |
HttpHeaders |
AbstractServerHttpRequest.getHeaders() |
HttpHeaders |
ServerHttpResponseDecorator.getHeaders() |
HttpHeaders |
AbstractServerHttpResponse.getHeaders() |
Modifier and Type | Method and Description |
---|---|
ServerHttpRequest.Builder |
ServerHttpRequest.Builder.headers(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate this request's headers with the given consumer.
|
Constructor and Description |
---|
AbstractServerHttpRequest(java.net.URI uri,
java.lang.String contextPath,
HttpHeaders headers)
Constructor with the URI and headers for the request.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
RestClientResponseException.getResponseHeaders()
Return the HTTP response headers.
|
HttpHeaders |
RestOperations.headForHeaders(java.lang.String url,
java.util.Map<java.lang.String,?> uriVariables)
Retrieve all headers of the resource specified by the URI template.
|
HttpHeaders |
RestTemplate.headForHeaders(java.lang.String url,
java.util.Map<java.lang.String,?> uriVariables) |
HttpHeaders |
RestOperations.headForHeaders(java.lang.String url,
java.lang.Object... uriVariables)
Retrieve all headers of the resource specified by the URI template.
|
HttpHeaders |
RestTemplate.headForHeaders(java.lang.String url,
java.lang.Object... uriVariables) |
HttpHeaders |
RestOperations.headForHeaders(java.net.URI url)
Retrieve all headers of the resource specified by the URL.
|
HttpHeaders |
RestTemplate.headForHeaders(java.net.URI url) |
Modifier and Type | Method and Description |
---|---|
protected ResponseExtractor<HttpHeaders> |
RestTemplate.headersExtractor()
Returns a response extractor for
HttpHeaders . |
protected ResponseExtractor<HttpHeaders> |
AsyncRestTemplate.headersExtractor()
Deprecated.
Returns a response extractor for
HttpHeaders . |
org.springframework.util.concurrent.ListenableFuture<HttpHeaders> |
AsyncRestTemplate.headForHeaders(java.lang.String url,
java.util.Map<java.lang.String,?> uriVariables)
Deprecated.
|
org.springframework.util.concurrent.ListenableFuture<HttpHeaders> |
AsyncRestOperations.headForHeaders(java.lang.String url,
java.util.Map<java.lang.String,?> uriVariables)
Deprecated.
Asynchronously retrieve all headers of the resource specified by the URI template.
|
org.springframework.util.concurrent.ListenableFuture<HttpHeaders> |
AsyncRestTemplate.headForHeaders(java.lang.String url,
java.lang.Object... uriVariables)
Deprecated.
|
org.springframework.util.concurrent.ListenableFuture<HttpHeaders> |
AsyncRestOperations.headForHeaders(java.lang.String url,
java.lang.Object... uriVariables)
Deprecated.
Asynchronously retrieve all headers of the resource specified by the URI template.
|
org.springframework.util.concurrent.ListenableFuture<HttpHeaders> |
AsyncRestTemplate.headForHeaders(java.net.URI url)
Deprecated.
|
org.springframework.util.concurrent.ListenableFuture<HttpHeaders> |
AsyncRestOperations.headForHeaders(java.net.URI url)
Deprecated.
Asynchronously retrieve all headers of the resource specified by the URL.
|
Constructor and Description |
---|
HttpClientErrorException(HttpStatus statusCode,
java.lang.String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
Construct a new instance of
HttpClientErrorException based on
an HttpStatus , status text, and response body content. |
HttpServerErrorException(HttpStatus statusCode,
java.lang.String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
Construct a new instance of
HttpServerErrorException based on
an HttpStatus , status text, and response body content. |
HttpStatusCodeException(HttpStatus statusCode,
java.lang.String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
Construct instance with an
HttpStatus , status text, content, and
a response charset. |
RestClientResponseException(java.lang.String message,
int statusCode,
java.lang.String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
Construct a new instance of with the given response data.
|
UnknownHttpStatusCodeException(int rawStatusCode,
java.lang.String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
Construct a new instance of
HttpStatusCodeException based on an
HttpStatus , status text, and response body content. |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
MultipartHttpServletRequest.getMultipartHeaders(java.lang.String paramOrFileName)
Return the headers associated with the specified part of the multipart request.
|
HttpHeaders |
MultipartHttpServletRequest.getRequestHeaders()
Return this request's headers as a convenient HttpHeaders instance.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
RequestPartServletServerHttpRequest.getHeaders() |
HttpHeaders |
DefaultMultipartHttpServletRequest.getMultipartHeaders(java.lang.String paramOrFileName) |
HttpHeaders |
StandardMultipartHttpServletRequest.getMultipartHeaders(java.lang.String paramOrFileName) |
HttpHeaders |
AbstractMultipartHttpServletRequest.getRequestHeaders() |