diff --git a/examples/pom.xml b/examples/pom.xml
index 3ddf11d628c..83e5707eb97 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -40,6 +40,11 @@
hapi-fhir-validation-resources-dstu2
2.1-SNAPSHOT
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-client-okhttp
+ 2.1-SNAPSHOT
+
ca.uhn.hapi.fhir
hapi-fhir-jaxrsserver-base
diff --git a/examples/src/main/java/example/ClientExamples.java b/examples/src/main/java/example/ClientExamples.java
index e36a8139fc9..1d6a708792a 100644
--- a/examples/src/main/java/example/ClientExamples.java
+++ b/examples/src/main/java/example/ClientExamples.java
@@ -1,6 +1,7 @@
package example;
import ca.uhn.fhir.context.FhirContext;
+import ca.uhn.fhir.okhttp.client.OkHttpRestfulClientFactory;
import ca.uhn.fhir.rest.client.IGenericClient;
import ca.uhn.fhir.rest.client.IRestfulClientFactory;
import ca.uhn.fhir.rest.client.apache.GZipContentInterceptor;
@@ -34,6 +35,19 @@ public class ClientExamples {
// END SNIPPET: proxy
}
+ @SuppressWarnings("unused")
+ public void createOkHttp() {
+ // START SNIPPET: okhttp
+ FhirContext ctx = FhirContext.forDstu3();
+
+ // Use OkHttp
+ ctx.setRestfulClientFactory(new OkHttpRestfulClientFactory(ctx));
+
+ // Create the client
+ IGenericClient genericClient = ctx.newRestfulGenericClient("http://localhost:9999/fhir");
+ // END SNIPPET: okhttp
+ }
+
@SuppressWarnings("unused")
public void createTimeouts() {
// START SNIPPET: timeouts
diff --git a/hapi-fhir-android/pom.xml b/hapi-fhir-android/pom.xml
index cf20cd40389..e3b6f9c1327 100644
--- a/hapi-fhir-android/pom.xml
+++ b/hapi-fhir-android/pom.xml
@@ -60,6 +60,11 @@
hapi-fhir-client-okhttp
2.1-SNAPSHOT
+
+ commons-codec
+ commons-codec
+ test
+
org.codehaus.woodstox
diff --git a/pom.xml b/pom.xml
index a82cec952f7..f8ec2c54bfe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -269,9 +269,6 @@
yyyy-MM-dd'T'HH:mm:ss'Z'
-
- 1.4
-
UTF-8
diff --git a/src/site/xdoc/doc_android.xml.vm b/src/site/xdoc/doc_android.xml.vm
index b1db0b105fe..97679ac4f44 100644
--- a/src/site/xdoc/doc_android.xml.vm
+++ b/src/site/xdoc/doc_android.xml.vm
@@ -69,6 +69,21 @@
+
+
+
+ The following is intended to be a selection of publicly available open source
+ Android applications which use HAPI FHIR and might be useful as a reference.
+
+
+ If you know of others, please let us know!
+
+
+
+
+