public class DefaultServerRequest extends Object implements org.springframework.web.reactive.function.server.ServerRequest
ServerRequest implementation based on a ServerWebExchange.| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,Object> |
attributes() |
<T> T |
body(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor) |
<T> T |
body(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor,
Map<String,Object> hints) |
<T> reactor.core.publisher.Flux<T> |
bodyToFlux(Class<? extends T> elementClass) |
<T> reactor.core.publisher.Flux<T> |
bodyToFlux(org.springframework.core.ParameterizedTypeReference<T> typeReference) |
<T> reactor.core.publisher.Mono<T> |
bodyToMono(Class<? extends T> elementClass) |
<T> reactor.core.publisher.Mono<T> |
bodyToMono(org.springframework.core.ParameterizedTypeReference<T> typeReference) |
org.springframework.util.MultiValueMap<String,org.springframework.http.HttpCookie> |
cookies() |
org.springframework.web.server.ServerWebExchange |
exchange() |
reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,String>> |
formData() |
org.springframework.web.reactive.function.server.ServerRequest.Headers |
headers() |
List<org.springframework.http.codec.HttpMessageReader<?>> |
messageReaders() |
String |
methodName() |
reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,org.springframework.http.codec.multipart.Part>> |
multipartData() |
org.springframework.http.server.PathContainer |
pathContainer() |
Map<String,String> |
pathVariables() |
reactor.core.publisher.Mono<? extends Principal> |
principal() |
org.springframework.util.MultiValueMap<String,String> |
queryParams() |
Optional<InetSocketAddress> |
remoteAddress() |
reactor.core.publisher.Mono<org.springframework.web.server.WebSession> |
session() |
String |
toString() |
URI |
uri() |
org.springframework.web.util.UriBuilder |
uriBuilder() |
public String methodName()
methodName 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic URI uri()
uri 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.web.util.UriBuilder uriBuilder()
uriBuilder 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.http.server.PathContainer pathContainer()
pathContainer 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.web.reactive.function.server.ServerRequest.Headers headers()
headers 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.util.MultiValueMap<String,org.springframework.http.HttpCookie> cookies()
cookies 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic <T> T body(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor)
body 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic Optional<InetSocketAddress> remoteAddress()
remoteAddress 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic List<org.springframework.http.codec.HttpMessageReader<?>> messageReaders()
messageReaders 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic <T> T body(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor,
Map<String,Object> hints)
body 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic <T> reactor.core.publisher.Mono<T> bodyToMono(Class<? extends T> elementClass)
bodyToMono 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic <T> reactor.core.publisher.Mono<T> bodyToMono(org.springframework.core.ParameterizedTypeReference<T> typeReference)
bodyToMono 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic <T> reactor.core.publisher.Flux<T> bodyToFlux(Class<? extends T> elementClass)
bodyToFlux 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic <T> reactor.core.publisher.Flux<T> bodyToFlux(org.springframework.core.ParameterizedTypeReference<T> typeReference)
bodyToFlux 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic Map<String,Object> attributes()
attributes 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.util.MultiValueMap<String,String> queryParams()
queryParams 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic Map<String,String> pathVariables()
pathVariables 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic reactor.core.publisher.Mono<org.springframework.web.server.WebSession> session()
session 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic reactor.core.publisher.Mono<? extends Principal> principal()
principal 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,String>> formData()
formData 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,org.springframework.http.codec.multipart.Part>> multipartData()
multipartData 在接口中 org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.web.server.ServerWebExchange exchange()
exchange 在接口中 org.springframework.web.reactive.function.server.ServerRequestCopyright © 2019 dromara. All rights reserved.