public class InstantMessengerAdaptor extends WOAdaptor implements IMessageListener
Modifier and Type | Class and Description |
---|---|
protected class |
InstantMessengerAdaptor.ConversationExpirationRunnable |
Modifier and Type | Field and Description |
---|---|
static String |
AUTO_LOGIN_KEY |
static String |
BUDDY_NAME_KEY |
static String |
CENTRALIZE_SCREEN_NAME_KEY |
static String |
CONVERSATION_ACTION_NAME_KEY |
static String |
CONVERSATION_KEY |
static String |
CONVERSATION_TIMEOUT_KEY |
static String |
IM_ACTION_URL_KEY |
static String |
IM_FACTORY_KEY |
static String |
IS_IM_KEY |
static org.apache.log4j.Logger |
log |
static String |
MESSAGE_KEY |
static String |
PASSWORD_KEY |
static String |
RAW_MESSAGE_KEY |
static String |
SCREEN_NAME_KEY |
static String |
WATCHER_ENABLED_KEY |
static String |
WATCHER_IM_FACTORY_KEY |
static String |
WATCHER_PASSWORD_KEY |
static String |
WATCHER_SCREEN_NAME_KEY |
_ConstructorParametersTypes, _port, DefaultListenQueueSize
Constructor and Description |
---|
InstantMessengerAdaptor(String name,
NSDictionary parameters) |
doesBusyRunOnce, port, runOnce, toString
public static org.apache.log4j.Logger log
public static final String IM_FACTORY_KEY
public static final String SCREEN_NAME_KEY
public static final String PASSWORD_KEY
public static final String CONVERSATION_TIMEOUT_KEY
public static final String CONVERSATION_ACTION_NAME_KEY
public static final String IM_ACTION_URL_KEY
public static final String AUTO_LOGIN_KEY
public static final String WATCHER_ENABLED_KEY
public static final String WATCHER_IM_FACTORY_KEY
public static final String WATCHER_SCREEN_NAME_KEY
public static final String WATCHER_PASSWORD_KEY
public static final String CENTRALIZE_SCREEN_NAME_KEY
public static final String IS_IM_KEY
public static final String CONVERSATION_KEY
public static final String BUDDY_NAME_KEY
public static final String MESSAGE_KEY
public static final String RAW_MESSAGE_KEY
public InstantMessengerAdaptor(String name, NSDictionary parameters)
public static InstantMessengerAdaptor instantMessengerAdaptor()
public InstantMessengerConnection setDefaultInstantMessenger(String screenName, String password)
public InstantMessengerConnection addInstantMessenger(String screenName, String password)
public InstantMessengerConnection _addInstantMessenger(String screenName, String password)
public void _removeInstantMessengerConnection(InstantMessengerConnection connection)
public void removeInstantMessenger(String screenName)
public IInstantMessenger instantMessengerForScreenName(String screenName)
public IInstantMessenger defaultInstantMessenger()
public static boolean isIMRequest(WOContext context)
public static boolean isIMRequest(WORequest request)
public static Conversation conversation(WORequest request)
public void registerForEvents()
registerForEvents
in class WOAdaptor
public void unregisterForEvents()
unregisterForEvents
in class WOAdaptor
public boolean dispatchesRequestsConcurrently()
dispatchesRequestsConcurrently
in class WOAdaptor
public void messageReceived(IInstantMessenger instantMessenger, String buddyName, String rawMessage)
messageReceived
in interface IMessageListener
public void sessionDidCreate(NSNotification notification)
public void sendMessage(String screenName, String buddyName, String message, boolean block) throws MessageException
MessageException
public InstantMessengerConnection _instantMessengerConnectionNamed(String screenName)
public InstantMessengerConnection _defaultInstantMessengerConnection()
protected IInstantMessengerFactory getFactory(String key)
protected void removeExpiredConversations()
Copyright © 2002 – 2024 Project Wonder.