public boolean isFilterMatch(BaseMessageHeader messageHeader)
    {
        boolean bMatch = super.isFilterMatch(messageHeader);
        if (bMatch)
        {
            if (m_bPrivate)
                bMatch = false; // Only a matching SessionMessageHeader will be sent.
            if ((messageHeader != null)
                && (this.getObjectKey() != null)
                && (messageHeader instanceof SessionMessageHeader)
                && (((SessionMessageHeader)messageHeader).getObjectKey() != null)
                && (!this.getObjectKey().equals(((SessionMessageHeader)messageHeader).getObjectKey())))
                    bMatch = false;   // No match!
            else
                    bMatch = true;    // Match!
        }
        return bMatch;    // MATCH!!!
    }
public boolean isFilterMatch ( BaseMessageHeader messageHeader ) { boolean bMatch = super . isFilterMatch ( messageHeader ) ; if ( bMatch ) { if ( m_bPrivate ) bMatch = false ; if ( ( messageHeader != null ) && ( this . getObjectKey ( ) != null ) && ( messageHeader instanceof SessionMessageHeader ) && ( ( ( SessionMessageHeader ) messageHeader ) . getObjectKey ( ) != null ) && ( ! this . getObjectKey ( ) . equals ( ( ( SessionMessageHeader ) messageHeader ) . getObjectKey ( ) ) ) ) bMatch = false ; else bMatch = true ; } return bMatch ; }
Does this message header match this filter?
@param messageHeader The message header to check.
@return true if match, false if no match.