|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
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(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 |
---|
URI createURI(String uri) throws ParseException
uri
- - the new string value of the URI.
ParseException
- if the URI string is malformed.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.TelURL createTelURL(String phoneNumber) throws ParseException
phoneNumber
- the new string value of the phoneNumber.
ParseException
- if the URI string is malformed.Address createAddress(String address) throws 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.
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(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: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |