public final class Address extends Object
<address/> element in the http://jabber.org/protocol/address namespace.
This class is immutable.
Addresses| Modifier and Type | Class and Description |
|---|---|
static class |
Address.Type
The type of the address.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
http://jabber.org/protocol/address
|
| Constructor and Description |
|---|
Address(Address.Type type,
Jid jid,
CharSequence description,
CharSequence node,
Object... extensions) |
Address(Address.Type type,
Jid jid,
CharSequence description,
Object... extensions) |
Address(Address.Type type,
Jid jid,
Object... extensions) |
Address(Address.Type type,
URI uri,
CharSequence description,
Object... extensions) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the description.
|
<T> T |
getExtension(Class<T> clazz)
Gets the extension.
|
List<Object> |
getExtensions()
Gets the extensions as unmodifiable list.
|
Jid |
getJid()
Gets the JID.
|
String |
getNode()
Gets the node.
|
Address.Type |
getType()
Gets the address type.
|
URI |
getUri()
Gets the URI.
|
public static final String NAMESPACE
public Address(Address.Type type, Jid jid, Object... extensions)
type - The address type.jid - Specifies a simple Jabber ID associated with this address.extensions - The extensions.public Address(Address.Type type, Jid jid, CharSequence description, Object... extensions)
type - The address type.jid - Specifies a simple Jabber ID associated with this address.description - Specifies human-readable information for this address. This data may be used by clients to provide richer address-book integration.extensions - The extensions.public Address(Address.Type type, Jid jid, CharSequence description, CharSequence node, Object... extensions)
type - The address type.jid - Specifies a simple Jabber ID associated with this address.description - Specifies human-readable information for this address. This data may be used by clients to provide richer address-book integration.node - Specifies a sub-addressable unit at a particular JID, corresponding to a Service Discovery node.extensions - The extensions.public Address(Address.Type type, URI uri, CharSequence description, Object... extensions)
type - The address type.uri - Specifies an external system address, such as a sip:, sips:, or im: URI.description - Specifies human-readable information for this address. This data may be used by clients to provide richer address-book integration.extensions - The extensions.public final Address.Type getType()
public final Jid getJid()
public final String getDescription()
public final String getNode()
public final URI getUri()
public final List<Object> getExtensions()
public final <T> T getExtension(Class<T> clazz)
T - The extension type.clazz - The extension class.Copyright © 2014–2018 XMPP.rocks. All rights reserved.