Class FeignClientFactory
- java.lang.Object
-
- org.deltafi.common.http.client.feign.FeignClientFactory
-
public class FeignClientFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FeignClientFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tbuild(java.lang.Class<T> targetClass, java.lang.String url)Builds a client for the provided Feign-annotated interface for the resources at the given URL.static <T> Tbuild(java.lang.Class<T> targetClass, java.lang.String url, javax.net.ssl.SSLContext sslContext)Builds an SSL-enabled client for the provided Feign-annotated interface for the resources at the given URL.
-
-
-
Method Detail
-
build
public static <T> T build(java.lang.Class<T> targetClass, java.lang.String url)Builds a client for the provided Feign-annotated interface for the resources at the given URL.- Type Parameters:
T- the interface type- Parameters:
targetClass- the Feign-annotated interface classurl- the URL the client will access- Returns:
- a Feign-generated instance of the provided interface for accessing the given URL
-
build
public static <T> T build(java.lang.Class<T> targetClass, java.lang.String url, javax.net.ssl.SSLContext sslContext)Builds an SSL-enabled client for the provided Feign-annotated interface for the resources at the given URL.- Type Parameters:
T- the interface type- Parameters:
targetClass- the Feign-annotated interface classurl- the URL the client will accesssslContext- the SSLContext to use for creating an SSL connection to the given URL- Returns:
- a Feign-generated instance of the provided interface for accessing the given URL
-
-