类 ReactorNetty2ServerHttpRequest
java.lang.Object
cn.taketoday.http.server.reactive.AbstractServerHttpRequest
cn.taketoday.http.server.reactive.ReactorNetty2ServerHttpRequest
- 所有已实现的接口:
HttpMessage,HttpRequest,ReactiveHttpInputMessage,ServerHttpRequest
Adapt
ServerHttpRequest to the Reactor HttpServerRequest.
This class is based on ReactorServerHttpRequest.
- 从以下版本开始:
- 4.0
- 作者:
- Violeta Georgieva, Harry Yang
-
嵌套类概要
从接口继承的嵌套类/接口 cn.taketoday.http.server.reactive.ServerHttpRequest
ServerHttpRequest.Builder -
字段概要
字段修饰符和类型字段说明private final cn.taketoday.core.io.buffer.Netty5DataBufferFactoryprivate static final cn.taketoday.logging.Loggerprivate static final AtomicLongprivate final reactor.netty5.http.server.HttpServerRequest -
构造器概要
构造器构造器说明ReactorNetty2ServerHttpRequest(reactor.netty5.http.server.HttpServerRequest request, cn.taketoday.core.io.buffer.Netty5DataBufferFactory bufferFactory) -
方法概要
修饰符和类型方法说明reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer>getBody()Return the body of the message as aPublisher.Return the local address the request was accepted on, if available.Return the HTTP method of the request as a String value.<T> TReturn the underlying server response.Return the remote address where this request is connected to, if available.private static StringgetScheme(reactor.netty5.http.server.HttpServerRequest request) protected cn.taketoday.util.MultiValueMap<String,HttpCookie> Obtain the cookies from the underlying "native" request and adapt those to anHttpCookiemap.protected StringinitId()Obtain the request id to use, ornullin which case the Object identity of this request instance is used.protected StringSubclasses can override this to provide the prefix to use for log messages.protected SslInfoObtain SSL session information from the underlying "native" request.private static URIinitUri(reactor.netty5.http.server.HttpServerRequest request) private static URIresolveBaseUrl(reactor.netty5.http.server.HttpServerRequest request) private static StringresolveRequestUri(reactor.netty5.http.server.HttpServerRequest request) 从类继承的方法 cn.taketoday.http.server.reactive.AbstractServerHttpRequest
getCookies, getHeaders, getId, getLogPrefix, getMethod, getPath, getQueryParams, getSslInfo, getURI, initQueryParams从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.http.server.reactive.ServerHttpRequest
mutate
-
字段详细资料
-
logger
private static final cn.taketoday.logging.Logger logger -
logPrefixIndex
-
request
private final reactor.netty5.http.server.HttpServerRequest request -
bufferFactory
private final cn.taketoday.core.io.buffer.Netty5DataBufferFactory bufferFactory
-
-
构造器详细资料
-
ReactorNetty2ServerHttpRequest
public ReactorNetty2ServerHttpRequest(reactor.netty5.http.server.HttpServerRequest request, cn.taketoday.core.io.buffer.Netty5DataBufferFactory bufferFactory) throws URISyntaxException
-
-
方法详细资料
-
initUri
private static URI initUri(reactor.netty5.http.server.HttpServerRequest request) throws URISyntaxException -
resolveBaseUrl
private static URI resolveBaseUrl(reactor.netty5.http.server.HttpServerRequest request) throws URISyntaxException -
getScheme
-
resolveRequestUri
-
getMethodValue
从接口复制的说明:HttpRequestReturn the HTTP method of the request as a String value.- 返回:
- the HTTP method as a plain String
- 另请参阅:
-
initCookies
从类复制的说明:AbstractServerHttpRequestObtain the cookies from the underlying "native" request and adapt those to anHttpCookiemap. The return value is turned into an immutable map and cached.Note that this method is invoked lazily on access to
AbstractServerHttpRequest.getCookies(). Sub-classes should synchronize cookie initialization if the underlying "native" request does not provide thread-safe access to cookie data.- 指定者:
initCookies在类中AbstractServerHttpRequest
-
getLocalAddress
从接口复制的说明:ServerHttpRequestReturn the local address the request was accepted on, if available. -
getRemoteAddress
从接口复制的说明:ServerHttpRequestReturn the remote address where this request is connected to, if available. -
initSslInfo
从类复制的说明:AbstractServerHttpRequestObtain SSL session information from the underlying "native" request.- 指定者:
initSslInfo在类中AbstractServerHttpRequest- 返回:
- the session information, or
nullif none available
-
getBody
public reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> getBody()从接口复制的说明:ReactiveHttpInputMessageReturn the body of the message as aPublisher.- 返回:
- the body content publisher
-
getNativeRequest
public <T> T getNativeRequest()从类复制的说明:AbstractServerHttpRequestReturn the underlying server response. -
initId
从类复制的说明:AbstractServerHttpRequestObtain the request id to use, ornullin which case the Object identity of this request instance is used.- 覆盖:
initId在类中AbstractServerHttpRequest
-
initLogPrefix
从类复制的说明:AbstractServerHttpRequestSubclasses can override this to provide the prefix to use for log messages.By default, this is
AbstractServerHttpRequest.getId().
-