类 ServerHttpRequestDecorator
- java.lang.Object
- org.springframework.http.server.reactive.ServerHttpRequestDecorator
public class ServerHttpRequestDecorator extends Object implements ServerHttpRequest
Wraps anotherServerHttpRequest
and delegates all methods to it. Sub-classes can override specific methods selectively.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.http.server.reactive.ServerHttpRequest
ServerHttpRequest.Builder
构造器概要
构造器 构造器 说明 ServerHttpRequestDecorator(ServerHttpRequest delegate)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 reactor.core.publisher.Flux<DataBuffer>
getBody()
Return the body of the message as aPublisher
.MultiValueMap<String,HttpCookie>
getCookies()
Return a read-only map of cookies sent by the client.ServerHttpRequest
getDelegate()
HttpHeaders
getHeaders()
Return the headers of this message.String
getId()
Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.InetSocketAddress
getLocalAddress()
Return the local address the request was accepted on, if available.HttpMethod
getMethod()
Return the HTTP method of the request.String
getMethodValue()
Return the HTTP method of the request as a String value.RequestPath
getPath()
Returns a structured representation of the request path including the context path + path within application portions, path segments with encoded and decoded values, and path parameters.MultiValueMap<String,String>
getQueryParams()
Return a read-only map with parsed and decoded query parameter values.InetSocketAddress
getRemoteAddress()
Return the remote address where this request is connected to, if available.SslInfo
getSslInfo()
Return the SSL session information if the request has been transmitted over a secure protocol including SSL certificates, if available.URI
getURI()
Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).String
toString()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 org.springframework.http.server.reactive.ServerHttpRequest
mutate
构造器详细资料
ServerHttpRequestDecorator
public ServerHttpRequestDecorator(ServerHttpRequest delegate)
方法详细资料
getDelegate
public ServerHttpRequest getDelegate()
getId
public String getId()
从接口复制的说明:ServerHttpRequest
Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.- 指定者:
getId
在接口中ServerHttpRequest
- 另请参阅:
ServerWebExchange.getLogPrefix()
getMethod
@Nullable public HttpMethod getMethod()
从接口复制的说明:HttpRequest
Return the HTTP method of the request.- 指定者:
getMethod
在接口中HttpRequest
- 返回:
- the HTTP method as an HttpMethod enum value, or
null
if not resolvable (e.g. in case of a non-standard HTTP method) - 另请参阅:
HttpRequest.getMethodValue()
,HttpMethod.resolve(String)
getMethodValue
public String getMethodValue()
从接口复制的说明:HttpRequest
Return the HTTP method of the request as a String value.- 指定者:
getMethodValue
在接口中HttpRequest
- 返回:
- the HTTP method as a plain String
- 另请参阅:
HttpRequest.getMethod()
getURI
public URI getURI()
从接口复制的说明:HttpRequest
Return 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
public RequestPath getPath()
从接口复制的说明:ServerHttpRequest
Returns a structured representation of the request path including the context path + path within application portions, path segments with encoded and decoded values, and path parameters.- 指定者:
getPath
在接口中ServerHttpRequest
getQueryParams
public MultiValueMap<String,String> getQueryParams()
从接口复制的说明:ServerHttpRequest
Return a read-only map with parsed and decoded query parameter values.- 指定者:
getQueryParams
在接口中ServerHttpRequest
getHeaders
public HttpHeaders getHeaders()
从接口复制的说明:HttpMessage
Return the headers of this message.- 指定者:
getHeaders
在接口中HttpMessage
- 返回:
- a corresponding HttpHeaders object (never
null
)
getCookies
public MultiValueMap<String,HttpCookie> getCookies()
从接口复制的说明:ServerHttpRequest
Return a read-only map of cookies sent by the client.- 指定者:
getCookies
在接口中ServerHttpRequest
getLocalAddress
@Nullable public InetSocketAddress getLocalAddress()
从接口复制的说明:ServerHttpRequest
Return the local address the request was accepted on, if available.- 指定者:
getLocalAddress
在接口中ServerHttpRequest
getRemoteAddress
@Nullable public InetSocketAddress getRemoteAddress()
从接口复制的说明:ServerHttpRequest
Return the remote address where this request is connected to, if available.- 指定者:
getRemoteAddress
在接口中ServerHttpRequest
getSslInfo
@Nullable public SslInfo getSslInfo()
从接口复制的说明:ServerHttpRequest
Return 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
null
if none available
getBody
public reactor.core.publisher.Flux<DataBuffer> getBody()
从接口复制的说明:ReactiveHttpInputMessage
Return the body of the message as aPublisher
.- 指定者:
getBody
在接口中ReactiveHttpInputMessage
- 返回:
- the body content publisher