public class ProtocolProviderServiceIcqImpl extends AbstractProtocolProviderService
Modifier and Type | Class and Description |
---|---|
static class |
ProtocolProviderServiceIcqImpl.AimConversationListener |
static class |
ProtocolProviderServiceIcqImpl.AimIcbmListener
Message listener.
|
static class |
ProtocolProviderServiceIcqImpl.ConnectionClosedListener
Fix for late close connection due to
multiple logins.
|
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
USING_ICQ
Property whether we are using AIM or ICQ service
|
BIND_RETRIES_DEFAULT_VALUE, BIND_RETRIES_PROPERTY_NAME
Constructor and Description |
---|
ProtocolProviderServiceIcqImpl() |
Modifier and Type | Method and Description |
---|---|
void |
fireRegistrationStateChanged(RegistrationState oldState,
RegistrationState newState,
int reasonCode,
java.lang.String reason)
Creates a RegistrationStateChange event corresponding to the specified
old and new states and notifies all currently registered listeners.
|
AccountID |
getAccountID()
Returns the AccountID that uniquely identifies the account represented
by this instance of the ProtocolProviderService.
|
protected net.kano.joustsim.oscar.AimConnection |
getAimConnection()
Returns the AimConnectionopened by this provider
|
protected net.kano.joustsim.oscar.AimSession |
getAimSession()
Returns the AimSession opened by this provider.
|
protected InfoRetreiver |
getInfoRetreiver()
Returns the info retriever that we've initialized for the current
session.
|
java.lang.String |
getProtocolDisplayName()
Returns the protocol display name.
|
ProtocolIcon |
getProtocolIcon()
Returns the icq/aim protocol icon.
|
java.lang.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
|
TransportProtocol |
getTransportProtocol()
Returns the "transport" protocol of this instance used to carry the
control channel for the current protocol service.
|
protected void |
initialize(java.lang.String screenname,
AccountID accountID)
Initialized the service implementation, and puts it in a sate where it
could interoperate with other services.
|
boolean |
isInitialized()
Returns true if the provider service implementation is initialized and
ready for use by other services, and false otherwise.
|
boolean |
isSignalingTransportSecure()
Indicate if the signaling transport of this protocol instance uses a
secure (e.g.
|
(package private) void |
reconnect(int reasonCode)
Reconnects if fails fire connection failed.
|
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 service.
|
addRegistrationStateChangeListener, addSupportedOperationSet, clearRegistrationStateChangeListener, clearSupportedOperationSet, fireRegistrationStateChanged, getOperationSet, getSupportedOperationSetClasses, getSupportedOperationSets, isRegistered, isRegistrationRequiredForCalling, removeRegistrationStateChangeListener, removeSupportedOperationSet, toString, unregister, validateContactAddress
public RegistrationState getRegistrationState()
public void register(SecurityAuthority authority) throws OperationFailedException
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.OperationFailedException
- with the corresponding code it the
registration fails for some reason (e.g. a networking error or an
implementation problem).void reconnect(int reasonCode)
reasonCode
- the appropriate SecurityAuthority reasonCode,
which would specify the reason for which we're re-calling the login.public void unregister()
public boolean isSignalingTransportSecure()
ProtocolProviderService
public TransportProtocol getTransportProtocol()
public java.lang.String getProtocolName()
public java.lang.String getProtocolDisplayName()
getProtocolDisplayName
in interface ProtocolProviderService
getProtocolDisplayName
in class AbstractProtocolProviderService
protected void initialize(java.lang.String screenname, AccountID accountID)
screenname
- the account id/uin/screenname of the account that
we're about to createaccountID
- the identifier of the account that this protocol
provider represents.AccountID
public void shutdown()
public boolean isInitialized()
public AccountID getAccountID()
public void fireRegistrationStateChanged(RegistrationState oldState, RegistrationState newState, int reasonCode, java.lang.String reason)
fireRegistrationStateChanged
in class AbstractProtocolProviderService
oldState
- the state that the provider had before the change
occurrednewState
- the state that the provider is currently in.reasonCode
- a value corresponding to one of the REASON_XXX fields
of the RegistrationStateChangeEvent class, indicating the reason for
this state transition.reason
- a String further explaining the reason code or null if
no such explanation is necessary.protected InfoRetreiver getInfoRetreiver()
protected net.kano.joustsim.oscar.AimSession getAimSession()
protected net.kano.joustsim.oscar.AimConnection getAimConnection()
public ProtocolIcon getProtocolIcon()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.