Update documentation for new API:
* Remove imports which add unnecessary noise to code example
* Change example to use basic auth (since we add cookie auth by default
now)
* Datastore -> DocumentStore
@@ -20,17 +20,14 @@ For an example of how to implement a interceptor, see the `CookieInterceptor` c
In order to add an HTTP Interceptor to a replication, you call the `addRequestInterceptors`
or `addResponseInterceptors` on the `ReplicatorBuilder` class.
-For example, this is how to add an instance of `CookieInterceptor` to a pull replication:
-
-```java
-import com.cloudant.sync.replication.Replicator
-import com.cloudant.sync.replication.ReplicatorBuilder
-import com.cloudant.sync.datastore.Datastore
-import com.cloudant.sync.http.CookieFilter
+One of the built-in interceptors is `BasicAuthInterceptor` which can be used to
+auhenticate with servers where cookie authentication is not supported.
+To add an add instance of `BasicAuthInterceptor` to a pull replication, do the following:
-Datastore ds = manager.open("my_datastore");
-CookieInterceptor interceptor = new CookieInterceptor("username","password");
+```java
+DocumentStore ds = DocumentStore.getInstance(new File("my_datastore"));
+BasicAuthInterceptor interceptor = new BasicAuthInterceptor("username:password");
Replicator replicator = ReplicatorBuilder.pull()
.from(new URI("https://username.cloudant.com"))
