You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: put method in http postprocessor
* feat: add endpointVariables functionality in http GET postprocessor
* chore: bump version
* add: unit test to parse endpointVariables
* remove: generated source
* add: include generated-sources in gitignore
* fix: null string validation
* doc: update documentation
* refactor: use []Object instead of string to handle endpointVariables
* remove: empty string validation
* test: add more unit test for multiple endpointVariables case
Copy file name to clipboardExpand all lines: dagger-core/src/main/java/io/odpf/dagger/core/processors/external/http/request/HttpPostRequestHandler.java
+9-5
Original file line number
Diff line number
Diff line change
@@ -19,24 +19,28 @@ public class HttpPostRequestHandler implements HttpRequestHandler {
19
19
privateAsyncHttpClienthttpClient;
20
20
privateObject[] requestVariablesValues;
21
21
privateObject[] dynamicHeaderVariablesValues;
22
+
privateObject[] endpointVariablesValues;
22
23
/**
23
24
* Instantiates a new Http post request handler.
24
25
*
25
-
* @param httpSourceConfig the http source config
26
-
* @param httpClient the http client
27
-
* @param requestVariablesValues the request variables values
26
+
* @param httpSourceConfig the http source config
27
+
* @param httpClient the http client
28
+
* @param requestVariablesValues the request variables values
29
+
* @param endpointVariablesValues the endpoint variables values
thrownewInvalidConfigurationException(String.format("pattern config '%s' is invalid", httpSourceConfig.getHeaderPattern()));
54
+
} catch (IllegalArgumentExceptione) {
55
+
thrownewInvalidConfigurationException(String.format("pattern config '%s' is incompatible with the variable config '%s'", httpSourceConfig.getHeaderPattern(), httpSourceConfig.getHeaderVariables()));
0 commit comments