Class SipEndpoint.Builder

java.lang.Object
com.vonage.client.voice.ncco.SipEndpoint.Builder
Enclosing class:
SipEndpoint

public static class SipEndpoint.Builder extends Object
  • Method Details

    • uri

      public SipEndpoint.Builder uri(URI uri)
      Sets the URI.
      Parameters:
      uri - The URI.
      Returns:
      This builder.
    • uri

      Sets the URI.
      Parameters:
      uri - The URI as a string.
      Returns:
      This builder.
    • headers

      public SipEndpoint.Builder headers(Map<String,?> headers)
      Sets the custom headers, which will be prepended with X- by Vonage.
      Parameters:
      headers - The custom headers as a Map.
      Returns:
      This builder.
    • userToUserHeader

      (OPTIONAL) The User-to-User header, as per RFC 7433.
      Parameters:
      value - Value of the User-to-User header as string.
      Returns:
      This builder.
      Since:
      8.9.0
    • build

      public SipEndpoint build()
      Builds the SIP endpoint.
      Returns:
      A new SipEndpoint with this builder's properties.