From 1962426e6a8ec466ea1640de216c2d1a254fa084 Mon Sep 17 00:00:00 2001 From: Viren Baraiya Date: Wed, 7 Sep 2022 23:21:18 -0500 Subject: [PATCH] more clients --- .../client/http/OrkesEventClient.java | 23 +++++++++++++++++++ .../client/http/OrkesMetadataClient.java | 23 +++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/src/main/java/io/orkes/conductor/client/http/OrkesEventClient.java b/src/main/java/io/orkes/conductor/client/http/OrkesEventClient.java index a1ef8391..e81d9d31 100644 --- a/src/main/java/io/orkes/conductor/client/http/OrkesEventClient.java +++ b/src/main/java/io/orkes/conductor/client/http/OrkesEventClient.java @@ -1,9 +1,32 @@ package io.orkes.conductor.client.http; +import com.netflix.conductor.client.config.ConductorClientConfiguration; import com.netflix.conductor.client.http.EventClient; +import com.sun.jersey.api.client.ClientHandler; +import com.sun.jersey.api.client.config.ClientConfig; +import com.sun.jersey.api.client.filter.ClientFilter; import io.orkes.conductor.client.http.auth.AuthorizationClientFilter; public class OrkesEventClient extends EventClient implements OrkesClient { + public OrkesEventClient() { + } + + public OrkesEventClient(ClientConfig clientConfig) { + super(clientConfig); + } + + public OrkesEventClient(ClientConfig clientConfig, ClientHandler clientHandler) { + super(clientConfig, clientHandler); + } + + public OrkesEventClient(ClientConfig config, ClientHandler handler, ClientFilter... filters) { + super(config, handler, filters); + } + + public OrkesEventClient(ClientConfig config, ConductorClientConfiguration clientConfiguration, ClientHandler handler, ClientFilter... filters) { + super(config, clientConfiguration, handler, filters); + } + @Override public void withCredentials(String keyId, String secret) { this.client.addFilter(new AuthorizationClientFilter(root, keyId, secret)); diff --git a/src/main/java/io/orkes/conductor/client/http/OrkesMetadataClient.java b/src/main/java/io/orkes/conductor/client/http/OrkesMetadataClient.java index 6a386630..7df86d3c 100644 --- a/src/main/java/io/orkes/conductor/client/http/OrkesMetadataClient.java +++ b/src/main/java/io/orkes/conductor/client/http/OrkesMetadataClient.java @@ -1,9 +1,32 @@ package io.orkes.conductor.client.http; +import com.netflix.conductor.client.config.ConductorClientConfiguration; import com.netflix.conductor.client.http.MetadataClient; +import com.sun.jersey.api.client.ClientHandler; +import com.sun.jersey.api.client.config.ClientConfig; +import com.sun.jersey.api.client.filter.ClientFilter; import io.orkes.conductor.client.http.auth.AuthorizationClientFilter; public class OrkesMetadataClient extends MetadataClient implements OrkesClient { + public OrkesMetadataClient() { + } + + public OrkesMetadataClient(ClientConfig clientConfig) { + super(clientConfig); + } + + public OrkesMetadataClient(ClientConfig clientConfig, ClientHandler clientHandler) { + super(clientConfig, clientHandler); + } + + public OrkesMetadataClient(ClientConfig config, ClientHandler handler, ClientFilter... filters) { + super(config, handler, filters); + } + + public OrkesMetadataClient(ClientConfig config, ConductorClientConfiguration clientConfiguration, ClientHandler handler, ClientFilter... filters) { + super(config, clientConfiguration, handler, filters); + } + @Override public void withCredentials(String keyId, String secret) { this.client.addFilter(new AuthorizationClientFilter(root, keyId, secret));