public class IrcConnection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.Character> |
SPECIAL_CHARACTERS
Set of characters with special meanings for IRC, such as: ',' used as
separator of list of items (channels, nicks, etc.), ' ' (space) separator
of command parameters, etc.
|
Constructor and Description |
---|
IrcConnection(IrcStack.PersistentContext context,
ClientConfig config,
com.ircclouds.irc.api.IRCApi irc,
com.ircclouds.irc.api.IServerParameters params,
java.lang.String password,
IrcConnectionListener connectionListener)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
disconnect()
Disconnect.
|
ChannelManager |
getChannelManager()
Get the channel manager instance.
|
com.ircclouds.irc.api.IRCApi |
getClient()
Get the IRC client library instance.
|
IdentityManager |
getIdentityManager()
Get the identity manager instance.
|
MessageManager |
getMessageManager()
Get the message manager instance.
|
PresenceManager |
getPresenceManager()
Get the presence manager.
|
ServerChannelLister |
getServerChannelLister()
Get the channel lister that facilitates server channel queries.
|
boolean |
isConnected()
Check whether or not a connection is established.
|
boolean |
isSecureConnection()
Check whether the connection is a secure connection (TLS).
|
public static final java.util.Set<java.lang.Character> SPECIAL_CHARACTERS
IrcConnection(IrcStack.PersistentContext context, ClientConfig config, com.ircclouds.irc.api.IRCApi irc, com.ircclouds.irc.api.IServerParameters params, java.lang.String password, IrcConnectionListener connectionListener) throws java.lang.Exception
context
- persistent context that crosses connectionsconfig
- client configurationirc
- the irc instanceparams
- connection parameterspassword
- the password for authenticationconnectionListener
- listener for callback upon connection
interruptionallowV3
- Allow IRC version 3 capability negotiation. If not
allowed, this may regress the IRC client to "classic" IRC
(RFC1459)java.lang.Exception
- Throws IOException in case of connection problems.public boolean isConnected()
public boolean isSecureConnection()
void disconnect()
public com.ircclouds.irc.api.IRCApi getClient()
public PresenceManager getPresenceManager()
public ServerChannelLister getServerChannelLister()
public IdentityManager getIdentityManager()
public ChannelManager getChannelManager()
public MessageManager getMessageManager()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.