Class OAuthTokenExtractor.GetOAuthTokenClientResponse
java.lang.Object
com.graphql_java_generator.client.OAuthTokenExtractor.GetOAuthTokenClientResponse
- All Implemented Interfaces:
org.springframework.web.reactive.function.client.ClientResponse
- Enclosing class:
- OAuthTokenExtractor
public static class OAuthTokenExtractor.GetOAuthTokenClientResponse
extends Object
implements org.springframework.web.reactive.function.client.ClientResponse
An implementation of a spring
ClientResponse
, that will contain the faked response, which body is the
value for the Authorization header (that contains the bearer token)- Author:
- etienne-sf
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.web.reactive.function.client.ClientResponse
org.springframework.web.reactive.function.client.ClientResponse.Builder, org.springframework.web.reactive.function.client.ClientResponse.Headers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
body
(org.springframework.web.reactive.function.BodyExtractor<T, ? super org.springframework.http.client.reactive.ClientHttpResponse> extractor) <T> reactor.core.publisher.Flux<T>
bodyToFlux
(Class<? extends T> elementClass) <T> reactor.core.publisher.Flux<T>
bodyToFlux
(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef) <T> reactor.core.publisher.Mono<T>
bodyToMono
(Class<? extends T> elementClass) <T> reactor.core.publisher.Mono<T>
bodyToMono
(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef) org.springframework.util.MultiValueMap<String,
org.springframework.http.ResponseCookie> cookies()
<T> reactor.core.publisher.Mono<T>
reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.WebClientResponseException>
org.springframework.web.reactive.function.client.ClientResponse.Headers
headers()
int
reactor.core.publisher.Mono<Void>
org.springframework.http.HttpStatus
org.springframework.web.reactive.function.client.ExchangeStrategies
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Void>>
<T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>>
<T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>>
toEntity
(org.springframework.core.ParameterizedTypeReference<T> bodyTypeReference) <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>>
toEntityList
(Class<T> elementClass) <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>>
toEntityList
(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.reactive.function.client.ClientResponse
mutate
-
Constructor Details
-
GetOAuthTokenClientResponse
-
-
Method Details
-
statusCode
public org.springframework.http.HttpStatus statusCode()- Specified by:
statusCode
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
rawStatusCode
public int rawStatusCode()- Specified by:
rawStatusCode
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
headers
public org.springframework.web.reactive.function.client.ClientResponse.Headers headers()- Specified by:
headers
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
cookies
public org.springframework.util.MultiValueMap<String,org.springframework.http.ResponseCookie> cookies()- Specified by:
cookies
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
strategies
public org.springframework.web.reactive.function.client.ExchangeStrategies strategies()- Specified by:
strategies
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
body
public <T> T body(org.springframework.web.reactive.function.BodyExtractor<T, ? super org.springframework.http.client.reactive.ClientHttpResponse> extractor) - Specified by:
body
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
bodyToMono
- Specified by:
bodyToMono
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
bodyToMono
public <T> reactor.core.publisher.Mono<T> bodyToMono(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef) - Specified by:
bodyToMono
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
bodyToFlux
- Specified by:
bodyToFlux
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
bodyToFlux
public <T> reactor.core.publisher.Flux<T> bodyToFlux(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef) - Specified by:
bodyToFlux
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
releaseBody
- Specified by:
releaseBody
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
toEntity
public <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> toEntity(Class<T> bodyClass) - Specified by:
toEntity
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
toEntity
public <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> toEntity(org.springframework.core.ParameterizedTypeReference<T> bodyTypeReference) - Specified by:
toEntity
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
toEntityList
public <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>> toEntityList(Class<T> elementClass) - Specified by:
toEntityList
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
toEntityList
public <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>> toEntityList(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef) - Specified by:
toEntityList
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
toBodilessEntity
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Void>> toBodilessEntity()- Specified by:
toBodilessEntity
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
createException
public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.WebClientResponseException> createException()- Specified by:
createException
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
logPrefix
- Specified by:
logPrefix
in interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
createError
public <T> reactor.core.publisher.Mono<T> createError()
-