Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCX-45 Use http-builder-ng-okhttp with PATCH requests support #41

Merged
merged 1 commit into from
Feb 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ v1.4.2 [unreleased]
- [#30](https://github.com/latera/camunda-ext/pull/30) Fix wrong Self-Care app id passing into method calls
- [#26](https://github.com/latera/camunda-ext/pull/26) Fix passing appCode into hid.Hydra#mainInit method
- [#34](https://github.com/latera/camunda-ext/pull/34) Search settlement accounts for base subjects, not personal ones
- [#41](https://github.com/latera/camunda-ext/pull/41) Use http-builder-ng-okhttp with PATCH requests support

v1.4.1 [2020-02-14]
-------------------
Expand Down
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
<id>maven.thingml.org</id>
<url>http://maven.thingml.org/thirdparty</url>
</repository>
<repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -146,6 +150,12 @@
<version>${http-builder-ng.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.github.http-builder-ng</groupId>
<artifactId>http-builder-ng-okhttp</artifactId>
<version>${http-builder-ng.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions src/org/camunda/latera/bss/http/HTTPRestProcessor.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.camunda.latera.bss.http

import groovyx.net.http.HttpBuilder
import groovyx.net.http.OkHttpBuilder
import groovyx.net.http.FromServer
import groovyx.net.http.HttpException
import org.camunda.latera.bss.logging.SimpleLogger
Expand All @@ -10,7 +10,7 @@ import static org.camunda.latera.bss.utils.ListUtil.firstNotNull
import static org.camunda.latera.bss.utils.JSON.escape

class HTTPRestProcessor {
HttpBuilder httpClient
OkHttpBuilder httpClient
String baseUrl
String basePath
SimpleLogger logger
Expand Down Expand Up @@ -46,7 +46,7 @@ class HTTPRestProcessor {
params.remove('supressResponseBodyLog')
params.remove('execution')

this.httpClient = HttpBuilder.configure {
this.httpClient = OkHttpBuilder.configure {
request.uri = this.baseUrl.toString()
params.remove('baseUrl')

Expand Down