public class ProtocolProviderServiceIrcImpl extends AbstractProtocolProviderService
BIND_RETRIES_DEFAULT_VALUE, BIND_RETRIES_PROPERTY_NAME
Constructor and Description |
---|
ProtocolProviderServiceIrcImpl()
The default constructor for the IRC protocol provider.
|
Modifier and Type | Method and Description |
---|---|
AccountID |
getAccountID()
Returns the AccountID that uniquely identifies the account represented
by this instance of the ProtocolProviderService.
|
OperationSetBasicInstantMessagingIrcImpl |
getBasicInstantMessaging()
Get the Basic Instant Messaging implementation.
|
protected RegistrationState |
getCurrentRegistrationState()
Returns the current registration state of this protocol provider.
|
IrcStack |
getIrcStack()
Returns the IRC stack implementation.
|
OperationSetMultiUserChatIrcImpl |
getMUC()
Get the Multi User Chat implementation.
|
OperationSetPersistentPresenceIrcImpl |
getPersistentPresence()
Get the Persistent Presence implementation.
|
ProtocolIcon |
getProtocolIcon()
Returns the icon for this protocol.
|
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 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(java.lang.String userID,
AccountID accountID)
Initializes the service implementation, and puts it in a state where it
could operate 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.
|
protected void |
setCurrentRegistrationState(RegistrationState regState,
int reason)
Sets the current registration state of this protocol provider.
|
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.
|
addRegistrationStateChangeListener, addSupportedOperationSet, clearRegistrationStateChangeListener, clearSupportedOperationSet, fireRegistrationStateChanged, fireRegistrationStateChanged, getOperationSet, getProtocolDisplayName, getSupportedOperationSetClasses, getSupportedOperationSets, isRegistered, isRegistrationRequiredForCalling, removeRegistrationStateChangeListener, removeSupportedOperationSet, toString, unregister, validateContactAddress
public ProtocolProviderServiceIrcImpl()
protected void initialize(java.lang.String userID, AccountID accountID)
userID
- the user id of the IRC account we're currently
initializingaccountID
- the identifier of the account that this protocol
provider represents.AccountID
public OperationSetMultiUserChatIrcImpl getMUC()
public OperationSetBasicInstantMessagingIrcImpl getBasicInstantMessaging()
public OperationSetPersistentPresenceIrcImpl getPersistentPresence()
public AccountID getAccountID()
public java.lang.String getProtocolName()
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).public void shutdown()
public void unregister() throws OperationFailedException
OperationFailedException
- with the corresponding code it the
registration fails for some reason (e.g. a networking error or an
implementation problem).public boolean isSignalingTransportSecure()
public TransportProtocol getTransportProtocol()
public ProtocolIcon getProtocolIcon()
public IrcStack getIrcStack()
protected RegistrationState getCurrentRegistrationState()
protected void setCurrentRegistrationState(RegistrationState regState, int reason)
regState
- the new registration state to setreason
- reason for the state change
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.