Oracle Fusion Middleware User Messaging Service 11.1.1.3.0 Java API Reference
E14011-02

oracle.sdp.messaging.filter
Interface MessageFilter

All Superinterfaces:
Serializable

public interface MessageFilter
extends Serializable

A MessageFilter is used by an application to exercise greater control over what messages are delivered to it. A MessageFilter contains a matching criterion and an action. An application can register a series of message filters; they will be applied in order against an incoming (received) message; if the criterion matches the message, the action is taken. For example an application can use MessageFilters to implement desired blacklists, by rejecting all messages from a given sender address.

Since:
11.1.1.0.0

Nested Class Summary
static class MessageFilter.Action
          The action to take if this filter matches a message.
static class MessageFilter.FieldType
          The set of possible message fields against which to match.
 
Method Summary
 MessageFilter and(MessageFilter f2)
          Not supported at this time.
 MessageFilter.Action getAction()
           
 java.lang.String getFieldName()
           
 MessageFilter.FieldType getFieldType()
           
 java.lang.String getPattern()
           
 boolean matches(Message msg)
           
 MessageFilter or(MessageFilter f2)
          Not supported at this time.
 

Method Detail

and

MessageFilter and(MessageFilter f2)
                  throws MessagingException
Not supported at this time.

Parameters:
f2 -
Returns:
Throws:
MessagingException

getAction

MessageFilter.Action getAction()

getFieldName

java.lang.String getFieldName()

getFieldType

MessageFilter.FieldType getFieldType()

getPattern

java.lang.String getPattern()

matches

boolean matches(Message msg)
                throws MessagingException
Throws:
MessagingException

or

MessageFilter or(MessageFilter f2)
                 throws MessagingException
Not supported at this time.

Parameters:
f2 -
Returns:
Throws:
MessagingException

Oracle Fusion Middleware User Messaging Service 11.1.1.3.0 Java API Reference
E14011-02

Copyright © 2010 Oracle and/or its affiliates. All rights reserved.