Compare commits
34
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76447b9d41 | ||
|
|
fc0bb2e73f | ||
|
|
7d79448d6b | ||
|
|
215225537d | ||
|
|
93875d74ac | ||
|
|
4cd82b9afb | ||
|
|
a96e5f2a02 | ||
|
|
abec1452cf | ||
|
|
80cc21d013 | ||
|
|
889c94af0e | ||
|
|
24c9484712 | ||
|
|
5b310afaa6 | ||
|
|
a5d09e2fa8 | ||
|
|
28b3c5d10f | ||
|
|
b1c32b5adf | ||
|
|
085da3e180 | ||
|
|
ef2784696c | ||
|
|
8f08c1d979 | ||
|
|
5cce720728 | ||
|
|
097bb909be | ||
|
|
27c43862d7 | ||
|
|
d1797eccc9 | ||
|
|
37acf3f4c9 | ||
|
|
fd8c74037d | ||
|
|
c758a09926 | ||
|
|
cd237cc929 | ||
|
|
afbbb0f997 | ||
|
|
9b565aa0db | ||
|
|
d4cd9ec777 | ||
|
|
a59757ce02 | ||
|
|
2f1dda9644 | ||
|
|
8543001da2 | ||
|
|
7cdbfcb62b | ||
|
|
a13e2c7125 |
@@ -5,8 +5,8 @@
|
||||
|
||||
<groupId>com.inteligr8.alfresco</groupId>
|
||||
<artifactId>aps-public-rest-client</artifactId>
|
||||
<version>2.0.3-jersey</version>
|
||||
|
||||
<version>3.0.2-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>
|
||||
<url>https://bitbucket.org/inteligr8/aps-public-rest-client</url>
|
||||
@@ -38,25 +38,27 @@
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<maven.compiler.release>11</maven.compiler.release>
|
||||
<maven.compiler.debuglevel>lines,vars,source</maven.compiler.debuglevel>
|
||||
|
||||
<junit.version>5.7.2</junit.version>
|
||||
<spring.version>5.3.6</spring.version>
|
||||
<jersey.version>2.39.1</jersey.version>
|
||||
<junit.version>5.10.0</junit.version>
|
||||
<spring.version>6.0.19</spring.version>
|
||||
<jersey.version>3.1.8</jersey.version>
|
||||
<jackson.version>2.17.2</jackson.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.inteligr8</groupId>
|
||||
<artifactId>common-rest-client</artifactId>
|
||||
<version>2.0.1-jersey</version>
|
||||
<version>3.0.0-jersey</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.inteligr8.alfresco</groupId>
|
||||
<artifactId>aps-public-rest-api</artifactId>
|
||||
<version>2.0.8</version>
|
||||
<version>3.0.5</version>
|
||||
<scope>provided</scope> <!-- explicitly, bring your own version -->
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -80,7 +82,7 @@
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-slf4j-impl</artifactId>
|
||||
<version>2.19.0</version>
|
||||
<version>2.20.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
@@ -89,13 +91,19 @@
|
||||
<groupId>org.glassfish.jersey.inject</groupId>
|
||||
<artifactId>jersey-hk2</artifactId>
|
||||
<version>${jersey.version}</version>
|
||||
<scope>test</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.glassfish.jersey.media</groupId>
|
||||
<artifactId>jersey-media-json-jackson</artifactId>
|
||||
<version>${jersey.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Jersey inclusion fallout -->
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
<version>${jackson.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.inteligr8.alfresco.activiti;
|
||||
|
||||
import com.inteligr8.rs.Client;
|
||||
|
||||
/**
|
||||
* This class serves as the entrypoint to the JAX-RS API for the APS Public
|
||||
* ReST API.
|
||||
*
|
||||
* @author brian@inteligr8.com
|
||||
*/
|
||||
public class ApsProtectedRestApiImpl implements ApsProtectedRestApi {
|
||||
|
||||
private Client client;
|
||||
|
||||
public ApsProtectedRestApiImpl(Client client) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
public Client getClient() {
|
||||
return this.client;
|
||||
}
|
||||
|
||||
public final <T> T getApi(Class<T> apiClass) {
|
||||
return this.client.getApi(apiClass);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.inteligr8.alfresco.activiti;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* This class provides the Jersey client to the JAX-RS API for the Activiti &
|
||||
* APS public ReST API and some non-public APS ReST API.
|
||||
*
|
||||
* @author brian@inteligr8.com
|
||||
*/
|
||||
@Component("aps.protected-api.jersey")
|
||||
@Lazy
|
||||
public class ApsProtectedRestApiJerseyImpl extends ApsProtectedRestApiImpl implements ApsProtectedRestJerseyApi {
|
||||
|
||||
/**
|
||||
* This constructor is for Spring or POJO use
|
||||
*/
|
||||
@Autowired
|
||||
public ApsProtectedRestApiJerseyImpl(ApsClientJerseyImpl client) {
|
||||
super(client);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user