Uses of Class
org.springframework.http.HttpHeaders
Packages that use HttpHeaders 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 includingClientHttpRequest
andClientHttpResponse
as well as aClientHttpConnector
.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 aServerHttpRequest
andServerHttpResponse
along with anHttpHandler
for processing.org.springframework.mock.http Mock implementations of client/server-side HTTP abstractions.org.springframework.mock.http.client.reactive Mock implementations of reactive HTTP client contracts.org.springframework.mock.web A comprehensive set of Servlet API 4.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.response Contains built-inResponseCreator
implementations.org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient
.org.springframework.test.web.servlet.request Contains built-inRequestBuilder
implementations.org.springframework.test.web.servlet.result Contains built-inResultMatcher
andResultHandler
implementations.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.org.springframework.web.reactive.function.client Provides a reactiveWebClient
that builds on top of theorg.springframework.http.client.reactive
reactive HTTP adapter layer.org.springframework.web.reactive.function.client.support Classes supporting theorg.springframework.web.reactive.function.client
package.org.springframework.web.reactive.function.server Provides the types that make up Spring's functional web framework for Reactive environments.org.springframework.web.reactive.function.server.support Classes supporting theorg.springframework.web.reactive.function.server
package.org.springframework.web.reactive.resource Support classes for serving static resources.org.springframework.web.reactive.result.view Support for result handling through view resolution.org.springframework.web.reactive.socket Abstractions and support classes for reactive WebSocket interactions.org.springframework.web.reactive.socket.client Client support for WebSocket interactions.org.springframework.web.server Core interfaces and classes for Spring's generic, reactive web support.org.springframework.web.servlet Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.org.springframework.web.servlet.function Provides the types that make up Spring's functional web framework for Servlet environments.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.web.socket Common abstractions and Spring configuration support for WebSocket applications.org.springframework.web.socket.adapter.jetty Adapter classes for the Jetty WebSocket API.org.springframework.web.socket.adapter.standard Adapter classes for the standard Java WebSocket API.org.springframework.web.socket.client Client-side abstractions for WebSocket applications.org.springframework.web.socket.client.jetty Client-side support for the Jetty WebSocket API.org.springframework.web.socket.client.standard Client-side classes for use with standard Java WebSocket endpoints.org.springframework.web.socket.handler ConvenientWebSocketHandler
implementations and decorators.org.springframework.web.socket.sockjs.client SockJS client implementation ofWebSocketClient
.org.springframework.web.socket.sockjs.transport.session SockJS specific implementations ofWebSocketSession
.Uses of HttpHeaders in org.springframework.http
Fields in org.springframework.http declared as HttpHeaders Modifier and Type Field Description static HttpHeaders
HttpHeaders. EMPTY
An emptyHttpHeaders
instance (immutable).Methods in org.springframework.http that return HttpHeaders Modifier and Type Method Description HttpHeaders
HttpEntity. getHeaders()
Returns the headers of this entity.HttpHeaders
HttpMessage. getHeaders()
Return the headers of this message.static HttpHeaders
HttpHeaders. readOnlyHttpHeaders(HttpHeaders headers)
Apply a read-onlyHttpHeaders
wrapper around the given headers, if necessary.static HttpHeaders
HttpHeaders. writableHttpHeaders(HttpHeaders headers)
Remove any read-only wrapper that may have been previously applied around the given headers viareadOnlyHttpHeaders(HttpHeaders)
.Methods in org.springframework.http with parameters of type HttpHeaders Modifier and Type Method Description B
RequestEntity.HeadersBuilder. headers(HttpHeaders headers)
Copy the given headers into the entity's headers map.B
ResponseEntity.HeadersBuilder. headers(HttpHeaders headers)
Copy the given headers into the entity's headers map.static HttpHeaders
HttpHeaders. readOnlyHttpHeaders(HttpHeaders headers)
Apply a read-onlyHttpHeaders
wrapper around the given headers, if necessary.static HttpHeaders
HttpHeaders. writableHttpHeaders(HttpHeaders headers)
Remove any read-only wrapper that may have been previously applied around the given headers viareadOnlyHttpHeaders(HttpHeaders)
.Method parameters in org.springframework.http with type arguments of type HttpHeaders Modifier and Type Method Description B
RequestEntity.HeadersBuilder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this entity's headers with the given consumer.B
ResponseEntity.HeadersBuilder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this entity's headers with the given consumer.Uses of HttpHeaders in org.springframework.http.client
Methods in org.springframework.http.client that return HttpHeaders Modifier and Type Method Description HttpHeaders
AbstractClientHttpRequest. getHeaders()
Methods in org.springframework.http.client with parameters of type HttpHeaders Modifier and Type Method Description protected abstract ClientHttpResponse
AbstractClientHttpRequest. executeInternal(HttpHeaders headers)
Abstract template method that writes the given headers and content to the HTTP request.protected abstract OutputStream
AbstractClientHttpRequest. getBodyInternal(HttpHeaders headers)
Abstract template method that returns the body.Method parameters in org.springframework.http.client with type arguments of type HttpHeaders Modifier and Type Method Description MultipartBodyBuilder.PartBuilder
MultipartBodyBuilder.PartBuilder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate the part headers through the given consumer.Uses of HttpHeaders in org.springframework.http.client.reactive
Methods in org.springframework.http.client.reactive that return HttpHeaders Modifier and Type Method Description HttpHeaders
AbstractClientHttpRequest. getHeaders()
HttpHeaders
ClientHttpRequestDecorator. getHeaders()
HttpHeaders
ClientHttpResponseDecorator. getHeaders()
Constructors in org.springframework.http.client.reactive with parameters of type HttpHeaders Constructor Description AbstractClientHttpRequest(HttpHeaders headers)
Uses of HttpHeaders in org.springframework.http.client.support
Methods in org.springframework.http.client.support that return HttpHeaders Modifier and Type Method Description HttpHeaders
HttpRequestWrapper. getHeaders()
Return the headers of the wrapped request.Uses of HttpHeaders in org.springframework.http.codec.multipart
Methods in org.springframework.http.codec.multipart that return HttpHeaders Modifier and Type Method Description HttpHeaders
Part. headers()
Return the headers associated with the part.Uses of HttpHeaders in org.springframework.http.converter
Methods in org.springframework.http.converter with parameters of type HttpHeaders Modifier and Type Method Description protected void
AbstractHttpMessageConverter. addDefaultHeaders(HttpHeaders headers, T t, MediaType contentType)
Add default headers to the output message.protected void
StringHttpMessageConverter. addDefaultHeaders(HttpHeaders headers, String s, MediaType type)
Uses of HttpHeaders in org.springframework.http.converter.json
Methods in org.springframework.http.converter.json that return HttpHeaders Modifier and Type Method Description HttpHeaders
MappingJacksonInputMessage. getHeaders()
Constructors in org.springframework.http.converter.json with parameters of type HttpHeaders Constructor Description MappingJacksonInputMessage(InputStream body, HttpHeaders headers)
MappingJacksonInputMessage(InputStream body, HttpHeaders headers, Class<?> deserializationView)
Uses of HttpHeaders in org.springframework.http.converter.xml
Methods in org.springframework.http.converter.xml with parameters of type HttpHeaders Modifier and Type Method Description protected abstract T
AbstractXmlHttpMessageConverter. readFromSource(Class<? extends T> clazz, HttpHeaders headers, Source source)
Abstract template method called fromAbstractHttpMessageConverter.read(Class, HttpInputMessage)
.protected T
Jaxb2CollectionHttpMessageConverter. readFromSource(Class<? extends T> clazz, HttpHeaders headers, Source source)
protected Object
Jaxb2RootElementHttpMessageConverter. readFromSource(Class<?> clazz, HttpHeaders headers, Source source)
protected Object
MarshallingHttpMessageConverter. readFromSource(Class<?> clazz, HttpHeaders headers, Source source)
protected abstract void
AbstractXmlHttpMessageConverter. writeToResult(T t, HttpHeaders headers, Result result)
Abstract template method called fromAbstractXmlHttpMessageConverter.writeInternal(Object, HttpOutputMessage)
.protected void
Jaxb2CollectionHttpMessageConverter. writeToResult(T t, HttpHeaders headers, Result result)
protected void
Jaxb2RootElementHttpMessageConverter. writeToResult(Object o, HttpHeaders headers, Result result)
protected void
MarshallingHttpMessageConverter. writeToResult(Object o, HttpHeaders headers, Result result)
Uses of HttpHeaders in org.springframework.http.server
Methods in org.springframework.http.server that return HttpHeaders Modifier and Type Method Description HttpHeaders
ServletServerHttpRequest. getHeaders()
HttpHeaders
ServletServerHttpResponse. getHeaders()
Uses of HttpHeaders in org.springframework.http.server.reactive
Methods in org.springframework.http.server.reactive that return HttpHeaders Modifier and Type Method Description HttpHeaders
AbstractServerHttpRequest. getHeaders()
HttpHeaders
AbstractServerHttpResponse. getHeaders()
HttpHeaders
ServerHttpRequestDecorator. getHeaders()
HttpHeaders
ServerHttpResponseDecorator. getHeaders()
Method parameters in org.springframework.http.server.reactive with type arguments of type HttpHeaders Modifier and Type Method Description ServerHttpRequest.Builder
ServerHttpRequest.Builder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate request headers.Constructors in org.springframework.http.server.reactive with parameters of type HttpHeaders Constructor Description AbstractListenerServerHttpResponse(DataBufferFactory dataBufferFactory, HttpHeaders headers)
AbstractServerHttpRequest(URI uri, String contextPath, HttpHeaders headers)
Constructor with the URI and headers for the request.AbstractServerHttpResponse(DataBufferFactory dataBufferFactory, HttpHeaders headers)
Uses of HttpHeaders in org.springframework.mock.http
Methods in org.springframework.mock.http that return HttpHeaders Modifier and Type Method Description HttpHeaders
MockHttpInputMessage. getHeaders()
HttpHeaders
MockHttpOutputMessage. getHeaders()
Return the headers.Uses of HttpHeaders in org.springframework.mock.http.client.reactive
Methods in org.springframework.mock.http.client.reactive that return HttpHeaders Modifier and Type Method Description HttpHeaders
MockClientHttpResponse. getHeaders()
Uses of HttpHeaders in org.springframework.mock.web
Methods in org.springframework.mock.web that return HttpHeaders Modifier and Type Method Description HttpHeaders
MockPart. getHeaders()
Return theHttpHeaders
backing header related accessor methods, allowing for populating selected header entries.HttpHeaders
MockMultipartHttpServletRequest. getMultipartHeaders(String paramOrFileName)
HttpHeaders
MockMultipartHttpServletRequest. getRequestHeaders()
Uses of HttpHeaders in org.springframework.mock.web.reactive.function.server
Methods in org.springframework.mock.web.reactive.function.server with parameters of type HttpHeaders Modifier and Type Method Description MockServerRequest.Builder
MockServerRequest.Builder. headers(HttpHeaders headers)
Uses of HttpHeaders in org.springframework.test.web.client.response
Methods in org.springframework.test.web.client.response with parameters of type HttpHeaders Modifier and Type Method Description DefaultResponseCreator
DefaultResponseCreator. headers(HttpHeaders headers)
Copy all given headers.Uses of HttpHeaders in org.springframework.test.web.reactive.server
Methods in org.springframework.test.web.reactive.server that return HttpHeaders Modifier and Type Method Description HttpHeaders
ExchangeResult. getRequestHeaders()
Return the request headers sent to the server.HttpHeaders
ExchangeResult. getResponseHeaders()
Return the response headers received from the server.Method parameters in org.springframework.test.web.reactive.server with type arguments of type HttpHeaders Modifier and Type Method Description WebTestClient.Builder
WebTestClient.Builder. defaultHeaders(Consumer<HttpHeaders> headersConsumer)
Manipulate the default headers with the given consumer.S
WebTestClient.RequestHeadersSpec. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate the request's headers with the given consumer.Uses of HttpHeaders in org.springframework.test.web.servlet.request
Methods in org.springframework.test.web.servlet.request with parameters of type HttpHeaders Modifier and Type Method Description MockHttpServletRequestBuilder
MockHttpServletRequestBuilder. headers(HttpHeaders httpHeaders)
Add all headers to the request.Uses of HttpHeaders in org.springframework.test.web.servlet.result
Methods in org.springframework.test.web.servlet.result that return HttpHeaders Modifier and Type Method Description protected HttpHeaders
PrintingResultHandler. getRequestHeaders(MockHttpServletRequest request)
protected HttpHeaders
PrintingResultHandler. getResponseHeaders(MockHttpServletResponse response)
Uses of HttpHeaders in org.springframework.web.client
Methods in org.springframework.web.client that return HttpHeaders Modifier and Type Method Description HttpHeaders
RestClientResponseException. getResponseHeaders()
Return the HTTP response headers.HttpHeaders
UnknownContentTypeException. getResponseHeaders()
Return the HTTP response headers.HttpHeaders
RestOperations. headForHeaders(String url, Object... uriVariables)
Retrieve all headers of the resource specified by the URI template.HttpHeaders
RestOperations. headForHeaders(String url, Map<String,?> uriVariables)
Retrieve all headers of the resource specified by the URI template.HttpHeaders
RestOperations. headForHeaders(URI url)
Retrieve all headers of the resource specified by the URL.HttpHeaders
RestTemplate. headForHeaders(String url, Object... uriVariables)
HttpHeaders
RestTemplate. headForHeaders(String url, Map<String,?> uriVariables)
HttpHeaders
RestTemplate. headForHeaders(URI url)
Methods in org.springframework.web.client that return types with arguments of type HttpHeaders Modifier and Type Method Description protected ResponseExtractor<HttpHeaders>
AsyncRestTemplate. headersExtractor()
Deprecated.Returns a response extractor forHttpHeaders
.protected ResponseExtractor<HttpHeaders>
RestTemplate. headersExtractor()
Return a response extractor forHttpHeaders
.ListenableFuture<HttpHeaders>
AsyncRestOperations. headForHeaders(String url, Object... uriVariables)
Deprecated.Asynchronously retrieve all headers of the resource specified by the URI template.ListenableFuture<HttpHeaders>
AsyncRestOperations. headForHeaders(String url, Map<String,?> uriVariables)
Deprecated.Asynchronously retrieve all headers of the resource specified by the URI template.ListenableFuture<HttpHeaders>
AsyncRestOperations. headForHeaders(URI url)
Deprecated.Asynchronously retrieve all headers of the resource specified by the URL.ListenableFuture<HttpHeaders>
AsyncRestTemplate. headForHeaders(String url, Object... uriVariables)
Deprecated.ListenableFuture<HttpHeaders>
AsyncRestTemplate. headForHeaders(String url, Map<String,?> uriVariables)
Deprecated.ListenableFuture<HttpHeaders>
AsyncRestTemplate. headForHeaders(URI url)
Deprecated.Methods in org.springframework.web.client with parameters of type HttpHeaders Modifier and Type Method Description static HttpClientErrorException
HttpClientErrorException. create(String message, HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Variant ofHttpClientErrorException.create(HttpStatus, String, HttpHeaders, byte[], Charset)
with an optional prepared message.static HttpClientErrorException
HttpClientErrorException. create(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
CreateHttpClientErrorException
or an HTTP status specific sub-class.static HttpServerErrorException
HttpServerErrorException. create(String message, HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Variant ofHttpServerErrorException.create(String, HttpStatus, String, HttpHeaders, byte[], Charset)
with an optional prepared message.static HttpServerErrorException
HttpServerErrorException. create(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Create anHttpServerErrorException
or an HTTP status specific sub-class.Constructors in org.springframework.web.client with parameters of type HttpHeaders Constructor Description HttpClientErrorException(String message, HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset responseCharset)
Constructor with a status code and status text, headers, and content, and an prepared message.HttpClientErrorException(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset responseCharset)
Constructor with a status code and status text, headers, and content.HttpServerErrorException(String message, HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Constructor with a status code and status text, headers, content, and an prepared message.HttpServerErrorException(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Constructor with a status code and status text, headers, and content.HttpStatusCodeException(String message, HttpStatus statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset)
Construct instance with anHttpStatus
, status text, content, and a response charset.HttpStatusCodeException(HttpStatus statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset)
Construct instance with anHttpStatus
, status text, content, and a response charset.RestClientResponseException(String message, int statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset)
Construct a new instance of with the given response data.UnknownContentTypeException(Type targetType, MediaType contentType, int statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody)
Construct a new instance of with the given response data.UnknownHttpStatusCodeException(int rawStatusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset)
Construct a new instance ofHttpStatusCodeException
based on anHttpStatus
, status text, and response body content.UnknownHttpStatusCodeException(String message, int rawStatusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset)
Construct a new instance ofHttpStatusCodeException
based on anHttpStatus
, status text, and response body content.Uses of HttpHeaders in org.springframework.web.multipart
Methods in org.springframework.web.multipart that return HttpHeaders Modifier and Type Method Description HttpHeaders
MultipartHttpServletRequest. getMultipartHeaders(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.Uses of HttpHeaders in org.springframework.web.multipart.support
Methods in org.springframework.web.multipart.support that return HttpHeaders Modifier and Type Method Description HttpHeaders
RequestPartServletServerHttpRequest. getHeaders()
HttpHeaders
DefaultMultipartHttpServletRequest. getMultipartHeaders(String paramOrFileName)
HttpHeaders
StandardMultipartHttpServletRequest. getMultipartHeaders(String paramOrFileName)
HttpHeaders
AbstractMultipartHttpServletRequest. getRequestHeaders()
Uses of HttpHeaders in org.springframework.web.reactive.function.client
Methods in org.springframework.web.reactive.function.client that return HttpHeaders Modifier and Type Method Description HttpHeaders
ClientResponse.Headers. asHttpHeaders()
Return the headers as anHttpHeaders
instance.HttpHeaders
WebClientResponseException. getHeaders()
Return the HTTP response headers.HttpHeaders
ClientRequest. headers()
Return the headers of this request.Methods in org.springframework.web.reactive.function.client with parameters of type HttpHeaders Modifier and Type Method Description static WebClientResponseException
WebClientResponseException. create(int statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
CreateWebClientResponseException
or an HTTP status specific subclass.static WebClientResponseException
WebClientResponseException. create(int statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request)
CreateWebClientResponseException
or an HTTP status specific subclass.Method parameters in org.springframework.web.reactive.function.client with type arguments of type HttpHeaders Modifier and Type Method Description WebClient.Builder
WebClient.Builder. defaultHeaders(Consumer<HttpHeaders> headersConsumer)
Provides access to everyWebClient.Builder.defaultHeader(String, String...)
declared so far with the possibility to add, replace, or remove.ClientRequest.Builder
ClientRequest.Builder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this request's headers with the given consumer.ClientResponse.Builder
ClientResponse.Builder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this response's headers with the given consumer.S
WebClient.RequestHeadersSpec. headers(Consumer<HttpHeaders> headersConsumer)
Provides access to every header declared so far with the possibility to add, replace, or remove values.Constructors in org.springframework.web.reactive.function.client with parameters of type HttpHeaders Constructor Description UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset)
Create a new instance of theUnknownHttpStatusCodeException
with the given parameters.UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request)
Create a new instance of theUnknownHttpStatusCodeException
with the given parameters.WebClientResponseException(int statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset)
Constructor with response data only, and a default message.WebClientResponseException(int status, String reasonPhrase, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request)
Constructor with response data only, and a default message.WebClientResponseException(String message, int statusCode, String statusText, HttpHeaders headers, byte[] responseBody, Charset charset)
Constructor with a prepared message.WebClientResponseException(String message, int statusCode, String statusText, HttpHeaders headers, byte[] responseBody, Charset charset, HttpRequest request)
Constructor with a prepared message.Uses of HttpHeaders in org.springframework.web.reactive.function.client.support
Methods in org.springframework.web.reactive.function.client.support that return HttpHeaders Modifier and Type Method Description HttpHeaders
ClientResponseWrapper.HeadersWrapper. asHttpHeaders()
Uses of HttpHeaders in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server that return HttpHeaders Modifier and Type Method Description HttpHeaders
ServerRequest.Headers. asHttpHeaders()
Get the headers as an instance ofHttpHeaders
.HttpHeaders
ServerResponse. headers()
Return the headers of this response.Methods in org.springframework.web.reactive.function.server with parameters of type HttpHeaders Modifier and Type Method Description EntityResponse.Builder<T>
EntityResponse.Builder. headers(HttpHeaders headers)
Copy the given headers into the entity's headers map.RenderingResponse.Builder
RenderingResponse.Builder. headers(HttpHeaders headers)
Copy the given headers into the entity's headers map.Method parameters in org.springframework.web.reactive.function.server with type arguments of type HttpHeaders Modifier and Type Method Description ServerRequest.Builder
ServerRequest.Builder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this request's headers with the given consumer.B
ServerResponse.HeadersBuilder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this response's headers with the given consumer.Uses of HttpHeaders in org.springframework.web.reactive.function.server.support
Methods in org.springframework.web.reactive.function.server.support that return HttpHeaders Modifier and Type Method Description HttpHeaders
ServerRequestWrapper.HeadersWrapper. asHttpHeaders()
Uses of HttpHeaders in org.springframework.web.reactive.resource
Methods in org.springframework.web.reactive.resource that return HttpHeaders Modifier and Type Method Description HttpHeaders
HttpResource. getResponseHeaders()
The HTTP headers to be contributed to the HTTP response that serves the current resource.Uses of HttpHeaders in org.springframework.web.reactive.result.view
Methods in org.springframework.web.reactive.result.view that return HttpHeaders Modifier and Type Method Description HttpHeaders
Rendering. headers()
Return headers to add to the response.Methods in org.springframework.web.reactive.result.view with parameters of type HttpHeaders Modifier and Type Method Description B
Rendering.Builder. headers(HttpHeaders headers)
Specify headers to add to the response.Uses of HttpHeaders in org.springframework.web.reactive.socket
Methods in org.springframework.web.reactive.socket that return HttpHeaders Modifier and Type Method Description HttpHeaders
HandshakeInfo. getHeaders()
Return the handshake HTTP headers.Constructors in org.springframework.web.reactive.socket with parameters of type HttpHeaders Constructor Description HandshakeInfo(URI uri, HttpHeaders headers, reactor.core.publisher.Mono<Principal> principal, String protocol)
Constructor with basic information about the handshake.HandshakeInfo(URI uri, HttpHeaders headers, reactor.core.publisher.Mono<Principal> principal, String protocol, InetSocketAddress remoteAddress, Map<String,Object> attributes, String logPrefix)
Constructor targetting server-side use with extra information about the handshake, the remote address, and a pre-existing log prefix for correlation.Uses of HttpHeaders in org.springframework.web.reactive.socket.client
Methods in org.springframework.web.reactive.socket.client with parameters of type HttpHeaders Modifier and Type Method Description reactor.core.publisher.Mono<Void>
JettyWebSocketClient. execute(URI url, HttpHeaders headers, WebSocketHandler handler)
reactor.core.publisher.Mono<Void>
ReactorNettyWebSocketClient. execute(URI url, HttpHeaders requestHeaders, WebSocketHandler handler)
reactor.core.publisher.Mono<Void>
StandardWebSocketClient. execute(URI url, HttpHeaders headers, WebSocketHandler handler)
reactor.core.publisher.Mono<Void>
UndertowWebSocketClient. execute(URI url, HttpHeaders headers, WebSocketHandler handler)
reactor.core.publisher.Mono<Void>
WebSocketClient. execute(URI url, HttpHeaders headers, WebSocketHandler handler)
A variant ofWebSocketClient.execute(URI, WebSocketHandler)
with custom headers.Uses of HttpHeaders in org.springframework.web.server
Methods in org.springframework.web.server that return HttpHeaders Modifier and Type Method Description HttpHeaders
MethodNotAllowedException. getResponseHeaders()
Return HttpHeaders with an "Allow" header.HttpHeaders
NotAcceptableStatusException. getResponseHeaders()
Return HttpHeaders with an "Accept" header, or an empty instance.HttpHeaders
ResponseStatusException. getResponseHeaders()
Return headers associated with the exception that should be added to the error response, e.g.Uses of HttpHeaders in org.springframework.web.servlet
Methods in org.springframework.web.servlet that return HttpHeaders Modifier and Type Method Description HttpHeaders
NoHandlerFoundException. getHeaders()
Constructors in org.springframework.web.servlet with parameters of type HttpHeaders Constructor Description NoHandlerFoundException(String httpMethod, String requestURL, HttpHeaders headers)
Constructor for NoHandlerFoundException.Uses of HttpHeaders in org.springframework.web.servlet.function
Methods in org.springframework.web.servlet.function that return HttpHeaders Modifier and Type Method Description HttpHeaders
ServerRequest.Headers. asHttpHeaders()
Get the headers as an instance ofHttpHeaders
.HttpHeaders
ServerResponse. headers()
Return the headers of this response.Method parameters in org.springframework.web.servlet.function with type arguments of type HttpHeaders Modifier and Type Method Description EntityResponse.Builder<T>
EntityResponse.Builder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this response's headers with the given consumer.RenderingResponse.Builder
RenderingResponse.Builder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this response's headers with the given consumer.ServerRequest.Builder
ServerRequest.Builder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this request's headers with the given consumer.B
ServerResponse.HeadersBuilder. headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this response's headers with the given consumer.Uses of HttpHeaders in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type HttpHeaders Modifier and Type Method Description protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleAsyncRequestTimeoutException(AsyncRequestTimeoutException ex, HttpHeaders headers, HttpStatus status, WebRequest webRequest)
Customize the response for AsyncRequestTimeoutException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleBindException(BindException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for BindException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleConversionNotSupported(ConversionNotSupportedException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for ConversionNotSupportedException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleExceptionInternal(Exception ex, Object body, HttpHeaders headers, HttpStatus status, WebRequest request)
A single place to customize the response body of all exception types.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpMediaTypeNotAcceptableException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpMediaTypeNotSupportedException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpMessageNotReadableException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpMessageNotWritableException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for HttpRequestMethodNotSupportedException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for MethodArgumentNotValidException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleMissingPathVariable(MissingPathVariableException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for MissingPathVariableException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleMissingServletRequestParameter(MissingServletRequestParameterException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for MissingServletRequestParameterException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleMissingServletRequestPart(MissingServletRequestPartException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for MissingServletRequestPartException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleNoHandlerFoundException(NoHandlerFoundException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for NoHandlerFoundException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleServletRequestBindingException(ServletRequestBindingException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for ServletRequestBindingException.protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleTypeMismatch(TypeMismatchException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for TypeMismatchException.Uses of HttpHeaders in org.springframework.web.servlet.resource
Methods in org.springframework.web.servlet.resource that return HttpHeaders Modifier and Type Method Description HttpHeaders
HttpResource. getResponseHeaders()
The HTTP headers to be contributed to the HTTP response that serves the current resource.Uses of HttpHeaders in org.springframework.web.socket
Subclasses of HttpHeaders in org.springframework.web.socket Modifier and Type Class Description class
WebSocketHttpHeaders
AnHttpHeaders
variant that adds support for the HTTP headers defined by the WebSocket specification RFC 6455.Methods in org.springframework.web.socket that return HttpHeaders Modifier and Type Method Description HttpHeaders
WebSocketSession. getHandshakeHeaders()
Return the headers used in the handshake request (nevernull
).Constructors in org.springframework.web.socket with parameters of type HttpHeaders Constructor Description WebSocketHttpHeaders(HttpHeaders headers)
Create an instance that wraps the given pre-existing HttpHeaders and also propagate all changes to it.Uses of HttpHeaders in org.springframework.web.socket.adapter.jetty
Methods in org.springframework.web.socket.adapter.jetty that return HttpHeaders Modifier and Type Method Description HttpHeaders
JettyWebSocketSession. getHandshakeHeaders()
Uses of HttpHeaders in org.springframework.web.socket.adapter.standard
Methods in org.springframework.web.socket.adapter.standard that return HttpHeaders Modifier and Type Method Description HttpHeaders
StandardWebSocketSession. getHandshakeHeaders()
Constructors in org.springframework.web.socket.adapter.standard with parameters of type HttpHeaders Constructor Description StandardWebSocketSession(HttpHeaders headers, Map<String,Object> attributes, InetSocketAddress localAddress, InetSocketAddress remoteAddress)
Constructor for a standard WebSocket session.StandardWebSocketSession(HttpHeaders headers, Map<String,Object> attributes, InetSocketAddress localAddress, InetSocketAddress remoteAddress, Principal user)
Constructor that associates a user with the WebSocket session.Uses of HttpHeaders in org.springframework.web.socket.client
Methods in org.springframework.web.socket.client that return HttpHeaders Modifier and Type Method Description HttpHeaders
WebSocketConnectionManager. getHeaders()
Return the default headers for the WebSocket handshake request.Methods in org.springframework.web.socket.client with parameters of type HttpHeaders Modifier and Type Method Description protected abstract ListenableFuture<WebSocketSession>
AbstractWebSocketClient. doHandshakeInternal(WebSocketHandler webSocketHandler, HttpHeaders headers, URI uri, List<String> subProtocols, List<WebSocketExtension> extensions, Map<String,Object> attributes)
Perform the actual handshake to establish a connection to the server.void
WebSocketConnectionManager. setHeaders(HttpHeaders headers)
Provide default headers to add to the WebSocket handshake request.Uses of HttpHeaders in org.springframework.web.socket.client.jetty
Methods in org.springframework.web.socket.client.jetty with parameters of type HttpHeaders Modifier and Type Method Description ListenableFuture<WebSocketSession>
JettyWebSocketClient. doHandshakeInternal(WebSocketHandler wsHandler, HttpHeaders headers, URI uri, List<String> protocols, List<WebSocketExtension> extensions, Map<String,Object> attributes)
Uses of HttpHeaders in org.springframework.web.socket.client.standard
Methods in org.springframework.web.socket.client.standard with parameters of type HttpHeaders Modifier and Type Method Description protected ListenableFuture<WebSocketSession>
StandardWebSocketClient. doHandshakeInternal(WebSocketHandler webSocketHandler, HttpHeaders headers, URI uri, List<String> protocols, List<WebSocketExtension> extensions, Map<String,Object> attributes)
Uses of HttpHeaders in org.springframework.web.socket.handler
Methods in org.springframework.web.socket.handler that return HttpHeaders Modifier and Type Method Description HttpHeaders
WebSocketSessionDecorator. getHandshakeHeaders()
Uses of HttpHeaders in org.springframework.web.socket.sockjs.client
Methods in org.springframework.web.socket.sockjs.client that return HttpHeaders Modifier and Type Method Description HttpHeaders
AbstractClientSockJsSession. getHandshakeHeaders()
HttpHeaders
TransportRequest. getHandshakeHeaders()
Return the headers to send with the connect request.HttpHeaders
XhrClientSockJsSession. getHeaders()
HttpHeaders
TransportRequest. getHttpRequestHeaders()
Return the headers to add to all other HTTP requests besides the handshake request such as XHR receive and send requests.Methods in org.springframework.web.socket.sockjs.client with parameters of type HttpHeaders Modifier and Type Method Description protected abstract void
AbstractXhrTransport. connectInternal(TransportRequest request, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, SettableListenableFuture<WebSocketSession> connectFuture)
protected void
JettyXhrTransport. connectInternal(TransportRequest transportRequest, WebSocketHandler handler, URI url, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, SettableListenableFuture<WebSocketSession> connectFuture)
protected void
RestTemplateXhrTransport. connectInternal(TransportRequest transportRequest, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, SettableListenableFuture<WebSocketSession> connectFuture)
protected void
UndertowXhrTransport. connectInternal(TransportRequest request, WebSocketHandler handler, URI receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, SettableListenableFuture<WebSocketSession> connectFuture)
String
AbstractXhrTransport. executeInfoRequest(URI infoUrl, HttpHeaders headers)
String
InfoReceiver. executeInfoRequest(URI infoUrl, HttpHeaders headers)
Perform an HTTP request to the SockJS "Info" URL.protected abstract ResponseEntity<String>
AbstractXhrTransport. executeInfoRequestInternal(URI infoUrl, HttpHeaders headers)
protected ResponseEntity<String>
JettyXhrTransport. executeInfoRequestInternal(URI infoUrl, HttpHeaders headers)
protected ResponseEntity<String>
RestTemplateXhrTransport. executeInfoRequestInternal(URI infoUrl, HttpHeaders headers)
protected ResponseEntity<String>
UndertowXhrTransport. executeInfoRequestInternal(URI infoUrl, HttpHeaders headers)
protected ResponseEntity<String>
JettyXhrTransport. executeRequest(URI url, org.eclipse.jetty.http.HttpMethod method, HttpHeaders headers, String body)
protected ResponseEntity<String>
UndertowXhrTransport. executeRequest(URI url, io.undertow.util.HttpString method, HttpHeaders headers, String body)
void
AbstractXhrTransport. executeSendRequest(URI url, HttpHeaders headers, TextMessage message)
void
XhrTransport. executeSendRequest(URI transportUrl, HttpHeaders headers, TextMessage message)
Execute a request to send the message to the server.protected abstract ResponseEntity<String>
AbstractXhrTransport. executeSendRequestInternal(URI url, HttpHeaders headers, TextMessage message)
ResponseEntity<String>
JettyXhrTransport. executeSendRequestInternal(URI url, HttpHeaders headers, TextMessage message)
ResponseEntity<String>
RestTemplateXhrTransport. executeSendRequestInternal(URI url, HttpHeaders headers, TextMessage message)
protected ResponseEntity<String>
UndertowXhrTransport. executeSendRequestInternal(URI url, HttpHeaders headers, TextMessage message)
Uses of HttpHeaders in org.springframework.web.socket.sockjs.transport.session
Methods in org.springframework.web.socket.sockjs.transport.session that return HttpHeaders Modifier and Type Method Description HttpHeaders
AbstractHttpSockJsSession. getHandshakeHeaders()
HttpHeaders
WebSocketServerSockJsSession. getHandshakeHeaders()