| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class allows the application to define rules governing how messages should be processed by the service. In the common case, messages are delivered to the recipient(s) if online and may be stored for future delivery. This class provide the user with more control over what happens. Specifically, it allows the user to define a condition based on time and message disposition and associate a specific action should this condition be matched by the message. Actions include discarding the message, deferring it, or generating some form of notification back to the sender.
| Nested Class Summary | |
| static class | MessageProcessingRule.ActionThis class defines an action that the service can take on a message in transit | 
| static class | MessageProcessingRule.Conditionbase condition class | 
| static class | MessageProcessingRule.DispositionConditionA message disposition describes how the service plans to dispose of a message. | 
| static class | MessageProcessingRule.ExpirationConditionexpiration condition | 
| static class | MessageProcessingRule.SessionConditionA recipient may access the service using multiple sessions. | 
| Field Summary | |
| static MessageProcessingRule.Action | ALERTnotifies the sender if the condition is matched The notification is provided through the MessageStatusListener object provided when sending the message | 
| static MessageProcessingRule.SessionCondition | ANYdeliver to any of the recipients session. | 
| static MessageProcessingRule.Action | DEFERstore the message for future delivery. | 
| static MessageProcessingRule.DispositionCondition | DIRECTmessage to be delivered directly to online user | 
| static MessageProcessingRule.Action | DROPdiscard the message silently | 
| static MessageProcessingRule.SessionCondition | EQUALSdeliver only to session matched by the recipient address | 
| static MessageProcessingRule.Action | ERRORnotifies the sender if the condition is matched The notification is provided through the MessageStatusListener object provided when sending the message | 
| static MessageProcessingRule.DispositionCondition | FORWARDmessage to be forwarded to another XMPP domain | 
| static MessageProcessingRule.DispositionCondition | GATEWAYmessage to be forwarded to another messaging system. | 
| static MessageProcessingRule.DispositionCondition | NONEmessage to be discarded | 
| static MessageProcessingRule.SessionCondition | NOTdeliver to any session except for the one specified by the recipient address | 
| static MessageProcessingRule.Action | NOTIFYnotifies the sender if the condition is matched The notification is provided through the MessageStatusListener object provided when sending the message | 
| static MessageProcessingRule.DispositionCondition | STOREDmessage to be stored for future delivery | 
| Method Summary | |
|  MessageProcessingRule.Action | getAction()get this rule's action | 
|  MessageProcessingRule.Condition[] | getConditions()get the condition set contained in this rule | 
| Field Detail | 
public static final MessageProcessingRule.Action DROP
public static final MessageProcessingRule.Action NOTIFY
public static final MessageProcessingRule.Action ALERT
public static final MessageProcessingRule.Action ERROR
public static final MessageProcessingRule.Action DEFER
public static final MessageProcessingRule.DispositionCondition DIRECT
public static final MessageProcessingRule.DispositionCondition STORED
public static final MessageProcessingRule.DispositionCondition FORWARD
public static final MessageProcessingRule.DispositionCondition GATEWAY
public static final MessageProcessingRule.DispositionCondition NONE
public static final MessageProcessingRule.SessionCondition ANY
public static final MessageProcessingRule.SessionCondition NOT
public static final MessageProcessingRule.SessionCondition EQUALS
| Method Detail | 
public MessageProcessingRule.Condition[] getConditions()
                                                throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic MessageProcessingRule.Action getAction()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||