Package com.io7m.idstore.user_client.internal

# Class IdUProtocolNegotiation

java.lang.Object
com.io7m.idstore.user_client.internal.IdUProtocolNegotiation

public final class IdUProtocolNegotiation extends Object
Functions to negotiate protocols.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static IdUClientProtocolHandlerType`
  `negotiateProtocolHandler(Locale locale, HttpClient httpClient, IdUStrings 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 IdUClientProtocolHandlerType negotiateProtocolHandler(Locale locale, HttpClient httpClient, IdUStrings strings, URI base) throws IdUClientException, 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:
      `IdUClientException` - On errors
      `InterruptedException` - On interruption