Class OkHttpValidatingClientFactory
java.lang.Object
com.janeirodigital.shapetrees.client.okhttp.OkHttpValidatingClientFactory
Factory to provide OkHttpClient instances where shape tree validation is enabled. Clients
are sourced from the
OkHttpClientFactory
configured by
OkHttpClientFactoryManager
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic okhttp3.OkHttpClient
get()
Customized the basic OkHttpClient received from the configuredOkHttpClientFactory
with an interceptor to provide client-side shape tree validation.
-
Method Details
-
get
Customized the basic OkHttpClient received from the configuredOkHttpClientFactory
with an interceptor to provide client-side shape tree validation. The returned client is a derivative of the one received byOkHttpClientFactory
, which reuses the same connection pool, and thread pools, and adds shape tree validation to the existing configuration.- Returns:
- Validating OkHttpClient
- Throws:
ShapeTreeException
-