public class TokenRefreshInterceptor extends Object implements Interceptor
Constructor and Description |
---|
TokenRefreshInterceptor(Config config,
HttpClient.Factory factory) |
Modifier and Type | Method and Description |
---|---|
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, wait
afterFailure, before
public static final String NAME
public TokenRefreshInterceptor(Config config, HttpClient.Factory factory)
public boolean afterFailure(BasicBuilder headerBuilder, HttpResponse<?> response)
Interceptor
afterFailure
in interface Interceptor
headerBuilder
- used to modify the requestresponse
- the failed responseCopyright © 2015–2020 Red Hat. All rights reserved.