public final class Identity extends Object implements Comparable<Identity>
This class is immutable.3. Discovering Information About a Jabber Entity
In disco, an entity's identity is broken down into its category (server, client, gateway, directory, etc.) and its particular type within that category (IM server, phone vs. handheld client, MSN gateway vs. AIM gateway, user directory vs. chatroom directory, etc.). This information helps requesting entities to determine the group or "bucket" of services into which the entity is most appropriately placed (e.g., perhaps the entity is shown in a GUI with an appropriate icon). An entity MAY have multiple identities. When multiple identity elements are provided, the name attributes for each identity element SHOULD have the same value.
| Modifier and Type | Method and Description |
|---|---|
static Identity |
accountAdmin()
The user@host is an administrative account.
|
static Identity |
accountAnonymous()
The user@host is a "guest" account that allows anonymous login by any user.
|
static Identity |
accountRegistered()
The user@host is a registered or provisioned account associated with a particular non-administrative user.
|
static Identity |
authCert()
A server component that authenticates based on external certificates.
|
static Identity |
authGeneric()
A server authentication component other than one of the registered types.
|
static Identity |
authLdap()
A server component that authenticates against an LDAP database.
|
static Identity |
authNtlm()
A server component that authenticates against an NT domain.
|
static Identity |
authPam()
A server component that authenticates against a PAM system.
|
static Identity |
automationCommandList()
The node for a list of commands; valid only for the node "http://jabber.org/protocol/commands".
|
static Identity |
automationCommandNode()
A node for a specific command; the "node" attribute uniquely identifies the command.
|
static Identity |
automationRpc()
An entity that supports Jabber-RPC.
|
static Identity |
automationSoap()
An entity that supports the SOAP XMPP Binding.
|
static Identity |
automationTranslation()
An entity that provides automated translation services.
|
static Identity |
clientBot()
An automated client that is not controlled by a human user.
|
static Identity |
clientConsole()
Minimal non-GUI client used on dumb terminals or text-only screens.
|
static Identity |
clientGame()
A client running on a gaming console.
|
static Identity |
clientHandheld()
A client running on a PDA, RIM device, or other handheld.
|
static Identity |
clientPc()
Standard full-GUI client used on desktops and laptops.
|
static Identity |
clientPhone()
A client running on a mobile phone or other telephony device.
|
static Identity |
clientSms()
A client that is not actually using an instant messaging client; however, messages sent to this contact will be delivered as Short Message Service (SMS) messages.
|
static Identity |
clientWeb()
A client operated from within a web browser.
|
static Identity |
collaborationWhiteboard()
Multi-user whiteboarding service.
|
int |
compareTo(Identity o)
Implements a natural ordering of an identity, as suggested and required by XEP-0115: Entity Capabilities.
|
static Identity |
componentArchive()
A server component that archives traffic.
|
static Identity |
componentClientToServer()
A server component that handles client connections.
|
static Identity |
componentGeneric()
A server component other than one of the registered types.
|
static Identity |
componentLoadBalancing()
A server component that handles load balancing.
|
static Identity |
componentLog()
A server component that logs server information.
|
static Identity |
componentPresence()
A server component that provides presence information.
|
static Identity |
componentRouter()
A server component that handles core routing logic.
|
static Identity |
componentServerToServer()
A server component that handles server connections .
|
static Identity |
componentSessionManagement()
A server component that manages user sessions.
|
static Identity |
componentStatistics()
A server component that provides server statistics.
|
static Identity |
conferenceIrc()
Internet Relay Chat service.
|
static Identity |
conferenceText()
Text conferencing service.
|
static Identity |
directoryChatRoom()
A directory of chatrooms.
|
static Identity |
directoryGroup()
A directory that provides shared roster groups.
|
static Identity |
directoryUser()
A directory of end users (e.g., JUD).
|
static Identity |
directoryWaitingList()
A directory of waiting list entries.
|
boolean |
equals(Object o)
An identity is considered equal, if category, type and language are equal, because there cannot be two identities with the same category, type and language, but with different names.
|
static Identity |
gatewayAIM()
Gateway to AOL Instant Messenger.
|
static Identity |
gatewayFacebook()
Gateway to the Facebook IM service.
|
static Identity |
gatewayGaduGadu()
Gateway to the Gadu-Gadu IM service.
|
static Identity |
gatewayHttpWs()
Gateway that provides HTTP Web Services access.
|
static Identity |
gatewayICQ()
Gateway to ICQ.
|
static Identity |
gatewayIRC()
Gateway to IRC.
|
static Identity |
gatewayLCS()
Gateway to Microsoft Live Communications Server.
|
static Identity |
gatewayMSN()
Gateway to MSN Messenger.
|
static Identity |
gatewayMySpaceIM()
Gateway to the MySpace IM service.
|
static Identity |
gatewayOCS()
Gateway to Microsoft Office Communications Server.
|
static Identity |
gatewayQQ()
Gateway to the QQ IM service.
|
static Identity |
gatewaySametime()
Gateway to IBM Lotus Sametime.
|
static Identity |
gatewaySimple()
Gateway to SIP for Instant Messaging and Presence Leveraging Extensions (SIMPLE).
|
static Identity |
gatewaySkype()
Gateway to the Skype service.
|
static Identity |
gatewaySMS()
Gateway to Short Message Service.
|
static Identity |
gatewaySMTP()
Gateway to the SMTP (email) network.
|
static Identity |
gatewayTlen()
Gateway to the Tlen IM service.
|
static Identity |
gatewayXfire()
Gateway to the Xfire gaming and IM service.
|
static Identity |
gatewayXMPP()
Gateway to another XMPP service (NOT via native server-to-server communication).
|
static Identity |
gatewayYahoo()
Gateway to Yahoo!
|
String |
getCategory()
Gets the category, e.g. server, client, gateway, directory, etc.
|
Locale |
getLanguage()
The optional language to localize the name.
|
String |
getName()
Gets the identity's name.
|
String |
getType()
Gets the type within the category, e.g.
|
int |
hashCode() |
static Identity |
headlineNewMail()
Service that notifies a user of new email messages.
|
static Identity |
headlineRss()
RSS notification service.
|
static Identity |
headlineWeather()
Service that provides weather alerts..
|
static Identity |
hierarchyBranch()
A service discovery node that contains further nodes in the hierarchy.
|
static Identity |
hierarchyLeaf()
A service discovery node that does not contain further nodes in the hierarchy.
|
static Identity |
ofCategoryAndType(String category,
String type)
Creates an identity with a category and type.
|
static Identity |
proxyByteStreams()
SOCKS5 bytestreams proxy service.
|
static Identity |
pubsubCollection()
A pubsub node of the "collection" type.
|
static Identity |
pubsubLeaf()
A pubsub node of the "leaf" type.
|
static Identity |
pubsubPersonalEventingService()
A personal eventing service that supports the publish-subscribe subset defined in XEP-0163..
|
static Identity |
pubsubService()
A pubsub service that supports the functionality defined in XEP-0060.
|
static Identity |
serverInstantMessaging()
Standard Jabber/XMPP server used for instant messaging and presence.
|
static Identity |
storeBerkeley()
A server component that stores data in a Berkeley database.
|
static Identity |
storeFile()
A server component that stores data on the file system.
|
static Identity |
storeGeneric()
A server data storage component other than one of the registered types.
|
static Identity |
storeLdap()
A server component that stores data in an LDAP database.
|
static Identity |
storeMySQL()
A server component that stores data in a MySQL database.
|
static Identity |
storeOracle()
A server component that stores data in an Oracle database.
|
static Identity |
storePostgreSQL()
A server component that stores data in a PostgreSQL database.
|
String |
toString() |
Identity |
withName(String name)
Creates a new identity with a name.
|
Identity |
withName(String name,
Locale language)
Creates a new identity with a name and a language.
|
public static Identity ofCategoryAndType(String category, String type)
Only use this method in exceptional cases, in most case you should use one of the many static factory methods, which creates a registered identity, e.g. clientBot()
category - The category.type - The type.public static Identity accountAdmin()
public static Identity accountAnonymous()
public static Identity accountRegistered()
public static Identity authCert()
public static Identity authGeneric()
public static Identity authLdap()
public static Identity authNtlm()
public static Identity authPam()
public static Identity automationCommandList()
public static Identity automationCommandNode()
public static Identity automationRpc()
public static Identity automationSoap()
public static Identity automationTranslation()
public static Identity clientBot()
public static Identity clientConsole()
public static Identity clientGame()
public static Identity clientHandheld()
public static Identity clientPc()
public static Identity clientPhone()
public static Identity clientSms()
public static Identity clientWeb()
public static Identity collaborationWhiteboard()
public static Identity componentArchive()
public static Identity componentClientToServer()
public static Identity componentGeneric()
public static Identity componentLoadBalancing()
public static Identity componentLog()
public static Identity componentPresence()
public static Identity componentRouter()
public static Identity componentServerToServer()
public static Identity componentSessionManagement()
public static Identity componentStatistics()
public static Identity conferenceIrc()
public static Identity conferenceText()
public static Identity directoryChatRoom()
public static Identity directoryGroup()
public static Identity directoryUser()
public static Identity directoryWaitingList()
public static Identity gatewayAIM()
public static Identity gatewayFacebook()
public static Identity gatewayGaduGadu()
public static Identity gatewayHttpWs()
public static Identity gatewayICQ()
public static Identity gatewayIRC()
public static Identity gatewayLCS()
public static Identity gatewayMSN()
public static Identity gatewayMySpaceIM()
public static Identity gatewayOCS()
public static Identity gatewayQQ()
public static Identity gatewaySametime()
public static Identity gatewaySimple()
public static Identity gatewaySkype()
public static Identity gatewaySMS()
public static Identity gatewaySMTP()
public static Identity gatewayTlen()
public static Identity gatewayXfire()
public static Identity gatewayXMPP()
public static Identity gatewayYahoo()
public static Identity headlineNewMail()
public static Identity headlineRss()
public static Identity headlineWeather()
public static Identity hierarchyBranch()
public static Identity hierarchyLeaf()
public static Identity proxyByteStreams()
public static Identity pubsubCollection()
public static Identity pubsubLeaf()
public static Identity pubsubPersonalEventingService()
public static Identity pubsubService()
public static Identity serverInstantMessaging()
public static Identity storeBerkeley()
public static Identity storeFile()
public static Identity storeGeneric()
public static Identity storeLdap()
public static Identity storeMySQL()
public static Identity storeOracle()
public static Identity storePostgreSQL()
public final String getCategory()
public final String getType()
public final String getName()
public final Locale getLanguage()
public final boolean equals(Object o)
public final int compareTo(Identity o)
compareTo in interface Comparable<Identity>o - The other identity.public Identity withName(String name)
name - The name.Copyright © 2014–2018 XMPP.rocks. All rights reserved.