Class Address
- java.lang.Object
-
- rocks.xmpp.extensions.reach.model.Address
-
public final class Address extends Object
The implementation of the<address/>
element in theurn:xmpp:reach:0
namespace.This class is immutable.
- See Also:
- XEP-0152: Reachability Addresses, XML Schema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Address.Description
The description of the address.
-
Constructor Summary
Constructors Constructor Description Address(URI uri, Address.Description... descriptions)
Constructs an reachability address.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<Address.Description>
getDescriptions()
Gets the optional descriptions, which describes the URI.URI
getUri()
Gets the alternate communications method for reaching the user.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Address
public Address(URI uri, Address.Description... descriptions)
Constructs an reachability address.- Parameters:
uri
- The alternate communications method for reaching the user.descriptions
- Descriptions of the URI.
-
-
Method Detail
-
getUri
public final URI getUri()
Gets the alternate communications method for reaching the user.- Returns:
- The URI.
-
getDescriptions
public final List<Address.Description> getDescriptions()
Gets the optional descriptions, which describes the URI.- Returns:
- The descriptions.
- See Also:
getUri()
-
-