The irc component implements an IRC (Internet Relay Chat) transport.
Maven users will need to add the following dependency to their
pom.xml for this component:
You can append query options to the URI in the following format,
Comma separated list of IRC channels to join.
The nickname used in chat.
The IRC server user name.
Same as nickname.
The IRC server password.
The IRC user's actual name.
|Camel 2.18: Your IRC server nickname password.||nickPassword=mysecret||None|
Whether or not the server supports color codes.
Whether or not to handle general responses to commands or informational messages.
Handle nickname change events.
Handle user quit events.
Handle user join events.
Handle kick events.
Handle mode change events.
Handle user part events.
Handle topic change events.
Handle message events.
The trust manager used to verify the SSL server's certificate.
The default trust manager, which accepts all certificates, will be used.
Camel 2.2: Comma separated list of IRC channel keys. Important to be listed in same order as channels. When joining multiple channels with only some needing keys just insert an empty value for that channel.
Camel 2.9: Reference to a
Using the JSSE Configuration Utility
As of Camel 2.9, the IRC component supports SSL/TLS configuration through the Camel JSSE Configuration Utility. This utility greatly decreases the amount of component specific code you need to write and is configurable at the endpoint and component levels. The following examples demonstrate how to use the utility with the IRC component.
Programmatic configuration of the endpoint
Spring DSL based configuration of endpoint
Using the legacy basic configuration options
You can also connect to an SSL enabled IRC server, as follows:
By default, the IRC transport uses SSLDefaultTrustManager. If you need to provide your own custom trust manager, use the
trustManager parameter as follows:
Available as of Camel 2.2
Some irc rooms requires you to provide a key to be able to join that channel. The key is just a secret word.
For example we join 3 channels where as only channel 1 and 3 uses a key.