类 UndertowServerHttpRequest
java.lang.Object
cn.taketoday.http.server.reactive.AbstractServerHttpRequest
cn.taketoday.http.server.reactive.UndertowServerHttpRequest
- 所有已实现的接口:
HttpMessage,HttpRequest,ReactiveHttpInputMessage,ServerHttpRequest
Adapt
ServerHttpRequest to the Undertow HttpServerExchange.- 从以下版本开始:
- 4.0
- 作者:
- Marek Hawrylczak, Rossen Stoyanchev, Harry Yang
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 cn.taketoday.http.server.reactive.ServerHttpRequest
ServerHttpRequest.Builder -
字段概要
字段修饰符和类型字段说明private final UndertowServerHttpRequest.RequestBodyPublisherprivate final io.undertow.server.HttpServerExchangeprivate static final AtomicLong -
构造器概要
构造器构造器说明UndertowServerHttpRequest(io.undertow.server.HttpServerExchange exchange, cn.taketoday.core.io.buffer.DataBufferFactory 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.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 SslInfoObtain SSL session information from the underlying "native" request.private static URIinitUri(io.undertow.server.HttpServerExchange exchange) 从类继承的方法 cn.taketoday.http.server.reactive.AbstractServerHttpRequest
getCookies, getHeaders, getId, getLogPrefix, getMethod, getPath, getQueryParams, getSslInfo, getURI, initLogPrefix, initQueryParams从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.http.server.reactive.ServerHttpRequest
mutate
-
字段详细资料
-
logPrefixIndex
-
body
-
exchange
private final io.undertow.server.HttpServerExchange exchange
-
-
构造器详细资料
-
UndertowServerHttpRequest
public UndertowServerHttpRequest(io.undertow.server.HttpServerExchange exchange, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) throws URISyntaxException
-
-
方法详细资料
-
initUri
private static URI initUri(io.undertow.server.HttpServerExchange exchange) throws URISyntaxException -
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
-