Java Setup

The following guide outlines the steps required to download and install the Parser's Java SDK and how to use it with Maven.

 Download the code

Download the source code directly from here:

 Maven Setup

In order to use the Parser SDK, it will need several dependencies to be installed. The best way to do that is to include them in your Maven pom.xml:

First, you need to install the decryptx parser jar into your local maven repository.

mvn install:install-file -Dfile=path/to/jar/decryptx-parser-1.2.0.jar -DgroupId=com.bluefin.decryptx -DartifactId=decryptx-parser -Dversion=1.2.0 -Dpackaging=jar

Add the required dependencies to your pom.xml.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

 <!-- More configuration options here-->

  <dependencies>

    <!-- HTTP client: jersey-client -->
    <dependency>
      <groupId>com.sun.jersey</groupId>
      <artifactId>jersey-client</artifactId>
      <version>${jersey-version}</version>
    </dependency>
    <dependency>
      <groupId>com.sun.jersey.contribs</groupId>
      <artifactId>jersey-multipart</artifactId>
      <version>${jersey-version}</version>
    </dependency>

    <!-- JSON processing: jackson -->
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-core</artifactId>
      <version>${jackson-version}</version>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-annotations</artifactId>
      <version>${jackson-version}</version>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>${jackson-version}</version>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.jaxrs</groupId>
      <artifactId>jackson-jaxrs-json-provider</artifactId>
      <version>${jackson-version}</version>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.datatype</groupId>
      <artifactId>jackson-datatype-joda</artifactId>
      <version>2.1.5</version>
    </dependency>
    <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>${jodatime-version}</version>
    </dependency>
    <dependency>
        <groupId>com.bluefin.decryptx</groupId>
        <artifactId>decryptx-parser</artifactId>
        <version>${decryptx-parser-version}</version>
    </dependency>
  </dependencies>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <jersey-version>1.18</jersey-version>
    <jackson-version>2.4.2</jackson-version>
    <jodatime-version>2.3</jodatime-version>
    <decryptx-parser-version>1.2.0</decryptx-parser-version>
    <maven-plugin-version>1.0.0</maven-plugin-version>
  </properties>
</project>