Package com.vonage.client.voice.ncco
Class SipEndpoint.Builder
java.lang.Object
com.vonage.client.voice.ncco.SipEndpoint.Builder
- Enclosing class:
SipEndpoint
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the SIP endpoint.Sets the custom headers, which will be prepended withX-by Vonage.Sets the URI.Sets the URI.userToUserHeader(String value) (OPTIONAL) The User-to-User header, as per RFC 7433.
-
Method Details
-
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
Sets the custom headers, which will be prepended withX-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 theUser-to-Userheader as string.- Returns:
- This builder.
- Since:
- 8.9.0
-
build
Builds the SIP endpoint.- Returns:
- A new SipEndpoint with this builder's properties.
-