Top Description Fields Constructors Methods
org.springframework.http.server.reactive

public Class ReactorHttpHandlerAdapter

extends Object
implements BiFunction<HttpServerRequest, HttpServerResponse, Mono<Void>>
Class Inheritance
All Implemented Interfaces
java.util.function.BiFunction
Imports
java.net.URISyntaxException, java.util.function.BiFunction, io.netty.handler.codec.http.HttpResponseStatus, org.apache.commons.logging.Log, reactor.core.publisher.Mono, reactor.netty.http.server.HttpServerRequest, .HttpServerResponse, org.springframework.core.io.buffer.NettyDataBufferFactory, org.springframework.http.HttpLogging, .HttpMethod, org.springframework.util.Assert

Adapt HttpHandler to the Reactor Netty channel handling function.
Authors
Stephane Maldini, Rossen Stoyanchev
Since
5.0

Field Summary

Modifier and TypeField and Description
private final HttpHandler
private static final Log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Mono<Void>
apply(HttpServerRequest
the first function argument
reactorRequest
,
HttpServerResponse
the second function argument
reactorResponse
)

Implements java.util.function.BiFunction.apply.

Applies this function to the given arguments.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

httpHandlerback to summary
private final HttpHandler httpHandler
loggerback to summary
private static final Log logger

Constructor Detail

ReactorHttpHandlerAdapterback to summary
public ReactorHttpHandlerAdapter(HttpHandler httpHandler)

Method Detail

applyback to summary
public Mono<Void> apply(HttpServerRequest reactorRequest, HttpServerResponse reactorResponse)

Implements java.util.function.BiFunction.apply.

Doc from java.util.function.BiFunction.apply.

Applies this function to the given arguments.

Parameters
reactorRequest:HttpServerRequest

the first function argument

reactorResponse:HttpServerResponse

the second function argument

Returns:Mono<Void>

the function result

Annotations
@Override