|
JSIP API v1.2 November 2006 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AddressFactory
This interface provides factory methods that allow an application to create
Address objects, URI's, SipURI's and TelURL's from a particular
implementation of this specification. This class is a singleton and can be
retrieved from the SipFactory.createAddressFactory().
| Method Summary | |
|---|---|
Address |
createAddress(java.lang.String address)
Creates an Address with the new address string value. |
Address |
createAddress(java.lang.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(java.lang.String user,
java.lang.String host)
Creates a SipURI based on the given user and host components. |
TelURL |
createTelURL(java.lang.String phoneNumber)
Creates a TelURL based on given URI string. |
URI |
createURI(java.lang.String uri)
Creates a URI based on given URI string. |
| Method Detail |
|---|
URI createURI(java.lang.String uri)
throws java.text.ParseException
uri - - the new string value of the URI.
java.text.ParseException - if the URI string is malformed.
SipURI createSipURI(java.lang.String user,
java.lang.String host)
throws java.text.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.
java.text.ParseException - if the URI string is malformed.
TelURL createTelURL(java.lang.String phoneNumber)
throws java.text.ParseException
phoneNumber - the new string value of the phoneNumber.
java.text.ParseException - if the URI string is malformed.
Address createAddress(java.lang.String address)
throws java.text.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.
java.text.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(java.lang.String displayName,
URI uri)
throws java.text.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.
java.text.ParseException - which signals that an error has been reached
unexpectedly while parsing the displayName value.
|
JSIP API v1.2 November 2006 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||