public class AddressFactoryImpl extends Object implements AddressFactoryEx
Modifier and Type | Field and Description |
---|---|
static Pattern |
SCHEME_PATTERN |
Constructor and Description |
---|
AddressFactoryImpl()
Creates a new instance of AddressFactoryImpl
|
Modifier and Type | Method and Description |
---|---|
Address |
createAddress()
Create an empty address object.
|
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 uri)
create a sip uri.
|
SipURI |
createSipURI(String user,
String host)
Create a SipURI
|
TelURL |
createTelURL(String uri)
Creates a TelURL based on given URI string.
|
URI |
createURI(String uri)
Creates a URI based on given URI string.
|
public static final Pattern SCHEME_PATTERN
public AddressFactoryImpl()
public Address createAddress()
public Address createAddress(String displayName, URI uri)
createAddress
in interface AddressFactory
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.public Address createAddress(URI uri)
AddressFactory
createAddress
in interface AddressFactory
uri
- - the URI value of the address.public Address createAddress(String address) throws ParseException
((SipURI)Address.getURI).getUser() == *;
.createAddress
in interface AddressFactory
address
- - the new string value of the address.ParseException
- which signals that an error has been reached
unexpectedly while parsing the address value.public SipURI createSipURI(String uri) throws ParseException
createSipURI
in interface AddressFactoryEx
uri
- -- the uri to parse.ParseException
- if the URI string is malformed.public SipURI createSipURI(String user, String host) throws ParseException
createSipURI
in interface AddressFactory
user
- -- the userhost
- -- the host.ParseException
- if the URI string is malformed.public TelURL createTelURL(String uri) throws ParseException
createTelURL
in interface AddressFactory
uri
- - the new string value of the phoneNumber.URISyntaxException
- if the URI string is malformed.ParseException
- if the URI string is malformed.public URI createURI(String uri) throws ParseException
createURI
in interface AddressFactory
uri
- - the new string value of the URI.URISyntaxException
- if the URI string is malformed.ParseException
- if the URI string is malformed.Copyright © 2016. All Rights Reserved.