Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8bed9334b340ee78bc704ddedad1e7669405ad92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.eclipse.ecf.provider.xmpp.identity;

import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.core.identity.IDInstantiationException;
import org.eclipse.ecf.core.identity.Namespace;

public class XMPPSNamespace extends Namespace {

	private static final long serialVersionUID = 390139788867091795L;
	private static final String XMPP_PROTOCOL = "xmpps";
	
	public ID createInstance(Class[] argTypes, Object[] args)
			throws IDInstantiationException {
		try {
			return new XMPPID(this, (String) args[0]);
		} catch (Exception e) {
			throw new IDInstantiationException("XMPP ID creation exception", e);
		}
	}

	public String getScheme() {
		return XMPP_PROTOCOL;
	}
}

Back to the top