Skip to content

Commit

Permalink
unstable commit, docker test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Conor Flynn committed Feb 1, 2023
1 parent a3750de commit 2374c8c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.stream.external.requester;

import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;

import okhttp3.Request;
import okhttp3.Request.Builder;
Expand All @@ -18,7 +20,7 @@ public RequestFramework(String url, HashMap<String, String> properties, HashMap<
this.tags = tags;
}

private final Request getRequest(HashMap<String, String> properties, HashMap<String, String> headers) {
protected final Request getRequest(HashMap<String, String> properties, HashMap<String, String> headers) {
HashMap<String, String> all_properties = new HashMap<String, String>();
HashMap<String, String> all_headers = new HashMap<String, String>();

Expand Down Expand Up @@ -90,9 +92,14 @@ private final Request getRequest(HashMap<String, String> properties, HashMap<Str
public final String[] getTags() {
return this.tags;
}

protected void request(HashMap<String, String> properties, HashMap<String, String> headers) {

@SuppressWarnings("unchecked")
public final void request(HashMap<String, String> properties, HashMap<String, String> headers) {
// clone maps and push to process
HashMap<String, String> cloned_properties = (HashMap<String, String>) properties.clone();
HashMap<String, String> cloned_headers = (HashMap<String, String>) headers.clone();

process(cloned_properties, cloned_headers);
}

protected abstract void process(HashMap<String, String> properties, HashMap<String, String> headers);
Expand Down
Binary file not shown.

0 comments on commit 2374c8c

Please sign in to comment.