use of org.eclipse.ecf.core.identity.Namespace in project ecf by eclipse.
the class XMPPChatRoomContainer method createChatRoomID.
protected ID createChatRoomID(String groupName) throws IDCreateException {
String username = getXMPPConnection().getUser();
final int atIndex = username.indexOf('@');
if (atIndex > 0)
username = username.substring(0, atIndex);
final String host = getXMPPConnection().getHost();
final Namespace ns = getConnectNamespace();
final ID targetID = IDFactory.getDefault().createID(ns, new Object[] { username, host, null, groupName, username });
return targetID;
}
Aggregations