Uses of Interface
org.springframework.http.server.ServerHttpRequest
Packages that use ServerHttpRequest
Package
Description
Contains an abstraction over server-side HTTP.
Support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy.Support classes for the multipart resolution framework.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package.Server-side abstractions for WebSocket interactions.
Server-side support for the Jetty 9+ WebSocket API.
Server-side classes for use with standard JSR-356 WebSocket endpoints.
Server-side support classes including container-specific strategies
for upgrading a request.
Top-level SockJS types.
Support classes for SockJS including an
AbstractSockJsService
implementation.Server-side support for SockJS transports including
TransportHandler implementations
for processing incoming requests, their
session
counterparts for sending messages over the various transports, and
DefaultSockJsService.TransportHandler
implementation classes as well as a concrete
SockJsService.SockJS specific implementations of
WebSocketSession.-
Uses of ServerHttpRequest in org.springframework.http.server
Classes in org.springframework.http.server that implement ServerHttpRequestModifier and TypeClassDescriptionclassServerHttpRequestimplementation that is based on aHttpServletRequest. -
Uses of ServerHttpRequest in org.springframework.web.cors
Methods in org.springframework.web.cors with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionprotected booleanDefaultCorsProcessor.handleInternal(ServerHttpRequest request, ServerHttpResponse response, CorsConfiguration config, boolean preFlightRequest) Handle the given request. -
Uses of ServerHttpRequest in org.springframework.web.multipart.support
Classes in org.springframework.web.multipart.support that implement ServerHttpRequestModifier and TypeClassDescriptionclassServerHttpRequestimplementation that accesses one part of a multipart request. -
Uses of ServerHttpRequest in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionfinal ObjectAbstractMappingJacksonResponseBodyAdvice.beforeBodyWrite(Object body, MethodParameter returnType, MediaType contentType, Class<? extends HttpMessageConverter<?>> converterType, ServerHttpRequest request, ServerHttpResponse response) ResponseBodyAdvice.beforeBodyWrite(T body, MethodParameter returnType, MediaType selectedContentType, Class<? extends HttpMessageConverter<?>> selectedConverterType, ServerHttpRequest request, ServerHttpResponse response) Invoked after anHttpMessageConverteris selected and just before its write method is invoked.protected abstract voidAbstractMappingJacksonResponseBodyAdvice.beforeBodyWriteInternal(MappingJacksonValue bodyContainer, MediaType contentType, MethodParameter returnType, ServerHttpRequest request, ServerHttpResponse response) Invoked only if the converter type isMappingJackson2HttpMessageConverter.protected voidJsonViewResponseBodyAdvice.beforeBodyWriteInternal(MappingJacksonValue bodyContainer, MediaType contentType, MethodParameter returnType, ServerHttpRequest request, ServerHttpResponse response) -
Uses of ServerHttpRequest in org.springframework.web.socket.server
Methods in org.springframework.web.socket.server with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionvoidHandshakeInterceptor.afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Exception exception) Invoked after the handshake is done.booleanHandshakeInterceptor.beforeHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String, Object> attributes) Invoked before the handshake is processed.booleanHandshakeHandler.doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String, Object> attributes) Initiate the handshake.RequestUpgradeStrategy.getSupportedExtensions(ServerHttpRequest request) Return the WebSocket protocol extensions supported by the underlying WebSocket server.voidRequestUpgradeStrategy.upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<WebSocketExtension> selectedExtensions, Principal user, WebSocketHandler wsHandler, Map<String, Object> attributes) Perform runtime specific steps to complete the upgrade. -
Uses of ServerHttpRequest in org.springframework.web.socket.server.jetty
Methods in org.springframework.web.socket.server.jetty with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionJettyRequestUpgradeStrategy.getSupportedExtensions(ServerHttpRequest request) voidJettyRequestUpgradeStrategy.upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<WebSocketExtension> selectedExtensions, Principal user, WebSocketHandler handler, Map<String, Object> attributes) -
Uses of ServerHttpRequest in org.springframework.web.socket.server.standard
Methods in org.springframework.web.socket.server.standard with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionprotected final HttpServletRequestAbstractStandardUpgradeStrategy.getHttpServletRequest(ServerHttpRequest request) AbstractStandardUpgradeStrategy.getSupportedExtensions(ServerHttpRequest request) voidAbstractStandardUpgradeStrategy.upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<WebSocketExtension> selectedExtensions, Principal user, WebSocketHandler wsHandler, Map<String, Object> attrs) protected abstract voidAbstractStandardUpgradeStrategy.upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) voidAbstractTyrusRequestUpgradeStrategy.upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<Extension> extensions, Endpoint endpoint) voidTomcatRequestUpgradeStrategy.upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) protected voidUndertowRequestUpgradeStrategy.upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) voidWebSphereRequestUpgradeStrategy.upgradeInternal(ServerHttpRequest httpRequest, ServerHttpResponse httpResponse, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) -
Uses of ServerHttpRequest in org.springframework.web.socket.server.support
Methods in org.springframework.web.socket.server.support with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionvoidHttpSessionHandshakeInterceptor.afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Exception ex) voidOriginHandshakeInterceptor.afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Exception exception) voidHandshakeInterceptorChain.applyAfterHandshake(ServerHttpRequest request, ServerHttpResponse response, Exception failure) booleanHandshakeInterceptorChain.applyBeforeHandshake(ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> attributes) booleanHttpSessionHandshakeInterceptor.beforeHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String, Object> attributes) booleanOriginHandshakeInterceptor.beforeHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String, Object> attributes) protected PrincipalAbstractHandshakeHandler.determineUser(ServerHttpRequest request, WebSocketHandler wsHandler, Map<String, Object> attributes) A method that can be used to associate a user with the WebSocket session in the process of being established.final booleanAbstractHandshakeHandler.doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String, Object> attributes) protected List<WebSocketExtension>AbstractHandshakeHandler.filterRequestedExtensions(ServerHttpRequest request, List<WebSocketExtension> requestedExtensions, List<WebSocketExtension> supportedExtensions) Filter the list of requested WebSocket extensions.protected voidAbstractHandshakeHandler.handleInvalidConnectHeader(ServerHttpRequest request, ServerHttpResponse response) protected voidAbstractHandshakeHandler.handleInvalidUpgradeHeader(ServerHttpRequest request, ServerHttpResponse response) protected voidAbstractHandshakeHandler.handleWebSocketVersionNotSupported(ServerHttpRequest request, ServerHttpResponse response) protected booleanAbstractHandshakeHandler.isValidOrigin(ServerHttpRequest request) Return whether the requestOriginheader value is valid or not. -
Uses of ServerHttpRequest in org.springframework.web.socket.sockjs
Methods in org.springframework.web.socket.sockjs with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionvoidSockJsService.handleRequest(ServerHttpRequest request, ServerHttpResponse response, String sockJsPath, WebSocketHandler handler) Process a SockJS HTTP request. -
Uses of ServerHttpRequest in org.springframework.web.socket.sockjs.support
Methods in org.springframework.web.socket.sockjs.support with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionprotected booleanAbstractSockJsService.checkOrigin(ServerHttpRequest request, ServerHttpResponse response, HttpMethod... httpMethods) protected abstract voidAbstractSockJsService.handleRawWebSocketRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler webSocketHandler) Handle request for raw WebSocket communication, i.e.final voidAbstractSockJsService.handleRequest(ServerHttpRequest request, ServerHttpResponse response, String sockJsPath, WebSocketHandler wsHandler) This method determines the SockJS path and handles SockJS static URLs.protected abstract voidAbstractSockJsService.handleTransportRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler webSocketHandler, String sessionId, String transport) Handle a SockJS session URL (i.e. -
Uses of ServerHttpRequest in org.springframework.web.socket.sockjs.transport
Methods in org.springframework.web.socket.sockjs.transport with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionprotected voidTransportHandlingSockJsService.handleRawWebSocketRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler) voidTransportHandler.handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler, SockJsSession session) Handle the given request and delegate messages to the providedWebSocketHandler.protected voidTransportHandlingSockJsService.handleTransportRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler, String sessionId, String transport) -
Uses of ServerHttpRequest in org.springframework.web.socket.sockjs.transport.handler
Methods in org.springframework.web.socket.sockjs.transport.handler with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionbooleanWebSocketTransportHandler.doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler, Map<String, Object> attributes) protected final StringAbstractHttpSendingTransportHandler.getCallbackParam(ServerHttpRequest request) protected abstract SockJsFrameFormatAbstractHttpSendingTransportHandler.getFrameFormat(ServerHttpRequest request) protected SockJsFrameFormatEventSourceTransportHandler.getFrameFormat(ServerHttpRequest request) protected SockJsFrameFormatHtmlFileTransportHandler.getFrameFormat(ServerHttpRequest request) protected SockJsFrameFormatXhrPollingTransportHandler.getFrameFormat(ServerHttpRequest request) protected SockJsFrameFormatXhrStreamingTransportHandler.getFrameFormat(ServerHttpRequest request) final voidAbstractHttpReceivingTransportHandler.handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession) final voidAbstractHttpSendingTransportHandler.handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession) voidWebSocketTransportHandler.handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession) protected voidAbstractHttpReceivingTransportHandler.handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, AbstractHttpSockJsSession sockJsSession) protected voidAbstractHttpSendingTransportHandler.handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) voidHtmlFileTransportHandler.handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) protected abstract String[]AbstractHttpReceivingTransportHandler.readMessages(ServerHttpRequest request) protected String[]XhrReceivingTransportHandler.readMessages(ServerHttpRequest request) -
Uses of ServerHttpRequest in org.springframework.web.socket.sockjs.transport.session
Methods in org.springframework.web.socket.sockjs.transport.session with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionprotected abstract byte[]StreamingSockJsSession.getPrelude(ServerHttpRequest request) Get the prelude to write to the response before any other data.voidAbstractHttpSockJsSession.handleInitialRequest(ServerHttpRequest request, ServerHttpResponse response, SockJsFrameFormat frameFormat) Handle the first request for receiving messages on a SockJS HTTP transport based session.protected abstract voidAbstractHttpSockJsSession.handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, boolean initialRequest) Invoked when a SockJS transport request is received.protected voidPollingSockJsSession.handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, boolean initialRequest) protected voidStreamingSockJsSession.handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, boolean initialRequest) voidAbstractHttpSockJsSession.handleSuccessiveRequest(ServerHttpRequest request, ServerHttpResponse response, SockJsFrameFormat frameFormat) Handle all requests, except the first one, to receive messages on a SockJS HTTP transport based session.