Interface RestClientFactory

All Known Implementing Classes:
EnvironmentPropertyRestClientFactory

public interface RestClientFactory
A factory that builds dynamic proxy clients (using JAX-RS RESTful client interfaces) for services, abstracting away the method through which client endpoints, credentials, etc. are acquired
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getClient(Class<T> iface)
    Create or retrieve a client for the service interface provided
    This method only works where a single service for this interface has been configured.
    <T> T
    getClient(Class<T> iface, String name)
    Create or retrieve a client for the service interface, with the underlying REST service identified by name
  • Method Details

    • getClient

      <T> T getClient(Class<T> iface)
      Create or retrieve a client for the service interface provided
      This method only works where a single service for this interface has been configured. For more complex situations, use getClient(iface, name)
      Parameters:
      iface -
      Returns:
    • getClient

      <T> T getClient(Class<T> iface, String name)
      Create or retrieve a client for the service interface, with the underlying REST service identified by name
      Parameters:
      iface -
      name - the service name
      Returns: