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

    Constructors
    Constructor
    Description
    GetOAuthTokenClientResponse(String authorizationHeader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> @NonNull T
    body(@NonNull org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.client.reactive.ClientHttpResponse> extractor)
     
    <T> @NonNull reactor.core.publisher.Flux<T>
    bodyToFlux(@NonNull Class<? extends T> elementClass)
     
    <T> @NonNull reactor.core.publisher.Flux<T>
    bodyToFlux(@NonNull org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)
     
    <T> @NonNull reactor.core.publisher.Mono<T>
    bodyToMono(@NonNull Class<? extends T> elementClass)
     
    <T> @NonNull reactor.core.publisher.Mono<T>
    bodyToMono(@NonNull org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)
     
    @NonNull org.springframework.util.MultiValueMap<String,org.springframework.http.ResponseCookie>
     
    <T> @NonNull reactor.core.publisher.Mono<T>
     
    @NonNull reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.WebClientResponseException>
     
    @NonNull org.springframework.web.reactive.function.client.ClientResponse.Headers
     
    @NonNull String
     
    @NonNull reactor.core.publisher.Mono<Void>
     
    @NonNull org.springframework.http.HttpRequest
     
    @NonNull org.springframework.http.HttpStatus
     
    @NonNull org.springframework.web.reactive.function.client.ExchangeStrategies
     
    @NonNull reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Void>>
     
    <T> @NonNull reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>>
    toEntity(@NonNull Class<T> bodyClass)
     
    <T> @NonNull reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>>
    toEntity(@NonNull org.springframework.core.ParameterizedTypeReference<T> bodyTypeReference)
     
    <T> @NonNull reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>>
    toEntityList(@NonNull Class<T> elementClass)
     
    <T> @NonNull reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>>
    toEntityList(@NonNull 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

      public GetOAuthTokenClientResponse(String authorizationHeader)
  • Method Details

    • statusCode

      public @NonNull org.springframework.http.HttpStatus statusCode()
      Specified by:
      statusCode in interface org.springframework.web.reactive.function.client.ClientResponse
    • headers

      public @NonNull org.springframework.web.reactive.function.client.ClientResponse.Headers headers()
      Specified by:
      headers in interface org.springframework.web.reactive.function.client.ClientResponse
    • cookies

      public @NonNull org.springframework.util.MultiValueMap<String,org.springframework.http.ResponseCookie> cookies()
      Specified by:
      cookies in interface org.springframework.web.reactive.function.client.ClientResponse
    • strategies

      public @NonNull org.springframework.web.reactive.function.client.ExchangeStrategies strategies()
      Specified by:
      strategies in interface org.springframework.web.reactive.function.client.ClientResponse
    • body

      public <T> @NonNull T body(@NonNull org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.client.reactive.ClientHttpResponse> extractor)
      Specified by:
      body in interface org.springframework.web.reactive.function.client.ClientResponse
    • bodyToMono

      public <T> @NonNull reactor.core.publisher.Mono<T> bodyToMono(@NonNull Class<? extends T> elementClass)
      Specified by:
      bodyToMono in interface org.springframework.web.reactive.function.client.ClientResponse
    • bodyToMono

      public <T> @NonNull reactor.core.publisher.Mono<T> bodyToMono(@NonNull org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)
      Specified by:
      bodyToMono in interface org.springframework.web.reactive.function.client.ClientResponse
    • bodyToFlux

      public <T> @NonNull reactor.core.publisher.Flux<T> bodyToFlux(@NonNull Class<? extends T> elementClass)
      Specified by:
      bodyToFlux in interface org.springframework.web.reactive.function.client.ClientResponse
    • bodyToFlux

      public <T> @NonNull reactor.core.publisher.Flux<T> bodyToFlux(@NonNull org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)
      Specified by:
      bodyToFlux in interface org.springframework.web.reactive.function.client.ClientResponse
    • releaseBody

      public @NonNull reactor.core.publisher.Mono<Void> releaseBody()
      Specified by:
      releaseBody in interface org.springframework.web.reactive.function.client.ClientResponse
    • toEntity

      public <T> @NonNull reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> toEntity(@NonNull Class<T> bodyClass)
      Specified by:
      toEntity in interface org.springframework.web.reactive.function.client.ClientResponse
    • toEntity

      public <T> @NonNull reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> toEntity(@NonNull org.springframework.core.ParameterizedTypeReference<T> bodyTypeReference)
      Specified by:
      toEntity in interface org.springframework.web.reactive.function.client.ClientResponse
    • toEntityList

      public <T> @NonNull reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>> toEntityList(@NonNull Class<T> elementClass)
      Specified by:
      toEntityList in interface org.springframework.web.reactive.function.client.ClientResponse
    • toEntityList

      public <T> @NonNull reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>> toEntityList(@NonNull org.springframework.core.ParameterizedTypeReference<T> elementTypeRef)
      Specified by:
      toEntityList in interface org.springframework.web.reactive.function.client.ClientResponse
    • toBodilessEntity

      public @NonNull reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Void>> toBodilessEntity()
      Specified by:
      toBodilessEntity in interface org.springframework.web.reactive.function.client.ClientResponse
    • createException

      public @NonNull reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.WebClientResponseException> createException()
      Specified by:
      createException in interface org.springframework.web.reactive.function.client.ClientResponse
    • logPrefix

      public @NonNull String logPrefix()
      Specified by:
      logPrefix in interface org.springframework.web.reactive.function.client.ClientResponse
    • createError

      public <T> @NonNull reactor.core.publisher.Mono<T> createError()
      Specified by:
      createError in interface org.springframework.web.reactive.function.client.ClientResponse
    • request

      public @NonNull org.springframework.http.HttpRequest request()
      Specified by:
      request in interface org.springframework.web.reactive.function.client.ClientResponse