Class BackwardsCompatibilityInterceptor
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.BackwardsCompatibilityInterceptor
-
- All Implemented Interfaces:
Interceptor
public class BackwardsCompatibilityInterceptor extends Object implements Interceptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.client.http.Interceptor
Interceptor.RequestTags
-
-
Constructor Summary
Constructors Constructor Description BackwardsCompatibilityInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Boolean>
afterFailure(BasicBuilder basicBuilder, HttpResponse<?> response, Interceptor.RequestTags tags)
Called after a websocket failure or by default from a normal request.CompletableFuture<Boolean>
afterFailure(HttpRequest.Builder builder, HttpResponse<?> response, Interceptor.RequestTags tags)
Called after a non-websocket failureio.fabric8.kubernetes.client.utils.BackwardsCompatibilityInterceptor.ResourceKey
findNewTarget(BasicBuilder basicBuilder, HttpResponse<?> response)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.client.http.Interceptor
after, afterConnectionFailure, before, consumer
-
-
-
-
Field Detail
-
JSON
public static final String JSON
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
afterFailure
public CompletableFuture<Boolean> afterFailure(HttpRequest.Builder builder, HttpResponse<?> response, Interceptor.RequestTags tags)
Description copied from interface:Interceptor
Called after a non-websocket failureFailure is determined by HTTP status code and will be invoked in addition to
Interceptor.after(HttpRequest, HttpResponse, AsyncBody.Consumer)
- Specified by:
afterFailure
in interfaceInterceptor
- Parameters:
builder
- used to modify the requestresponse
- the failed response- Returns:
- true if the builder should be used to execute a new request
-
findNewTarget
public io.fabric8.kubernetes.client.utils.BackwardsCompatibilityInterceptor.ResourceKey findNewTarget(BasicBuilder basicBuilder, HttpResponse<?> response)
-
afterFailure
public CompletableFuture<Boolean> afterFailure(BasicBuilder basicBuilder, HttpResponse<?> response, Interceptor.RequestTags tags)
Description copied from interface:Interceptor
Called after a websocket failure or by default from a normal request.Failure is determined by HTTP status code and will be invoked in addition to
Interceptor.after(HttpRequest, HttpResponse, AsyncBody.Consumer)
- Specified by:
afterFailure
in interfaceInterceptor
- Parameters:
basicBuilder
- used to modify the requestresponse
- the failed response- Returns:
- true if the builder should be used to execute a new request
-
-