forked from gCubeSystem/gx-rest
Switched JSON Management to gcube-jackson
This commit is contained in:
parent
93569cd265
commit
f027923cdf
45
CHANGELOG.md
45
CHANGELOG.md
|
@ -1,11 +1,40 @@
|
||||||
# Changelog for gx-Rest
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [v1.1.3] 2019-10-19
|
# Changelog for gxREST
|
||||||
* Allow clients to set secure protocol
|
|
||||||
* Switch rom TLSv1 to TLSv1.2
|
|
||||||
|
|
||||||
## [v1.1.2] 2019-10-19
|
|
||||||
* Migration to Git
|
|
||||||
|
|
||||||
## [v1.1.1] 2019-03-30
|
## [v2.0.0-SNAPSHOT] [r5.0.0] -
|
||||||
* Allow to set the media type for the returned entity in the Error Response.
|
|
||||||
|
- Switched JSON management to gcube-jackson [#19737]
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.1.3] [r4.20.0] - 2019-10-19
|
||||||
|
|
||||||
|
- Allow clients to set secure protocol
|
||||||
|
- Switch from TLSv1 to TLSv1.2
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.1.2] [r4.20.0] - 2019-10-19
|
||||||
|
|
||||||
|
- Migration to Git
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.1.1] [r4.0.0] - 2019-03-30
|
||||||
|
|
||||||
|
- Allow to set the media type for the returned entity in the Error Response.
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.1.0] [r4.13.1] - 2019-02-26
|
||||||
|
|
||||||
|
- ...
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.0.1] [r4.13.0] - 2018-11-20
|
||||||
|
|
||||||
|
- ...
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.0.0] [r4.12.0] - 2018-06-20
|
||||||
|
|
||||||
|
- First Release
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
gxRest
|
# gxREST
|
||||||
----
|
|
||||||
|
|
||||||
The gCube eXtensions to the Rest Protocol (gxRest) is a set of Java libraries designed to provide convenient round-trip interaction between a Restful web application (also known as "service") and its clients.
|
The gCube eXtensions to the Rest Protocol (gxRest) is a set of Java libraries designed to provide convenient round-trip interaction between a Restful web application (also known as "service") and its clients.
|
||||||
|
|
||||||
gxRest has the flexibility for different degrees of exploitation:
|
gxRest has the flexibility for different degrees of exploitation:
|
||||||
|
|
|
@ -1,11 +1,39 @@
|
||||||
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
# Changelog for gxHTTP
|
# Changelog for gxHTTP
|
||||||
|
|
||||||
## [v1.1.3] [rxxx] 2019-10-19
|
|
||||||
* Allow clients to set secure protocol
|
|
||||||
* Switch rom TLSv1 to TLSv1.2
|
|
||||||
|
|
||||||
## [v1.1.2] [r4.15.0] 2019-10-19
|
## [v2.0.0-SNAPSHOT] [r5.0.0] -
|
||||||
* Migration to Git
|
|
||||||
|
|
||||||
## [v1.1.1] [r4.0.0] 2019-03-30
|
- Switched JSON management to gcube-jackson [#19737]
|
||||||
* Allow tw to set the media type for the returned entity in the Error Response.
|
|
||||||
|
|
||||||
|
## [v1.1.3] [r4.20.0] - 2019-10-19
|
||||||
|
|
||||||
|
- Allow clients to set secure protocol
|
||||||
|
- Switch from TLSv1 to TLSv1.2
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.1.2] [r4.20.0] - 2019-10-19
|
||||||
|
|
||||||
|
- Migration to Git
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.1.1] [r4.0.0] - 2019-03-30
|
||||||
|
|
||||||
|
- Allow to set the media type for the returned entity in the Error Response.
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.1.0] [r4.13.1] - 2019-02-26
|
||||||
|
|
||||||
|
- ...
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.0.1] [r4.13.0] - 2018-11-20
|
||||||
|
|
||||||
|
- ...
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.0.0] [r4.12.0] - 2018-06-20
|
||||||
|
|
||||||
|
- First Release
|
|
@ -7,11 +7,11 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.gcube.common</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
<artifactId>gxREST</artifactId>
|
<artifactId>gxREST</artifactId>
|
||||||
<version>1.1.3</version>
|
<version>2.0.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.gcube.common</groupId>
|
|
||||||
<artifactId>gxHTTP</artifactId>
|
|
||||||
|
|
||||||
|
<artifactId>gxHTTP</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
<name>gCube eXtensions to REST with HTTP</name>
|
<name>gCube eXtensions to REST with HTTP</name>
|
||||||
<description>gCube eXtensions to REST based on HTTP</description>
|
<description>gCube eXtensions to REST based on HTTP</description>
|
||||||
|
|
||||||
|
@ -46,18 +46,5 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>make-servicearchive</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,11 +1,39 @@
|
||||||
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
# Changelog for gxJRS
|
# Changelog for gxJRS
|
||||||
|
|
||||||
## [v1.1.3] [rxxx] 2019-10-19
|
|
||||||
* Allow clients to set secure protocol
|
|
||||||
* Switch rom TLSv1 to TLSv1.2
|
|
||||||
|
|
||||||
## [v1.1.2] [r4.15.0] 2019-10-19
|
## [v2.0.0-SNAPSHOT] [r5.0.0] -
|
||||||
* Migration to Git
|
|
||||||
|
|
||||||
## [v1.1.1] [r4.0.0] 2019-03-30
|
- Switched JSON management to gcube-jackson [#19737]
|
||||||
* Allow to set the media type for the returned entity in the Error Response.
|
|
||||||
|
|
||||||
|
## [v1.1.3] [r4.20.0] - 2019-10-19
|
||||||
|
|
||||||
|
- Allow clients to set secure protocol
|
||||||
|
- Switch from TLSv1 to TLSv1.2
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.1.2] [r4.20.0] - 2019-10-19
|
||||||
|
|
||||||
|
- Migration to Git
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.1.1] [r4.0.0] - 2019-03-30
|
||||||
|
|
||||||
|
- Allow to set the media type for the returned entity in the Error Response.
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.1.0] [r4.13.1] - 2019-02-26
|
||||||
|
|
||||||
|
- ...
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.0.1] [r4.13.0] - 2018-11-20
|
||||||
|
|
||||||
|
- ...
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.0.0] [r4.12.0] - 2018-06-20
|
||||||
|
|
||||||
|
- First Release
|
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.gcube.common</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
<artifactId>gxREST</artifactId>
|
<artifactId>gxREST</artifactId>
|
||||||
<version>1.1.3</version>
|
<version>2.0.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>gxJRS</artifactId>
|
<artifactId>gxJRS</artifactId>
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.distribution</groupId>
|
<groupId>org.gcube.distribution</groupId>
|
||||||
<artifactId>gcube-bom</artifactId>
|
<artifactId>gcube-bom</artifactId>
|
||||||
<version>1.3.1</version>
|
<version>2.0.0-SNAPSHOT</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -49,12 +49,10 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>javax.ws.rs</groupId>
|
<groupId>javax.ws.rs</groupId>
|
||||||
<artifactId>javax.ws.rs-api</artifactId>
|
<artifactId>javax.ws.rs-api</artifactId>
|
||||||
<version>${jaxrs.version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.common</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
<artifactId>gxHTTP</artifactId>
|
<artifactId>gxHTTP</artifactId>
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.common</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
|
@ -62,19 +60,23 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>gcube-jackson-databind</artifactId>
|
||||||
<scope>provided</scope>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.common</groupId>
|
||||||
|
<artifactId>gcube-jackson-core</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<!-- <dependency> -->
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
|
||||||
<artifactId>jackson-core</artifactId>
|
<!-- <artifactId>jackson-core</artifactId> -->
|
||||||
</dependency>
|
<!-- </dependency> -->
|
||||||
<dependency>
|
<!-- <dependency> -->
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
|
||||||
<artifactId>jackson-databind</artifactId>
|
<!-- <artifactId>jackson-databind</artifactId> -->
|
||||||
</dependency>
|
<!-- </dependency> -->
|
||||||
|
|
||||||
|
|
||||||
<!-- Test Dependency -->
|
<!-- Test Dependency -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -97,7 +99,6 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ch.qos.logback</groupId>
|
<groupId>ch.qos.logback</groupId>
|
||||||
<artifactId>logback-classic</artifactId>
|
<artifactId>logback-classic</artifactId>
|
||||||
<version>1.0.13</version>
|
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.gcube.common.gxrest.response.inbound;
|
package org.gcube.common.gxrest.response.inbound;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import org.gcube.com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manipulation of an {@link GXInboundResponse}'s content.
|
* Manipulation of an {@link GXInboundResponse}'s content.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package org.gcube.common.gxrest.request;
|
package org.gcube.common.gxrest.request;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
@ -8,6 +9,7 @@ import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.WeakHashMap;
|
import java.util.WeakHashMap;
|
||||||
|
|
||||||
|
import org.gcube.com.fasterxml.jackson.databind.JsonMappingException;
|
||||||
import org.gcube.common.authorization.client.Constants;
|
import org.gcube.common.authorization.client.Constants;
|
||||||
import org.gcube.common.authorization.client.exceptions.ObjectNotFound;
|
import org.gcube.common.authorization.client.exceptions.ObjectNotFound;
|
||||||
import org.gcube.common.authorization.library.AuthorizationEntry;
|
import org.gcube.common.authorization.library.AuthorizationEntry;
|
||||||
|
@ -20,8 +22,6 @@ import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.BlockJUnit4ClassRunner;
|
import org.junit.runners.BlockJUnit4ClassRunner;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.JsonMappingException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test cases for {@link GXHTTPStringRequest}
|
* Test cases for {@link GXHTTPStringRequest}
|
||||||
*
|
*
|
||||||
|
@ -122,7 +122,7 @@ public class GXHTTPStringRequestTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected=com.fasterxml.jackson.databind.JsonMappingException.class)
|
@Test(expected=org.gcube.com.fasterxml.jackson.databind.JsonMappingException.class)
|
||||||
public void testPostNoBody() throws Exception {
|
public void testPostNoBody() throws Exception {
|
||||||
if (skipTest)
|
if (skipTest)
|
||||||
throw new JsonMappingException("");
|
throw new JsonMappingException("");
|
||||||
|
|
4
pom.xml
4
pom.xml
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<groupId>org.gcube.common</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
<artifactId>gxREST</artifactId>
|
<artifactId>gxREST</artifactId>
|
||||||
<version>1.1.3</version>
|
<version>2.0.0-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>gCube eXtensions to REST</name>
|
<name>gCube eXtensions to REST</name>
|
||||||
<description>gCube eXtensions to REST</description>
|
<description>gCube eXtensions to REST</description>
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.distribution</groupId>
|
<groupId>org.gcube.distribution</groupId>
|
||||||
<artifactId>gcube-bom</artifactId>
|
<artifactId>gcube-bom</artifactId>
|
||||||
<version>1.3.1</version>
|
<version>2.0.0-SNAPSHOT</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
Loading…
Reference in New Issue