Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.rss
Class ProtocolProviderServiceRssImpl

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.AbstractProtocolProviderService
      extended by net.java.sip.communicator.impl.protocol.rss.ProtocolProviderServiceRssImpl
All Implemented Interfaces:
ProtocolProviderService

public class ProtocolProviderServiceRssImpl
extends AbstractProtocolProviderService

A Rss implementation of the ProtocolProviderService.

Author:
Jean-Albert Vescovo, Emil Ivov

Field Summary
static String RSS_PROTOCOL_NAME
          The name of this protocol.
 
Fields inherited from interface net.java.sip.communicator.service.protocol.ProtocolProviderService
BIND_RETRIES_DEFAULT_VALUE, BIND_RETRIES_PROPERTY_NAME
 
Constructor Summary
ProtocolProviderServiceRssImpl()
          The default constructor for the Rss protocol provider.
 
Method Summary
 AccountID getAccountID()
          Returns the AccountID that uniquely identifies the account represented by this instance of the ProtocolProviderService.
 OperationSetBasicInstantMessagingRssImpl getBasicInstantMessaging()
          Returns the IM set
 OperationSetBasicInstantMessagingRssImpl getOperationSetBasicIM()
          Returns a reference to the instant messaging operation set that we are currently using for this provider.
 OperationSetPersistentPresenceRssImpl getOperationSetPresence()
          Returns a reference to the presence operation set that we are currently using for this provider.
 ProtocolIcon getProtocolIcon()
          Returns the rss protocol icon.
 String getProtocolName()
          Returns the short name of the protocol that the implementation of this provider is based upon (like SIP, Jabber, ICQ/AIM, or others for example).
 RegistrationState getRegistrationState()
          Returns the state of the registration of this protocol provider with the corresponding registration service.
 TransportProtocol getTransportProtocol()
          Returns the "transport" protocol of this instance used to carry the control channel for the current protocol service.
protected  void initialize(String userID, AccountID accountID)
          Initializes the service implementation, and puts it in a state where it could interoperate with other services.
 boolean isSignalingTransportSecure()
          Indicate if the signaling transport of this protocol instance uses a secure (e.g.
 void register(SecurityAuthority authority)
          Starts the registration process.
 void shutdown()
          Makes the service implementation close all open sockets and release any resources that it might have taken and prepare for shutdown/garbage collection.
 void unregister()
          Ends the registration of this protocol provider with the current registration service.
 
Methods inherited from class net.java.sip.communicator.service.protocol.AbstractProtocolProviderService
addRegistrationStateChangeListener, addSupportedOperationSet, clearRegistrationStateChangeListener, fireRegistrationStateChanged, getOperationSet, getProtocolDisplayName, getSupportedOperationSets, isRegistered, removeRegistrationStateChangeListener, removeSupportedOperationSet, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.java.sip.communicator.service.protocol.ProtocolProviderService
hashCode
 

Field Detail

RSS_PROTOCOL_NAME

public static final String RSS_PROTOCOL_NAME
The name of this protocol.

See Also:
Constant Field Values
Constructor Detail

ProtocolProviderServiceRssImpl

public ProtocolProviderServiceRssImpl()
The default constructor for the Rss protocol provider.

Method Detail

initialize

protected void initialize(String userID,
                          AccountID accountID)
Initializes the service implementation, and puts it in a state where it could interoperate with other services. It is strongly recomended that properties in this Map be mapped to property names as specified by AccountProperties.

Parameters:
userID - the user id of the rss account we're currently initializing
accountID - the identifier of the account that this protocol provider represents.
See Also:
AccountID

getAccountID

public AccountID getAccountID()
Returns the AccountID that uniquely identifies the account represented by this instance of the ProtocolProviderService.

Returns:
the id of the account represented by this provider.

getProtocolName

public String getProtocolName()
Returns the short name of the protocol that the implementation of this provider is based upon (like SIP, Jabber, ICQ/AIM, or others for example).

Returns:
a String containing the short name of the protocol this service is implementing (most often that would be a name in ProtocolNames).

getRegistrationState

public RegistrationState getRegistrationState()
Returns the state of the registration of this protocol provider with the corresponding registration service.

Returns:
ProviderRegistrationState

register

public void register(SecurityAuthority authority)
              throws OperationFailedException
Starts the registration process.

Parameters:
authority - the security authority that will be used for resolving any security challenges that may be returned during the registration or at any moment while wer're registered.
Throws:
OperationFailedException - with the corresponding code it the registration fails for some reason (e.g. a networking error or an implementation problem).

shutdown

public void shutdown()
Makes the service implementation close all open sockets and release any resources that it might have taken and prepare for shutdown/garbage collection.


unregister

public void unregister()
                throws OperationFailedException
Ends the registration of this protocol provider with the current registration service.

Throws:
OperationFailedException - with the corresponding code it the registration fails for some reason (e.g. a networking error or an implementation problem).

isSignalingTransportSecure

public boolean isSignalingTransportSecure()
Description copied from interface: ProtocolProviderService
Indicate if the signaling transport of this protocol instance uses a secure (e.g. via TLS) connection.

Returns:
True when the connection is secured, false otherwise.

getTransportProtocol

public TransportProtocol getTransportProtocol()
Returns the "transport" protocol of this instance used to carry the control channel for the current protocol service.

Returns:
The "transport" protocol of this instance: TCP.

getProtocolIcon

public ProtocolIcon getProtocolIcon()
Returns the rss protocol icon.

Returns:
the rss protocol icon

getBasicInstantMessaging

public OperationSetBasicInstantMessagingRssImpl getBasicInstantMessaging()
Returns the IM set

Returns:
the IM set

getOperationSetBasicIM

public OperationSetBasicInstantMessagingRssImpl getOperationSetBasicIM()
Returns a reference to the instant messaging operation set that we are currently using for this provider.

Returns:
a reference to the instant messaging operation set that we are currently using for this provider.

getOperationSetPresence

public OperationSetPersistentPresenceRssImpl getOperationSetPresence()
Returns a reference to the presence operation set that we are currently using for this provider.

Returns:
a reference to the presence operation set that we are currently using for this provider.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.