|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(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. |
Method Detail |
public URI createURI(String uri) throws ParseException
uri
- - the new string value of the URI.
ParseException
- if the URI string is malformed.public 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.public TelURL createTelURL(String phoneNumber) throws ParseException
ParseException
- if the URI string is malformed.public Address createAddress(String address) throws ParseException
((SipURI)Address.getURI).getUser() == *;
.
address
- - the new string value of the address.
ParseException
- which signals that an error has been reached
unexpectedly while parsing the address value.public Address createAddress(URI uri)
uri
- - the URI value of the address.public 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.
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |