Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Commit

Permalink
1.0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobriggs committed Feb 4, 2015
1 parent d379f3e commit 7f87a72
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Maven:
<dependency>
<groupId>com.cloudant</groupId>
<artifactId>cloudant-client</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</dependency>

~~~
Expand All @@ -28,12 +28,12 @@ Gradle:

```groovy
dependencies {
compile group: 'com.cloudant', name: 'cloudant-client', version:'1.0.0'
compile group: 'com.cloudant', name: 'cloudant-client', version:'1.0.1'
}
```

Alternately download the dependencies
[cloudant.jar](http://search.maven.org/remotecontent?filepath=com/cloudant/cloudant-client/1.0.0/cloudant-client-1.0.0.jar)
[cloudant.jar](http://search.maven.org/remotecontent?filepath=com/cloudant/cloudant-client/1.0.1/cloudant-client-1.0.1.jar)
[HttpClient 4.3.3](http://hc.apache.org/downloads.cgi)
[HttpCore 4.3.2](http://hc.apache.org/downloads.cgi)
[Commons Codec 1.6](http://commons.apache.org/codec/download_codec.cgi)
Expand Down Expand Up @@ -908,7 +908,7 @@ CloudantClient cookieBasedClient = new

### Advanced Configuration

Besides the account and password options, you can add an optional `com.cloudant.client.api.model.ConnectOptions` value, which will initialize Request (the underlying HTTP library) as you need it.
Besides the account and password options, you can add an optional `com.cloudant.client.api.model.ConnectOptions` value, which will initialize HttpClient (the underlying HTTP library) as you need it.

~~~ java
ConnectOptions connectOptions = new ConnectOptions()
Expand All @@ -922,6 +922,15 @@ ConnectOptions connectOptions = new ConnectOptions()

~~~

java-cloudant internally uses the Gson library to serialize/deserialize JSON to/from Java objects. You can register your custom de-serializers by providing the CloudantClient instance by with your own GsonBuilder instance

~~~java
GsonBuilder builder = new GsonBuilder();
builder.setDateFormat("yyyy-MM-dd'T'HH:mm:ss");

CloudantClient account = new CloudantClient(cloudantaccount,userName,password);
account.setGsonBuilder(builder);
~~~


## tests
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.cloudant</groupId>
<artifactId>cloudant-client</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<packaging>jar</packaging>
<name>java-cloudant</name>
<description> official Cloudant Client for Java</description>
Expand Down

0 comments on commit 7f87a72

Please sign in to comment.