public class JabberMessageProcessor extends Object implements org.apache.camel.Processor
Constructor and Description |
---|
JabberMessageProcessor(Config config)
Instantiates a new jabber message processor.
|
Modifier and Type | Method and Description |
---|---|
static org.jivesoftware.smack.packet.Message |
getSmackMessage(org.apache.camel.Exchange exchange)
Gets the smack message.
|
static boolean |
isBotCommand(org.apache.camel.Exchange exchange)
Checks if is bot command.
|
void |
process(org.apache.camel.Exchange exchange) |
static String |
translateUser(twitter4j.User user,
String profile)
Translate user.
|
String |
usage()
Usage.
|
public JabberMessageProcessor(Config config)
config
- the configpublic static boolean isBotCommand(org.apache.camel.Exchange exchange)
exchange
- the exchangepublic static org.jivesoftware.smack.packet.Message getSmackMessage(org.apache.camel.Exchange exchange)
exchange
- the exchangepublic void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
Exception
public static String translateUser(twitter4j.User user, String profile)
user
- the userprofile
- the profilepublic String usage()
Copyright © 2016. All rights reserved.