Package com.io7m.idstore.admin_client.internal

# Class IdAProtocolNegotiation

java.lang.Object
com.io7m.idstore.admin_client.internal.IdAProtocolNegotiation

public final class IdAProtocolNegotiation extends Object
Functions to negotiate protocols.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static IdAClientProtocolHandlerType`
  `negotiateProtocolHandler(Locale locale, HttpClient httpClient, IdAStrings strings, URI base)`
  Negotiate a protocol handler.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### negotiateProtocolHandler

    public static IdAClientProtocolHandlerType negotiateProtocolHandler(Locale locale, HttpClient httpClient, IdAStrings strings, URI base) throws IdAClientException, InterruptedException
    Negotiate a protocol handler.
    Parameters:
      `locale` - The locale
      `httpClient` - The HTTP client
      `strings` - The string resources
      `base` - The base URI
    Returns:
      The protocol handler
    Throws:
      `IdAClientException` - On errors
      `InterruptedException` - On interruption