| |
|
| java.lang.Object gov.nist.siplite.address.AddressFactory
Constructor Summary | |
public | AddressFactory() Creates a new instance ofAddressFactoryImpl. |
AddressFactory | public AddressFactory()(Code) | | Creates a new instance ofAddressFactoryImpl.
|
createAddress | public Address createAddress(String displayName, URI uri)(Code) | | Creates anAddress with the new display name and URI attribute
values.
Parameters: displayName - - the new string value of the display name of theaddress. A null value does not set the display name. Parameters: uri - - the new URI value of the address. throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the displayName value. the new address |
createAddress | public Address createAddress(String address) throws ParseException(Code) | | Creates anAddress with the new address string value. The address
string is parsed in order to create the new Address instance. Create
with a String value of "*" creates a wildcard address. The wildcard
can be determined if
(SipURIAddress.getURI).getUser() == *; .
Parameters: address - the new string value of the address. the new Address throws: ParseException - which signals that an error has been reachedunexpectedly while parsing the address value. exception: NullPointerException - if address is null |
createTelURL | public TelURL createTelURL(String uri) throws ParseException(Code) | | Creates a TelURL based on given URI string. The scheme or '+' should
not be included in the phoneNumber string argument.
Parameters: uri - the new string value of the phoneNumber. the new telephone URL throws: URISyntaxException - if the URI string is malformed. |
createURI | public URI createURI(String uri) throws ParseException(Code) | | Creates a URI based on given URI string. The URI string is parsed in
order to create the new URI instance. Depending on the scheme the
returned may or may not be aSipURI or TelURL cast as a URI.
Parameters: uri - the new string value of the URI. the new SIP URI throws: URISyntaxException - if the URI string is malformed. exception: NullPointerException - if uri is null |
|
|
|