Skip navigation links
spring-webflux
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Classes
  • Methods
  • Constructors
  • Enum Constants
  • Terminally Deprecated Elements
    Element
    Description
    org.springframework.web.reactive.function.client.ClientHttpObservationDocumentation.HighCardinalityKeyNames.CLIENT_NAME
    in favor of ClientHttpObservationDocumentation.LowCardinalityKeyNames.CLIENT_NAME; scheduled for removal in 6.2. This will be available both as a low and high cardinality key value.
    org.springframework.web.reactive.function.client.ClientResponse.rawStatusCode()
    as of 6.0, in favor of ClientResponse.statusCode()
    org.springframework.web.reactive.HandlerResult.applyExceptionHandler(Throwable)
    without a replacement; for internal invocation only, not used as of 6.0
    org.springframework.web.reactive.HandlerResult.hasExceptionHandler()
    in favor of checking via HandlerResult.getExceptionHandler()
    org.springframework.web.reactive.HandlerResult.setExceptionHandler(Function<Throwable, Mono<HandlerResult>>)
    in favor of HandlerResult.setExceptionHandler(DispatchExceptionHandler)
    org.springframework.web.reactive.socket.client.JettyWebSocketClient
    as of 6.0.3, in favor of StandardWebSocketClient
  • Deprecated Classes
    Class
    Description
    org.springframework.web.reactive.function.client.ExchangeFilterFunctions.Credentials
    as of Spring 5.1 in favor of using HttpHeaders.setBasicAuth(String, String) while building the request.
    org.springframework.web.reactive.socket.client.JettyWebSocketClient
    as of 6.0.3, in favor of StandardWebSocketClient
  • Deprecated Methods
    Method
    Description
    org.springframework.web.reactive.config.PathMatchConfigurer.isUseTrailingSlashMatch()
    org.springframework.web.reactive.config.PathMatchConfigurer.setUseTrailingSlashMatch(Boolean)
    as of 6.0, see PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    org.springframework.web.reactive.function.BodyInserters.fromObject(T)
    As of Spring Framework 5.2, in favor of BodyInserters.fromValue(Object)
    org.springframework.web.reactive.function.client.ClientRequest.method(HttpMethod, URI)
    in favor of ClientRequest.create(HttpMethod, URI)
    org.springframework.web.reactive.function.client.ClientResponse.from(ClientResponse)
    as of 5.3 in favor of the instance based ClientResponse.mutate().
    org.springframework.web.reactive.function.client.ClientResponse.rawStatusCode()
    as of 6.0, in favor of ClientResponse.statusCode()
    org.springframework.web.reactive.function.client.ExchangeFilterFunctions.basicAuthentication()
    as of Spring 5.1 in favor of using HttpHeaders.setBasicAuth(String, String) while building the request.
    org.springframework.web.reactive.function.client.WebClient.Builder.exchangeStrategies(Consumer<ExchangeStrategies.Builder>)
    as of 5.1.13 in favor of WebClient.Builder.codecs(Consumer)
    org.springframework.web.reactive.function.client.WebClient.RequestBodySpec.syncBody(Object)
    as of Spring Framework 5.2 in favor of WebClient.RequestBodySpec.bodyValue(Object)
    org.springframework.web.reactive.function.client.WebClient.RequestHeadersSpec.context(Function<Context, Context>)
    in 5.3.2 to be removed soon after; this method cannot provide context to downstream (nested or subsequent) requests and is of limited value.
    org.springframework.web.reactive.function.client.WebClient.RequestHeadersSpec.exchange()
    since 5.3 due to the possibility to leak memory and/or connections; please, use WebClient.RequestHeadersSpec.exchangeToMono(Function), WebClient.RequestHeadersSpec.exchangeToFlux(Function); consider also using WebClient.RequestHeadersSpec.retrieve() which provides access to the response status and headers via ResponseEntity along with error status handling.
    org.springframework.web.reactive.function.client.WebClientResponseException.getRawStatusCode()
    as of 6.0, in favor of WebClientResponseException.getStatusCode()
    org.springframework.web.reactive.function.server.ServerRequest.methodName()
    as of 6.0, in favor of ServerRequest.method()
    org.springframework.web.reactive.function.server.ServerRequest.pathContainer()
    as of 5.3, in favor on ServerRequest.requestPath()
    org.springframework.web.reactive.function.server.ServerResponse.BodyBuilder.syncBody(Object)
    as of Spring Framework 5.2 in favor of ServerResponse.BodyBuilder.bodyValue(Object)
    org.springframework.web.reactive.function.server.ServerResponse.rawStatusCode()
    as of 6.0, in favor of ServerResponse.statusCode()
    org.springframework.web.reactive.function.server.support.ServerRequestWrapper.methodName()
    org.springframework.web.reactive.function.server.support.ServerRequestWrapper.pathContainer()
    org.springframework.web.reactive.handler.AbstractHandlerMapping.setUseTrailingSlashMatch(boolean)
    as of 6.0, see PathPatternParser.setMatchOptionalTrailingSeparator(boolean)
    org.springframework.web.reactive.HandlerResult.applyExceptionHandler(Throwable)
    without a replacement; for internal invocation only, not used as of 6.0
    org.springframework.web.reactive.HandlerResult.hasExceptionHandler()
    in favor of checking via HandlerResult.getExceptionHandler()
    org.springframework.web.reactive.HandlerResult.setExceptionHandler(Function<Throwable, Mono<HandlerResult>>)
    in favor of HandlerResult.setExceptionHandler(DispatchExceptionHandler)
    org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.getHandlePing()
    as of 5.3 in favor of ReactorNettyWebSocketClient.getWebsocketClientSpec()
    org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.getMaxFramePayloadLength()
    as of 5.3 in favor of ReactorNettyWebSocketClient.getWebsocketClientSpec()
    org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(boolean)
    as of 5.3 in favor of providing a supplier of WebsocketClientSpec.Builder with a constructor argument
    org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setMaxFramePayloadLength(int)
    as of 5.3 in favor of providing a supplier of WebsocketClientSpec.Builder with a constructor argument
    org.springframework.web.reactive.socket.CloseStatus.equalsCode(CloseStatus)
    as of 5.3 in favor of comparing codes directly
    org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.getHandlePing()
    as of 5.2.6 in favor of ReactorNettyRequestUpgradeStrategy.getWebsocketServerSpec()
    org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.getMaxFramePayloadLength()
    as of 5.2.6 in favor of ReactorNettyRequestUpgradeStrategy.getWebsocketServerSpec()
    org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.setHandlePing(boolean)
    as of 5.2.6 in favor of providing a supplier of WebsocketServerSpec.Builder with a constructor argument
    org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.setMaxFramePayloadLength(Integer)
    as of 5.2.6 in favor of providing a supplier of WebsocketServerSpec.Builder with a constructor argument
  • Deprecated Constructors
    Constructor
    Description
    org.springframework.web.reactive.result.method.RequestMappingInfo(String, PatternsRequestCondition, RequestMethodsRequestCondition, ParamsRequestCondition, HeadersRequestCondition, ConsumesRequestCondition, ProducesRequestCondition, RequestCondition<?>)
    as of 5.3.4 in favor using RequestMappingInfo.Builder via RequestMappingInfo.paths(String...).
    org.springframework.web.reactive.result.method.RequestMappingInfo(PatternsRequestCondition, RequestMethodsRequestCondition, ParamsRequestCondition, HeadersRequestCondition, ConsumesRequestCondition, ProducesRequestCondition, RequestCondition<?>)
    as of 5.3.4 in favor using RequestMappingInfo.Builder via RequestMappingInfo.paths(String...).
    org.springframework.web.reactive.result.method.RequestMappingInfo(RequestMappingInfo, RequestCondition<?>)
    since 5.3.4 in favor of using a RequestMappingInfo.Builder via RequestMappingInfo.mutate().
    org.springframework.web.reactive.socket.HandshakeInfo(URI, HttpHeaders, Mono<Principal>, String, InetSocketAddress, Map<String, Object>, String)
    as of 5.3.5 in favor of HandshakeInfo(URI, HttpHeaders, MultiValueMap, Mono, String, InetSocketAddress, Map, String)
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.springframework.web.reactive.function.client.ClientHttpObservationDocumentation.HighCardinalityKeyNames.CLIENT_NAME
    in favor of ClientHttpObservationDocumentation.LowCardinalityKeyNames.CLIENT_NAME; scheduled for removal in 6.2. This will be available both as a low and high cardinality key value.