类 ServerHttpRequestDecorator
java.lang.Object
cn.taketoday.http.server.reactive.ServerHttpRequestDecorator
- 所有已实现的接口:
HttpMessage,HttpRequest,ReactiveHttpInputMessage,ServerHttpRequest
Wraps another
ServerHttpRequest and delegates all methods to it.
Sub-classes can override specific methods selectively.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
嵌套类概要
从接口继承的嵌套类/接口 cn.taketoday.http.server.reactive.ServerHttpRequest
ServerHttpRequest.Builder -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer>getBody()Return the body of the message as aPublisher.cn.taketoday.util.MultiValueMap<String,HttpCookie> Return a read-only map of cookies sent by the client.Return the headers of this message.getId()Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.Return the local address the request was accepted on, if available.Return the HTTP method of the request.Return the HTTP method of the request as a String value.static <T> TgetNativeRequest(ServerHttpRequest request) Return the native request of the underlying server API, if possible, also unwrappingServerHttpRequestDecoratorif necessary.getPath()Returns a structured representation of the full request path up to but not including thequery.Return a read-only map with parsed and decoded query parameter values.Return the remote address where this request is connected to, if available.Return the SSL session information if the request has been transmitted over a secure protocol including SSL certificates, if available.getURI()Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).toString()从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.http.server.reactive.ServerHttpRequest
mutate
-
字段详细资料
-
delegate
-
-
构造器详细资料
-
ServerHttpRequestDecorator
-
-
方法详细资料
-
getDelegate
-
getId
从接口复制的说明:ServerHttpRequestReturn an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.- 指定者:
getId在接口中ServerHttpRequest
-
getMethod
从接口复制的说明:HttpRequestReturn the HTTP method of the request.- 指定者:
getMethod在接口中HttpRequest- 返回:
- the HTTP method as an HttpMethod value
- 另请参阅:
-
getMethodValue
从接口复制的说明:HttpRequestReturn the HTTP method of the request as a String value.- 指定者:
getMethodValue在接口中HttpRequest- 返回:
- the HTTP method as a plain String
- 另请参阅:
-
getURI
从接口复制的说明:HttpRequestReturn the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).- 指定者:
getURI在接口中HttpRequest- 返回:
- the URI of the request (never
null)
-
getPath
从接口复制的说明:ServerHttpRequestReturns a structured representation of the full request path up to but not including thequery.The returned path is sub-divided into a
RequestPath.contextPath()portion and the remainingpathWithinApplicationportion. The latter can be passed into methods ofPathPatternfor path matching purposes.- 指定者:
getPath在接口中ServerHttpRequest
-
getQueryParams
从接口复制的说明:ServerHttpRequestReturn a read-only map with parsed and decoded query parameter values.- 指定者:
getQueryParams在接口中ServerHttpRequest
-
getHeaders
从接口复制的说明:HttpMessageReturn the headers of this message.- 指定者:
getHeaders在接口中HttpMessage- 返回:
- a corresponding HttpHeaders object (never
null)
-
getCookies
从接口复制的说明:ServerHttpRequestReturn a read-only map of cookies sent by the client.- 指定者:
getCookies在接口中ServerHttpRequest
-
getLocalAddress
从接口复制的说明:ServerHttpRequestReturn the local address the request was accepted on, if available.- 指定者:
getLocalAddress在接口中ServerHttpRequest
-
getRemoteAddress
从接口复制的说明:ServerHttpRequestReturn the remote address where this request is connected to, if available.- 指定者:
getRemoteAddress在接口中ServerHttpRequest
-
getSslInfo
从接口复制的说明:ServerHttpRequestReturn the SSL session information if the request has been transmitted over a secure protocol including SSL certificates, if available.- 指定者:
getSslInfo在接口中ServerHttpRequest- 返回:
- 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.- 指定者:
getBody在接口中ReactiveHttpInputMessage- 返回:
- the body content publisher
-
getNativeRequest
Return the native request of the underlying server API, if possible, also unwrappingServerHttpRequestDecoratorif necessary.- 类型参数:
T- the expected native request type- 参数:
request- the request to check- 抛出:
IllegalArgumentException- if the native request can't be obtained
-
toString
-