public interface AddressFactory
SipFactory.createAddressFactory()
.Modifier and Type | Method and Description |
---|---|
Address |
createAddress(String address)
Creates an Address with the new address string value.
|
Address |
createAddress(String displayName,
URI uri)
Creates an Address with the new display name and URI attribute
values.
|
Address |
createAddress(URI uri)
Creates an Address with the new URI attribute value.
|
SipURI |
createSipURI(String user,
String host)
Creates a SipURI based on the given user and host components.
|
TelURL |
createTelURL(String phoneNumber)
Creates a TelURL based on given URI string.
|
URI |
createURI(String uri)
Creates a URI based on given URI string.
|
URI createURI(String uri) throws ParseException
uri
- - the new string value of the URI.ParseException
- if the URI string is malformed.SipURI createSipURI(String user, String host) throws ParseException
This create method first builds a URI in string form using the given components as follows:
An application that wishes to create a 'sips' URI should call the
SipURI.setSecure(boolean)
with an argument of 'true' on the
returned SipURI.
user
- - the new string value of the user, this value may be null.host
- - the new string value of the host.ParseException
- if the URI string is malformed.TelURL createTelURL(String phoneNumber) throws ParseException
phoneNumber
- the new string value of the phoneNumber.ParseException
- if the URI string is malformed.Address createAddress(String address) throws ParseException
name-addr
tokens in
RFC3261, for example "Bob ((SipURI)Address.getURI()).getUser()
returns a
String contain one character "*".address
- - the new string value of the address.ParseException
- which signals that an error has been reached
unexpectedly while parsing the address value.Address createAddress(URI uri)
uri
- - the URI value of the address.Address createAddress(String displayName, URI uri) throws ParseException
displayName
- - the new string value of the display name of the
address. A null
value does not set the display name.uri
- - the new URI value of the address.ParseException
- which signals that an error has been reached
unexpectedly while parsing the displayName value.Copyright © 2016. All Rights Reserved.