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; }
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; }
/** * 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); } }
identity.setType(getIdentityType()); response.addIdentity(identity);
identity.setType(getIdentityType()); response.addIdentity(identity);
identity.setType(type); discoverInfo.addIdentity(identity);
identity.setType(type); discoverInfo.addIdentity(identity);
identity.setType(type); discoverInfo.addIdentity(identity);
identity.setType(getIdentityType()); response.addIdentity(identity);