|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.UriHandlerJabberImpl
public class UriHandlerJabberImpl
The jabber implementation of the URI handler. This class handles xmpp URIs by trying to establish a chat with them or add you to a chatroom.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.argdelegation.UriHandler |
|---|
PROTOCOL_PROPERTY |
| Constructor Summary | |
|---|---|
UriHandlerJabberImpl(ProtocolProviderFactory protoFactory)
Creates an instance of this uri handler, so that it would start handling URIs by passing them to the providers registered by protoFactory . |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes of this UriHandler by, for example, removing the
listeners it has added in its constructor (in order to prevent memory
leaks, for one). |
String |
getProtocol()
Returns the protocol that this handler is responsible for or "xmpp" in other words. |
void |
handleAccountManagerEvent(AccountManagerEvent event)
Notifies this listener about an event fired by a specific AccountManager. |
void |
handleUri(String uri)
Parses the specified URI and creates a chat with the currently active im operation set. |
void |
registerHandlerService()
Registers this UriHandler with the bundle context so that it could start handling URIs |
ProtocolProviderService |
selectHandlingProvider(String uri)
Returns the default provider that we are supposed to handle URIs through or null if there aren't any. |
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
The point of implementing a service listener here is so that we would only register our own uri handling service and thus only handle URIs while the factory is available as an OSGi service. |
void |
unregisterHandlerService()
Unregisters this UriHandler from the bundle context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UriHandlerJabberImpl(ProtocolProviderFactory protoFactory)
throws NullPointerException
protoFactory - the provider that created us.
NullPointerException - if protoFactory is null.| Method Detail |
|---|
public void dispose()
UriHandler by, for example, removing the
listeners it has added in its constructor (in order to prevent memory
leaks, for one).
public void handleAccountManagerEvent(AccountManagerEvent event)
AccountManagerListenerAccountManager.
handleAccountManagerEvent in interface AccountManagerListenerevent - the AccountManagerEvent describing the
AccountManager firing the notification and the
other details of the specific notification.public void registerHandlerService()
public void unregisterHandlerService()
public String getProtocol()
getProtocol in interface UriHandlerpublic void handleUri(String uri)
handleUri in interface UriHandleruri - the xmpp URI that we have to handle.public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerevent - the OSGi ServiceEvent
public ProtocolProviderService selectHandlingProvider(String uri)
throws OperationFailedException
uri - the uri that we'd like to handle with the provider that we are
about to select.
OperationFailedException - with code OPERATION_CANCELED if
the users.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||