Skip to content

Commit

Permalink
more clients
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r3n committed Sep 8, 2022
1 parent ced770f commit 1962426
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/main/java/io/orkes/conductor/client/http/OrkesEventClient.java
Original file line number Diff line number Diff line change
@@ -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));
Expand Down
Original file line number Diff line number Diff line change
@@ -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));
Expand Down

0 comments on commit 1962426

Please sign in to comment.