|
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 |
java.lang.Objectgov.nist.javax.sip.address.AddressFactoryImpl
public class AddressFactoryImpl
Implementation of the JAIN-SIP address factory.
Constructor Summary | |
---|---|
AddressFactoryImpl()
Creates a new instance of AddressFactoryImpl |
Method Summary | |
---|---|
Address |
createAddress()
Create an empty address object. |
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 uri)
create a sip uri. |
SipURI |
createSipURI(String user,
String host)
Create a SipURI |
TelURL |
createTelURL(String uri)
Creates a TelURL based on given URI string. |
URI |
createURI(String uri)
Creates a URI based on given URI string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddressFactoryImpl()
Method Detail |
---|
public Address createAddress()
public Address createAddress(String displayName, URI uri)
createAddress
in interface AddressFactory
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.public SipURI createSipURI(String uri) throws ParseException
uri
- -- the uri to parse.
ParseException
public SipURI createSipURI(String user, String host) throws ParseException
createSipURI
in interface AddressFactory
user
- -- the userhost
- -- the host.
ParseException
- if the URI string is malformed.public TelURL createTelURL(String uri) throws ParseException
createTelURL
in interface AddressFactory
uri
- - the new string value of the phoneNumber.
URISyntaxException
- if the URI string is malformed.
ParseException
- if the URI string is malformed.public Address createAddress(URI uri)
AddressFactory
createAddress
in interface AddressFactory
uri
- - the URI value of the address.public Address createAddress(String address) throws ParseException
((SipURI)Address.getURI).getUser() == *;
.
createAddress
in interface AddressFactory
address
- - the new string value of the address.
ParseException
- which signals that an error has been reached
unexpectedly while parsing the address value.public URI createURI(String uri) throws ParseException
createURI
in interface AddressFactory
uri
- - the new string value of the URI.
URISyntaxException
- if the URI string is malformed.
ParseException
- if the URI string is malformed.
|
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 |