/** * Sets the name of the client that will be returned when asked for the client identity * in a disco request. The name could be any value you need to identity this client. * * @param name the name of the client that will be returned when asked for the client identity * in a disco request. */ public static void setIdentityName(String name) { Identity identity = identities.remove(0); identity = new Identity(DEFAULT_IDENTITY_CATEGORY, name, DEFAULT_IDENTITY_TYPE); identities.add(identity); }
public List<Identity> getNodeIdentities() { List<Identity> answer = new ArrayList<Identity>(); Identity identity = new Identity( "automation", name, "command-node"); answer.add(identity); return answer; }
public List<DiscoverInfo.Identity> getNodeIdentities() { List<DiscoverInfo.Identity> answer = new ArrayList<DiscoverInfo.Identity>(); DiscoverInfo.Identity identity = new DiscoverInfo.Identity( "automation", name); identity.setType("command-node"); answer.add(identity); return answer; }
DiscoverInfo.Identity identity = new DiscoverInfo.Identity("client", getIdentityName()); identity.setType(getIdentityType());
DiscoverInfo.Identity identity = new DiscoverInfo.Identity("client", getIdentityName()); identity.setType(getIdentityType());
if (parser.getName().equals("identity")) { identity = new DiscoverInfo.Identity(category, name); identity.setType(type); discoverInfo.addIdentity(identity);
if (parser.getName().equals("identity")) { identity = new DiscoverInfo.Identity(category, name, type); if (lang != null) identity.setLanguage(lang);
if (parser.getName().equals("identity")) { identity = new DiscoverInfo.Identity(category, name); identity.setType(type); discoverInfo.addIdentity(identity);
if (parser.getName().equals("identity")) { identity = new DiscoverInfo.Identity(category, name); identity.setType(type); discoverInfo.addIdentity(identity);
DiscoverInfo.Identity identity = new DiscoverInfo.Identity(getIdentityCategory(), getIdentityName()); identity.setType(getIdentityType());
/** * Sets the type of client that will be returned when asked for the client identity in a * disco request. The valid types are defined by the category client. Follow this link to learn * the possible types: <a href="http://xmpp.org/registrar/disco-categories.html#client">Jabber::Registrar</a>. * * @param type the type of client that will be returned when asked for the client identity in a * disco request. */ public static void setIdentityType(String type) { Identity identity = identities.get(0); if (identity != null) { identity.setType(type); } else { identity = new Identity(DEFAULT_IDENTITY_CATEGORY, DEFAULT_IDENTITY_NAME, type); identities.add(identity); } }
public List<DiscoverInfo.Identity> getNodeIdentities() { List<DiscoverInfo.Identity> answer = new ArrayList<DiscoverInfo.Identity>(); DiscoverInfo.Identity identity = new DiscoverInfo.Identity( "automation", name); identity.setType("command-node"); answer.add(identity); return answer; }