Project Wonder 5.0

er.imadaptor.components
Class IMSearchMessageAction

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by er.imadaptor.components.IMAction
              extended by er.imadaptor.components.IMSearchMessageAction

public class IMSearchMessageAction
extends IMAction

IMSearchMessageAction allows you to map substrings that appear in AIM message responses to other objects. For instance, you can pass in an options dictionary that maps the word "hi" to the object Greeting, or the word "bug" to the object BugReport. If the word "hi" appears in the aim response, it will return the matching object as its value. You can optionally set quicksilver to true if you want string matching to behave like Quicksilver.

Author:
mschrag

Field Summary
 
Fields inherited from class er.imadaptor.components.IMAction
_action
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
IMSearchMessageAction(java.lang.String name, com.webobjects.foundation.NSDictionary associations, com.webobjects.appserver.WOElement element)
           
 
Method Summary
protected  void actionInvoked(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
           
protected  boolean searchInsideMessage()
           
static com.webobjects.foundation.NSArray selectedValues(com.webobjects.foundation.NSArray options, java.lang.String optionKeyPath, boolean quicksilver, java.lang.String message)
           
static com.webobjects.foundation.NSArray selectedValues(com.webobjects.foundation.NSArray options, java.lang.String optionKeyPath, boolean quicksilver, java.lang.String message, boolean searchInsideMessage)
           
static com.webobjects.foundation.NSArray selectedValues(com.webobjects.foundation.NSDictionary options, boolean quicksilver, java.lang.String message)
           
static com.webobjects.foundation.NSArray selectedValues(com.webobjects.foundation.NSDictionary options, boolean quicksilver, java.lang.String message, boolean searchInsideMessage)
           
 
Methods inherited from class er.imadaptor.components.IMAction
appendToResponse, invokeAction
 
Methods inherited from class com.webobjects.appserver.WODynamicElement
toString
 
Methods inherited from class com.webobjects.appserver.WOElement
takeValuesFromRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IMSearchMessageAction

public IMSearchMessageAction(java.lang.String name,
                             com.webobjects.foundation.NSDictionary associations,
                             com.webobjects.appserver.WOElement element)
Method Detail

searchInsideMessage

protected boolean searchInsideMessage()

selectedValues

public static com.webobjects.foundation.NSArray selectedValues(com.webobjects.foundation.NSDictionary options,
                                                               boolean quicksilver,
                                                               java.lang.String message)

selectedValues

public static com.webobjects.foundation.NSArray selectedValues(com.webobjects.foundation.NSArray options,
                                                               java.lang.String optionKeyPath,
                                                               boolean quicksilver,
                                                               java.lang.String message)

selectedValues

public static com.webobjects.foundation.NSArray selectedValues(com.webobjects.foundation.NSDictionary options,
                                                               boolean quicksilver,
                                                               java.lang.String message,
                                                               boolean searchInsideMessage)

selectedValues

public static com.webobjects.foundation.NSArray selectedValues(com.webobjects.foundation.NSArray options,
                                                               java.lang.String optionKeyPath,
                                                               boolean quicksilver,
                                                               java.lang.String message,
                                                               boolean searchInsideMessage)

actionInvoked

protected void actionInvoked(com.webobjects.appserver.WORequest request,
                             com.webobjects.appserver.WOContext context)
Overrides:
actionInvoked in class IMAction

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.