|
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.
| Field Summary | |
|---|---|
static Pattern |
SCHEME_PATTERN
|
| 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 |
| Field Detail |
|---|
public static final Pattern SCHEME_PATTERN
| Constructor Detail |
|---|
public AddressFactoryImpl()
| Method Detail |
|---|
public Address createAddress()
public Address createAddress(String displayName,
URI uri)
createAddress in interface AddressFactorydisplayName - - 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 Address createAddress(URI uri)
AddressFactory
createAddress in interface AddressFactoryuri - - the URI value of the address.
public Address createAddress(String address)
throws ParseException
((SipURI)Address.getURI).getUser() == *;.
createAddress in interface AddressFactoryaddress - - the new string value of the address.
ParseException - which signals that an error has been reached
unexpectedly while parsing the address value.
public SipURI createSipURI(String uri)
throws ParseException
createSipURI in interface AddressFactoryExuri - -- the uri to parse.
ParseException - if the URI string is malformed.
public SipURI createSipURI(String user,
String host)
throws ParseException
createSipURI in interface AddressFactoryuser - -- the userhost - -- the host.
ParseException - if the URI string is malformed.
public TelURL createTelURL(String uri)
throws ParseException
createTelURL in interface AddressFactoryuri - - the new string value of the phoneNumber.
URISyntaxException - if the URI string is malformed.
ParseException - if the URI string is malformed.
public URI createURI(String uri)
throws ParseException
createURI in interface AddressFactoryuri - - 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 | |||||||||