Package com.mdfromhtml.core
Class SessionTopicTypeRegexSearch
- java.lang.Object
-
- com.mdfromhtml.core.SessionTopicTypeRegexSearch
-
public class SessionTopicTypeRegexSearch extends Object
Bean for filters for getMessages
-
-
Constructor Summary
Constructors Constructor Description SessionTopicTypeRegexSearch(MDfromHTMLID sessionID, String topicRegex, String typeRegex)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MDfromHTMLIDgetSessionID()StringgetTopicRegex()StringgetTypeRegex()booleanisMessageWanted(IMDfromHTMLIPCMessage msg)Determines whether the supplied msg matches the search criteria of this object
-
-
-
Constructor Detail
-
SessionTopicTypeRegexSearch
public SessionTopicTypeRegexSearch(MDfromHTMLID sessionID, String topicRegex, String typeRegex)
Constructor- Parameters:
sessionID- the identity of the session to be matched, or a null or anMDfromHTMLID.UNDEFINED_IDto allow any to matchtopicRegex- the regular expression used to test the message topic to find a match, or a null orMDfromHTMLConstants.UNDEFINED_Stringto allow any matchtypeRegex- the regular expression used to test the message type to find a match, or a null orMDfromHTMLConstants.UNDEFINED_Stringto allow any match
-
-
Method Detail
-
getSessionID
public MDfromHTMLID getSessionID()
- Returns:
MDfromHTMLIDof desired session
-
getTopicRegex
public String getTopicRegex()
- Returns:
- desired topicRegex
-
getTypeRegex
public String getTypeRegex()
- Returns:
- desired typeRegex
-
isMessageWanted
public boolean isMessageWanted(IMDfromHTMLIPCMessage msg)
Determines whether the supplied msg matches the search criteria of this object- Parameters:
msg-- Returns:
- true if any of the required components are undefined or what is supplied matches what is in the message
-
-