public class TokenRefreshInterceptor extends Object implements Interceptor
| Constructor and Description |
|---|
TokenRefreshInterceptor(Config config,
HttpClient.Factory factory) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
afterFailure(BasicBuilder headerBuilder,
HttpResponse<?> response)
Called after a websocket failure or by default from a normal request
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterFailure, beforepublic static final String NAME
public TokenRefreshInterceptor(Config config, HttpClient.Factory factory)
public CompletableFuture<Boolean> afterFailure(BasicBuilder headerBuilder, HttpResponse<?> response)
InterceptorafterFailure in interface InterceptorheaderBuilder - used to modify the requestresponse - the failed responseCopyright © 2015–2022 Red Hat. All rights reserved.