public final class Address extends Object
<address/> element in the http://jabber.org/protocol/address namespace.
This class is immutable.
| 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) |
Address(Address.Type type,
Jid jid,
String description) |
Address(Address.Type type,
Jid jid,
String description,
String node) |
Address(Address.Type type,
URI uri,
String description) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the description.
|
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)
type - The address type.jid - Specifies a simple Jabber ID associated with this address.public Address(Address.Type type, Jid jid, String description)
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.public Address(Address.Type type, Jid jid, String description, String node)
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.public Address(Address.Type type, URI uri, String description)
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.public final Address.Type getType()
public final Jid getJid()
public final String getDescription()
public final String getNode()
public final URI getUri()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.