Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef2784696c | ||
|
|
8f08c1d979 | ||
|
|
27c43862d7 | ||
|
|
d1797eccc9 | ||
|
|
37acf3f4c9 | ||
|
|
fd8c74037d | ||
|
|
c758a09926 |
@@ -5,7 +5,7 @@
|
||||
|
||||
<groupId>com.inteligr8.alfresco</groupId>
|
||||
<artifactId>aps-public-rest-client</artifactId>
|
||||
<version>2.0.4-jersey</version>
|
||||
<version>2.0.5-jersey</version>
|
||||
|
||||
<name>Alfresco Process Services ReST API Client for Java</name>
|
||||
<description>An APS Client library for building Jersey-based REST API clients</description>
|
||||
@@ -45,13 +45,14 @@
|
||||
<junit.version>5.7.2</junit.version>
|
||||
<spring.version>5.3.6</spring.version>
|
||||
<jersey.version>2.39.1</jersey.version>
|
||||
<jackson.version>2.15.1</jackson.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.inteligr8</groupId>
|
||||
<artifactId>common-rest-client</artifactId>
|
||||
<version>2.0.2-jersey</version>
|
||||
<version>2.0.8-jersey</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.inteligr8.alfresco</groupId>
|
||||
@@ -96,6 +97,13 @@
|
||||
<artifactId>jersey-media-json-jackson</artifactId>
|
||||
<version>${jersey.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Jersey inclusion fallout -->
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
<version>${jackson.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -61,6 +61,12 @@ public abstract class ApsClientConfiguration implements ClientConfiguration {
|
||||
@Value("${process.service.security.oauth.grantPassword:#{null}}")
|
||||
private String oAuthPassword;
|
||||
|
||||
@Value("${process.service.http.connectTimeout:#{null}}")
|
||||
private Integer connectTimeoutInMillis;
|
||||
|
||||
@Value("${process.service.http.responseTimeout:#{null}}")
|
||||
private Integer responseTimeoutInMillis;
|
||||
|
||||
public String getBaseUrl() {
|
||||
return this.baseUrl;
|
||||
}
|
||||
@@ -148,5 +154,23 @@ public abstract class ApsClientConfiguration implements ClientConfiguration {
|
||||
public void setOAuthPassword(String oAuthPassword) {
|
||||
this.oAuthPassword = oAuthPassword;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getConnectTimeoutInMillis() {
|
||||
return this.connectTimeoutInMillis;
|
||||
}
|
||||
|
||||
public void setConnectTimeoutInMillis(Integer connectTimeoutInMillis) {
|
||||
this.connectTimeoutInMillis = connectTimeoutInMillis;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getResponseTimeoutInMillis() {
|
||||
return this.responseTimeoutInMillis;
|
||||
}
|
||||
|
||||
public void setResponseTimeoutInMillis(Integer responseTimeoutInMillis) {
|
||||
this.responseTimeoutInMillis = responseTimeoutInMillis;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user