Package com.io7m.cardant.client.basic.internal

# Class CAProtocolNegotiation

java.lang.Object
com.io7m.cardant.client.basic.internal.CAProtocolNegotiation

public final class CAProtocolNegotiation extends Object
Functions to negotiate protocols.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static CAHandlerType`
  `negotiateProtocolHandler(CAClientConfiguration configuration, CAClientCredentials credentials, HttpClient httpClient, CAStrings strings)`
  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 CAHandlerType negotiateProtocolHandler(CAClientConfiguration configuration, CAClientCredentials credentials, HttpClient httpClient, CAStrings strings) throws CAClientException, InterruptedException
    Negotiate a protocol handler.
    Parameters:
      `configuration` - The configuration
      `credentials` - The credentials
      `httpClient` - The HTTP client
      `strings` - The string resources
    Returns:
      The protocol handler
    Throws:
      `CAClientException` - On errors
      `InterruptedException` - On interruption