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.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 3.0 mock objects,
targeted at usage with Spring's Web MVC framework.
|
org.springframework.mock.web.reactive.function.server |
Mock objects for the functional web framework.
|
org.springframework.test.web.client.response |
Contains built-in
ResponseCreator
implementations. |
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
org.springframework.test.web.servlet.request |
Contains built-in
RequestBuilder
implementations. |
org.springframework.test.web.servlet.result |
Contains built-in
ResultMatcher and ResultHandler 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 reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer. |
org.springframework.web.reactive.function.client.support |
Classes supporting the
org.springframework.web.reactive.function.client package. |
org.springframework.web.reactive.function.server |
Provides the types that make up Spring's functional web framework.
|
org.springframework.web.reactive.function.server.support |
Classes supporting the
org.springframework.web.reactive.function.server package. |
org.springframework.web.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.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.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.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 |
Convenient
WebSocketHandler
implementations and decorators. |
org.springframework.web.socket.sockjs.client |
SockJS client implementation of
WebSocketClient . |
org.springframework.web.socket.sockjs.transport.session |
SockJS specific implementations of
WebSocketSession . |
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 |
---|---|
MultipartBodyBuilder.PartBuilder |
MultipartBodyBuilder.PartBuilder.headers(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate the part headers through the given consumer.
|
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 request headers.
|
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 |
MockHttpInputMessage.getHeaders() |
HttpHeaders |
MockHttpOutputMessage.getHeaders()
Return the headers.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
MockClientHttpResponse.getHeaders() |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
MockPart.getHeaders()
Return the
HttpHeaders backing header related accessor methods,
allowing for populating selected header entries. |
HttpHeaders |
MockMultipartHttpServletRequest.getMultipartHeaders(java.lang.String paramOrFileName) |
HttpHeaders |
MockMultipartHttpServletRequest.getRequestHeaders() |
Modifier and Type | Method and Description |
---|---|
MockServerRequest.Builder |
MockServerRequest.Builder.headers(HttpHeaders headers) |
Modifier and Type | Method and Description |
---|---|
DefaultResponseCreator |
DefaultResponseCreator.headers(HttpHeaders headers)
Copy all given headers.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
ExchangeResult.getRequestHeaders()
Return the request headers sent to the server.
|
HttpHeaders |
ExchangeResult.getResponseHeaders()
Return the response headers received from the server.
|
Modifier and Type | Method and Description |
---|---|
WebTestClient.Builder |
WebTestClient.Builder.defaultHeaders(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate the default headers with the given consumer.
|
S |
WebTestClient.RequestHeadersSpec.headers(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate the request's headers with the given consumer.
|
Modifier and Type | Method and Description |
---|---|
MockHttpServletRequestBuilder |
MockHttpServletRequestBuilder.headers(HttpHeaders httpHeaders)
Add all headers to the request.
|
Modifier and Type | Method and Description |
---|---|
protected HttpHeaders |
PrintingResultHandler.getRequestHeaders(MockHttpServletRequest request) |
protected HttpHeaders |
PrintingResultHandler.getResponseHeaders(MockHttpServletResponse response) |
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()
Return a response extractor for
HttpHeaders . |
protected ResponseExtractor<HttpHeaders> |
AsyncRestTemplate.headersExtractor()
Deprecated.
Returns a response extractor for
HttpHeaders . |
ListenableFuture<HttpHeaders> |
AsyncRestTemplate.headForHeaders(java.lang.String url,
java.util.Map<java.lang.String,?> uriVariables)
Deprecated.
|
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.
|
ListenableFuture<HttpHeaders> |
AsyncRestTemplate.headForHeaders(java.lang.String url,
java.lang.Object... uriVariables)
Deprecated.
|
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.
|
ListenableFuture<HttpHeaders> |
AsyncRestTemplate.headForHeaders(java.net.URI url)
Deprecated.
|
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() |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
ClientResponse.Headers.asHttpHeaders()
Return the headers as a
HttpHeaders instance. |
HttpHeaders |
WebClientResponseException.getHeaders()
Return the HTTP response headers.
|
HttpHeaders |
ClientRequest.headers()
Return the headers of this request.
|
Modifier and Type | Method and Description |
---|---|
WebClient.Builder |
WebClient.Builder.defaultHeaders(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate the default headers with the given consumer.
|
S |
WebClient.RequestHeadersSpec.headers(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate the request's headers with the given consumer.
|
ClientRequest.Builder |
ClientRequest.Builder.headers(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate this request's headers with the given consumer.
|
ClientResponse.Builder |
ClientResponse.Builder.headers(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate this response's headers with the given consumer.
|
Constructor and Description |
---|
WebClientResponseException(java.lang.String message,
int statusCode,
java.lang.String statusText,
HttpHeaders headers,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
Construct a new instance of with the given response data.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
ClientResponseWrapper.HeadersWrapper.asHttpHeaders() |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
ServerRequest.Headers.asHttpHeaders()
Return the headers as a
HttpHeaders instance. |
HttpHeaders |
ServerResponse.headers()
Return the headers of this response.
|
Modifier and Type | Method and Description |
---|---|
RenderingResponse.Builder |
RenderingResponse.Builder.headers(HttpHeaders headers)
Copy the given headers into the entity's headers map.
|
EntityResponse.Builder<T> |
EntityResponse.Builder.headers(HttpHeaders headers)
Copy the given headers into the entity's headers map.
|
Modifier and Type | Method and Description |
---|---|
B |
ServerResponse.HeadersBuilder.headers(java.util.function.Consumer<HttpHeaders> headersConsumer)
Manipulate this response's headers with the given consumer.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
ServerRequestWrapper.HeadersWrapper.asHttpHeaders() |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpResource.getResponseHeaders()
The HTTP headers to be contributed to the HTTP response
that serves the current resource.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
Rendering.headers()
Return headers to add to the response.
|
Modifier and Type | Method and Description |
---|---|
B |
Rendering.Builder.headers(HttpHeaders headers)
Specify headers to add to the response.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HandshakeInfo.getHeaders()
Return the handshake HTTP headers.
|
Constructor and Description |
---|
HandshakeInfo(java.net.URI uri,
HttpHeaders headers,
reactor.core.publisher.Mono<java.security.Principal> principal,
java.lang.String protocol)
Constructor with information about the handshake.
|
Modifier and Type | Method and Description |
---|---|
protected HandshakeInfo |
WebSocketClientSupport.afterHandshake(java.net.URI url,
HttpHeaders responseHeaders) |
protected java.util.List<java.lang.String> |
WebSocketClientSupport.beforeHandshake(java.net.URI url,
HttpHeaders requestHeaders,
WebSocketHandler handler) |
reactor.core.publisher.Mono<java.lang.Void> |
UndertowWebSocketClient.execute(java.net.URI url,
HttpHeaders headers,
WebSocketHandler handler) |
reactor.core.publisher.Mono<java.lang.Void> |
ReactorNettyWebSocketClient.execute(java.net.URI url,
HttpHeaders headers,
WebSocketHandler handler) |
reactor.core.publisher.Mono<java.lang.Void> |
StandardWebSocketClient.execute(java.net.URI url,
HttpHeaders headers,
WebSocketHandler handler) |
reactor.core.publisher.Mono<java.lang.Void> |
WebSocketClient.execute(java.net.URI url,
HttpHeaders headers,
WebSocketHandler handler)
A variant of
WebSocketClient.execute(URI, WebSocketHandler) with custom headers. |
reactor.core.publisher.Mono<java.lang.Void> |
JettyWebSocketClient.execute(java.net.URI url,
HttpHeaders headers,
WebSocketHandler handler) |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
NoHandlerFoundException.getHeaders() |
Constructor and Description |
---|
NoHandlerFoundException(java.lang.String httpMethod,
java.lang.String requestURL,
HttpHeaders headers)
Constructor for NoHandlerFoundException.
|
Modifier and Type | Method and Description |
---|---|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleAsyncRequestTimeoutException(AsyncRequestTimeoutException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest webRequest)
Customize the response for NoHandlerFoundException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleBindException(BindException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for BindException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleConversionNotSupported(ConversionNotSupportedException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for ConversionNotSupportedException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleExceptionInternal(java.lang.Exception ex,
java.lang.Object body,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
A single place to customize the response body of all Exception types.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpMediaTypeNotAcceptableException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpMediaTypeNotSupportedException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleHttpMessageNotReadable(HttpMessageNotReadableException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpMessageNotReadableException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpMessageNotWritableException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for HttpRequestMethodNotSupportedException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleMethodArgumentNotValid(MethodArgumentNotValidException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for MethodArgumentNotValidException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleMissingPathVariable(MissingPathVariableException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for MissingPathVariableException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleMissingServletRequestParameter(MissingServletRequestParameterException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for MissingServletRequestParameterException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleMissingServletRequestPart(MissingServletRequestPartException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for MissingServletRequestPartException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleNoHandlerFoundException(NoHandlerFoundException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for NoHandlerFoundException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleServletRequestBindingException(ServletRequestBindingException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for ServletRequestBindingException.
|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleTypeMismatch(TypeMismatchException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for TypeMismatchException.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpResource.getResponseHeaders()
The HTTP headers to be contributed to the HTTP response
that serves the current resource.
|
Modifier and Type | Class and Description |
---|---|
class |
WebSocketHttpHeaders
An
HttpHeaders variant that adds support for
the HTTP headers defined by the WebSocket specification RFC 6455. |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
WebSocketSession.getHandshakeHeaders()
Return the headers used in the handshake request (never
null ). |
Constructor and Description |
---|
WebSocketHttpHeaders(HttpHeaders headers)
Create an instance that wraps the given pre-existing HttpHeaders and also
propagate all changes to it.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
JettyWebSocketSession.getHandshakeHeaders() |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
StandardWebSocketSession.getHandshakeHeaders() |
Constructor and Description |
---|
StandardWebSocketSession(HttpHeaders headers,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.net.InetSocketAddress localAddress,
java.net.InetSocketAddress remoteAddress)
Constructor for a standard WebSocket session.
|
StandardWebSocketSession(HttpHeaders headers,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.net.InetSocketAddress localAddress,
java.net.InetSocketAddress remoteAddress,
java.security.Principal user)
Constructor that associates a user with the WebSocket session.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
WebSocketConnectionManager.getHeaders()
Return the default headers for the WebSocket handshake request.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ListenableFuture<WebSocketSession> |
AbstractWebSocketClient.doHandshakeInternal(WebSocketHandler webSocketHandler,
HttpHeaders headers,
java.net.URI uri,
java.util.List<java.lang.String> subProtocols,
java.util.List<WebSocketExtension> extensions,
java.util.Map<java.lang.String,java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
ListenableFuture<WebSocketSession> |
JettyWebSocketClient.doHandshakeInternal(WebSocketHandler wsHandler,
HttpHeaders headers,
java.net.URI uri,
java.util.List<java.lang.String> protocols,
java.util.List<WebSocketExtension> extensions,
java.util.Map<java.lang.String,java.lang.Object> attributes) |
Modifier and Type | Method and Description |
---|---|
protected ListenableFuture<WebSocketSession> |
StandardWebSocketClient.doHandshakeInternal(WebSocketHandler webSocketHandler,
HttpHeaders headers,
java.net.URI uri,
java.util.List<java.lang.String> protocols,
java.util.List<WebSocketExtension> extensions,
java.util.Map<java.lang.String,java.lang.Object> attributes) |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
WebSocketSessionDecorator.getHandshakeHeaders() |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JettyXhrTransport.connectInternal(TransportRequest transportRequest,
WebSocketHandler handler,
java.net.URI url,
HttpHeaders handshakeHeaders,
XhrClientSockJsSession session,
SettableListenableFuture<WebSocketSession> connectFuture) |
protected abstract void |
AbstractXhrTransport.connectInternal(TransportRequest request,
WebSocketHandler handler,
java.net.URI receiveUrl,
HttpHeaders handshakeHeaders,
XhrClientSockJsSession session,
SettableListenableFuture<WebSocketSession> connectFuture) |
protected void |
RestTemplateXhrTransport.connectInternal(TransportRequest transportRequest,
WebSocketHandler handler,
java.net.URI receiveUrl,
HttpHeaders handshakeHeaders,
XhrClientSockJsSession session,
SettableListenableFuture<WebSocketSession> connectFuture) |
protected void |
UndertowXhrTransport.connectInternal(TransportRequest request,
WebSocketHandler handler,
java.net.URI receiveUrl,
HttpHeaders handshakeHeaders,
XhrClientSockJsSession session,
SettableListenableFuture<WebSocketSession> connectFuture) |
java.lang.String |
AbstractXhrTransport.executeInfoRequest(java.net.URI infoUrl,
HttpHeaders headers) |
java.lang.String |
InfoReceiver.executeInfoRequest(java.net.URI infoUrl,
HttpHeaders headers)
Perform an HTTP request to the SockJS "Info" URL.
|
protected ResponseEntity<java.lang.String> |
JettyXhrTransport.executeInfoRequestInternal(java.net.URI infoUrl,
HttpHeaders headers) |
protected abstract ResponseEntity<java.lang.String> |
AbstractXhrTransport.executeInfoRequestInternal(java.net.URI infoUrl,
HttpHeaders headers) |
protected ResponseEntity<java.lang.String> |
RestTemplateXhrTransport.executeInfoRequestInternal(java.net.URI infoUrl,
HttpHeaders headers) |
protected ResponseEntity<java.lang.String> |
UndertowXhrTransport.executeInfoRequestInternal(java.net.URI infoUrl,
HttpHeaders headers) |
protected ResponseEntity<java.lang.String> |
JettyXhrTransport.executeRequest(java.net.URI url,
org.eclipse.jetty.http.HttpMethod method,
HttpHeaders headers,
java.lang.String body) |
protected ResponseEntity<java.lang.String> |
UndertowXhrTransport.executeRequest(java.net.URI url,
io.undertow.util.HttpString method,
HttpHeaders headers,
java.lang.String body) |
void |
XhrTransport.executeSendRequest(java.net.URI transportUrl,
HttpHeaders headers,
TextMessage message)
Execute a request to send the message to the server.
|
void |
AbstractXhrTransport.executeSendRequest(java.net.URI url,
HttpHeaders headers,
TextMessage message) |
ResponseEntity<java.lang.String> |
JettyXhrTransport.executeSendRequestInternal(java.net.URI url,
HttpHeaders headers,
TextMessage message) |
protected abstract ResponseEntity<java.lang.String> |
AbstractXhrTransport.executeSendRequestInternal(java.net.URI url,
HttpHeaders headers,
TextMessage message) |
ResponseEntity<java.lang.String> |
RestTemplateXhrTransport.executeSendRequestInternal(java.net.URI url,
HttpHeaders headers,
TextMessage message) |
protected ResponseEntity<java.lang.String> |
UndertowXhrTransport.executeSendRequestInternal(java.net.URI url,
HttpHeaders headers,
TextMessage message) |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
WebSocketServerSockJsSession.getHandshakeHeaders() |
HttpHeaders |
AbstractHttpSockJsSession.getHandshakeHeaders() |