Skip to content

Commit

Permalink
Created SimpleCollationJSONMessageBodyReader based on JSONProcessor c…
Browse files Browse the repository at this point in the history
…ode. Removed Jackson 1 dependency and CollateXModule.
  • Loading branch information
rhdekker committed May 5, 2015
1 parent 6767cbe commit d5c19ee
Show file tree
Hide file tree
Showing 8 changed files with 196 additions and 296 deletions.
11 changes: 3 additions & 8 deletions collatex-servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,9 @@
<version>2.17</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson1</artifactId>
<version>2.17</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-processing</artifactId>
<version>2.17</version>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-processing</artifactId>
<version>2.17</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package eu.interedition.collatex.http;

import eu.interedition.collatex.io.IOExceptionMapper;
import eu.interedition.collatex.io.SimpleCollationJSONMessageBodyReader;
import eu.interedition.collatex.io.VariantGraphJSONMessageBodyWriter;
import org.glassfish.jersey.jackson1.Jackson1Feature;

import javax.ws.rs.core.Application;
import java.util.HashSet;
Expand All @@ -15,11 +16,9 @@ public class CollateApplication extends Application {
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> s = new HashSet<>();
s.add(SimpleCollationJSONMessageBodyReader.class);
s.add(VariantGraphJSONMessageBodyWriter.class);
//TODO: remove depdendency on Jackson 1
//TODO: To remove this.. use JSON read code from JSONProcessor class.
s.add(ObjectMapperProvider.class);
s.add(Jackson1Feature.class);
s.add(IOExceptionMapper.class);
return s;
}

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with CollateX. If not, see <http://www.gnu.org/licenses/>.
*/

package eu.interedition.collatex.http;
package eu.interedition.collatex.io;

import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit d5c19ee

Please sign in to comment.