Switched JSON Management to gcube-jackson

This commit is contained in:
Luca Frosini 2020-08-06 14:51:24 +02:00
parent 93569cd265
commit f027923cdf
9 changed files with 143 additions and 69 deletions

View File

@ -1,11 +1,40 @@
# Changelog for gx-Rest
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for gxREST
## [v2.0.0-SNAPSHOT] [r5.0.0] -
- 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.3] 2019-10-19
* Allow clients to set secure protocol
* Switch rom TLSv1 to TLSv1.2
## [v1.1.2] 2019-10-19
* Migration to Git
## [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
## [v1.1.1] 2019-03-30
* Allow to set the media type for the returned entity in the Error Response.

View File

@ -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.
gxRest has the flexibility for different degrees of exploitation:

View File

@ -1,11 +1,39 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# 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
* Migration to Git
## [v1.1.1] [r4.0.0] 2019-03-30
* Allow tw to set the media type for the returned entity in the Error Response.
## [v2.0.0-SNAPSHOT] [r5.0.0] -
- 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

View File

@ -7,11 +7,11 @@
<parent>
<groupId>org.gcube.common</groupId>
<artifactId>gxREST</artifactId>
<version>1.1.3</version>
<version>2.0.0-SNAPSHOT</version>
</parent>
<groupId>org.gcube.common</groupId>
<artifactId>gxHTTP</artifactId>
<packaging>jar</packaging>
<name>gCube eXtensions to REST with HTTP</name>
<description>gCube eXtensions to REST based on HTTP</description>
@ -46,18 +46,5 @@
</dependency>
</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>

View File

@ -1,11 +1,39 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# 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
* 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.
## [v2.0.0-SNAPSHOT] [r5.0.0] -
- 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

View File

@ -5,7 +5,7 @@
<parent>
<groupId>org.gcube.common</groupId>
<artifactId>gxREST</artifactId>
<version>1.1.3</version>
<version>2.0.0-SNAPSHOT</version>
</parent>
<artifactId>gxJRS</artifactId>
@ -37,7 +37,7 @@
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom</artifactId>
<version>1.3.1</version>
<version>2.0.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@ -49,32 +49,34 @@
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>${jaxrs.version}</version>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>gxHTTP</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>authorization-client</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>gcube-jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>gcube-jackson-core</artifactId>
</dependency>
<!-- <dependency> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-core</artifactId> -->
<!-- </dependency> -->
<!-- <dependency> -->
<!-- <groupId>com.fasterxml.jackson.core</groupId> -->
<!-- <artifactId>jackson-databind</artifactId> -->
<!-- </dependency> -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<!-- Test Dependency -->
<dependency>
@ -97,7 +99,6 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.13</version>
<scope>test</scope>
</dependency>

View File

@ -1,6 +1,6 @@
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.

View File

@ -1,6 +1,7 @@
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.InputStream;
@ -8,6 +9,7 @@ import java.util.Map;
import java.util.Properties;
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.exceptions.ObjectNotFound;
import org.gcube.common.authorization.library.AuthorizationEntry;
@ -20,8 +22,6 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import com.fasterxml.jackson.databind.JsonMappingException;
/**
* 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 {
if (skipTest)
throw new JsonMappingException("");

View File

@ -10,7 +10,7 @@
<groupId>org.gcube.common</groupId>
<artifactId>gxREST</artifactId>
<version>1.1.3</version>
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>gCube eXtensions to REST</name>
<description>gCube eXtensions to REST</description>
@ -47,7 +47,7 @@
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom</artifactId>
<version>1.3.1</version>
<version>2.0.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>