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 java.lang.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
-
Constructor Summary
Constructors Constructor Description GetOAuthTokenClientResponse(java.lang.String authorizationHeader) -
Method Summary
Modifier and Type Method Description <T> Tbody(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.client.reactive.ClientHttpResponse> extractor)<T> reactor.core.publisher.Flux<T>bodyToFlux(java.lang.Class<? extends T> elementClass)<T> reactor.core.publisher.Flux<T>bodyToFlux(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)<T> reactor.core.publisher.Mono<T>bodyToMono(java.lang.Class<? extends T> elementClass)<T> reactor.core.publisher.Mono<T>bodyToMono(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)org.springframework.util.MultiValueMap<java.lang.String,org.springframework.http.ResponseCookie>cookies()reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.WebClientResponseException>createException()org.springframework.web.reactive.function.client.ClientResponse.Headersheaders()java.lang.StringlogPrefix()intrawStatusCode()reactor.core.publisher.Mono<java.lang.Void>releaseBody()org.springframework.http.HttpStatusstatusCode()org.springframework.web.reactive.function.client.ExchangeStrategiesstrategies()reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<java.lang.Void>>toBodilessEntity()<T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>>toEntity(java.lang.Class<T> bodyClass)<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<java.util.List<T>>>toEntityList(java.lang.Class<T> elementClass)<T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<java.util.List<T>>>toEntityList(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)
-
Constructor Details
-
GetOAuthTokenClientResponse
public GetOAuthTokenClientResponse(java.lang.String authorizationHeader)
-
-
Method Details
-
statusCode
public org.springframework.http.HttpStatus statusCode()- Specified by:
statusCodein interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
rawStatusCode
public int rawStatusCode()- Specified by:
rawStatusCodein interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
headers
public org.springframework.web.reactive.function.client.ClientResponse.Headers headers()- Specified by:
headersin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
cookies
public org.springframework.util.MultiValueMap<java.lang.String,org.springframework.http.ResponseCookie> cookies()- Specified by:
cookiesin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
strategies
public org.springframework.web.reactive.function.client.ExchangeStrategies strategies()- Specified by:
strategiesin 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:
bodyin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
bodyToMono
public <T> reactor.core.publisher.Mono<T> bodyToMono(java.lang.Class<? extends T> elementClass)- Specified by:
bodyToMonoin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
bodyToMono
public <T> reactor.core.publisher.Mono<T> bodyToMono(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)- Specified by:
bodyToMonoin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
bodyToFlux
public <T> reactor.core.publisher.Flux<T> bodyToFlux(java.lang.Class<? extends T> elementClass)- Specified by:
bodyToFluxin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
bodyToFlux
public <T> reactor.core.publisher.Flux<T> bodyToFlux(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)- Specified by:
bodyToFluxin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
releaseBody
public reactor.core.publisher.Mono<java.lang.Void> releaseBody()- Specified by:
releaseBodyin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
toEntity
public <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> toEntity(java.lang.Class<T> bodyClass)- Specified by:
toEntityin 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:
toEntityin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
toEntityList
public <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<java.util.List<T>>> toEntityList(java.lang.Class<T> elementClass)- Specified by:
toEntityListin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
toEntityList
public <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<java.util.List<T>>> toEntityList(org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)- Specified by:
toEntityListin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
toBodilessEntity
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<java.lang.Void>> toBodilessEntity()- Specified by:
toBodilessEntityin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
createException
public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.WebClientResponseException> createException()- Specified by:
createExceptionin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-
logPrefix
public java.lang.String logPrefix()- Specified by:
logPrefixin interfaceorg.springframework.web.reactive.function.client.ClientResponse
-