public class KubernetesMixedDispatcher
extends okhttp3.mockwebserver.Dispatcher
MockDispatcher and a KubernetesCrudDispatcher.
Any request matching a pre-recorded response for the MockDispatcher is handled by the MockDispatcher. The rest of requests are forwarded to the KubernetesCrudDispatcher.
This dispatcher is useful to use the KubernetesMockServer in a mixed CRUD mode.
| Constructor and Description |
|---|
KubernetesMixedDispatcher(Map<io.fabric8.mockwebserver.ServerRequest,Queue<io.fabric8.mockwebserver.ServerResponse>> responses) |
KubernetesMixedDispatcher(Map<io.fabric8.mockwebserver.ServerRequest,Queue<io.fabric8.mockwebserver.ServerResponse>> responses,
List<CustomResourceDefinitionContext> crdContexts) |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.mockwebserver.MockResponse |
dispatch(okhttp3.mockwebserver.RecordedRequest request) |
public KubernetesMixedDispatcher(Map<io.fabric8.mockwebserver.ServerRequest,Queue<io.fabric8.mockwebserver.ServerResponse>> responses)
public KubernetesMixedDispatcher(Map<io.fabric8.mockwebserver.ServerRequest,Queue<io.fabric8.mockwebserver.ServerResponse>> responses, List<CustomResourceDefinitionContext> crdContexts)
public okhttp3.mockwebserver.MockResponse dispatch(okhttp3.mockwebserver.RecordedRequest request)
throws InterruptedException
dispatch in class okhttp3.mockwebserver.DispatcherInterruptedExceptionCopyright © 2015–2020 Red Hat. All rights reserved.