/** * Creates an Address with the new display name and URI attribute values. * * @param displayName - the new string value of the display name of the address. A <code>null * </code> value does not set the display name. * @param uri - the new URI value of the address. * @throws ParseException which signals that an error has been reached unexpectedly while parsing * the displayName value. */ public javax.sip.address.Address createAddress(String displayName, javax.sip.address.URI uri) { if (uri == null) throw new NullPointerException("null URI"); AddressImpl addressImpl = new AddressImpl(); if (displayName != null) addressImpl.setDisplayName(displayName); addressImpl.setURI(uri); return addressImpl; }