Class AccessTokenAppender
- java.lang.Object
- 
- org.bremersee.web.reactive.function.client.AccessTokenAppender
 
- 
- All Implemented Interfaces:
- org.springframework.web.reactive.function.client.ExchangeFilterFunction
 
 public class AccessTokenAppender extends Object implements org.springframework.web.reactive.function.client.ExchangeFilterFunction The access token appender.- Author:
- Christian Bremer
 
- 
- 
Constructor SummaryConstructors Constructor Description AccessTokenAppender(AccessTokenProvider<reactor.core.publisher.Mono<String>> accessTokenProvider)Instantiates a new access token appender.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse>filter(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ExchangeFunction next)static AccessTokenAppenderfromAuthentication()From authentication access token appender.static AccessTokenAppenderwithAccessTokenRetriever(AccessTokenRetriever<reactor.core.publisher.Mono<String>> retriever, AccessTokenRetrieverProperties properties)With access token retriever access token appender.static AccessTokenAppenderwithAccessTokenRetriever(AccessTokenRetrieverProperties properties)With access token retriever access token appender.
 
- 
- 
- 
Constructor Detail- 
AccessTokenAppenderpublic AccessTokenAppender(AccessTokenProvider<reactor.core.publisher.Mono<String>> accessTokenProvider) Instantiates a new access token appender.- Parameters:
- accessTokenProvider- the access token provider
 
 
- 
 - 
Method Detail- 
filter@NonNull public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> filter(@NonNull org.springframework.web.reactive.function.client.ClientRequest request, @NonNull org.springframework.web.reactive.function.client.ExchangeFunction next)- Specified by:
- filterin interface- org.springframework.web.reactive.function.client.ExchangeFilterFunction
 
 - 
fromAuthenticationpublic static AccessTokenAppender fromAuthentication() From authentication access token appender.- Returns:
- the access token appender
 
 - 
withAccessTokenRetrieverpublic static AccessTokenAppender withAccessTokenRetriever(AccessTokenRetrieverProperties properties) With access token retriever access token appender.- Parameters:
- properties- the properties
- Returns:
- the access token appender
 
 - 
withAccessTokenRetrieverpublic static AccessTokenAppender withAccessTokenRetriever(AccessTokenRetriever<reactor.core.publisher.Mono<String>> retriever, AccessTokenRetrieverProperties properties) With access token retriever access token appender.- Parameters:
- retriever- the retriever
- properties- the properties
- Returns:
- the access token appender
 
 
- 
 
-