Location Client

The csw-location-client project provides a convenient lightweight wrapper for accessing the CSW Location HTTP Server.

Location service client is build using Akka Http’s request level client API.

Note

Lifecycle of all the components registered using location service client is tied up with the actor system used to create client. These components gets unregistered when this actor system is terminated.

The client API implements the same LocationService trait as the server API. The core implementation is in the LocationServiceClient class, which can be conveniently instantiated via the HttpLocationServiceFactory class.

Java API

The Java location client API is implemented in Scala as a thin wrapper class: JHttpLocationServiceFactory. It delegates to the private class JLocationServiceImpl, which converts the returned Future and Option types to their Java equivalent.

Tests

There are only a few tests in the csw-location-client project. Most of the features are actually tested in the csw-location-server project.