org.objectweb.jasmine.rules.dispatcher
Class NotificationDispatcher

java.lang.Object
  extended by org.objectweb.jasmine.rules.dispatcher.NotificationDispatcher

public class NotificationDispatcher
extends java.lang.Object

Author:
Jean-Pierre Poutcheu Dispatch notification events. Some actions go through the EventSwitch(Mail, DB and JMS) others do not(JMX and SNMP export).

Nested Class Summary
static class NotificationDispatcher.EventAction
          List of possible actions on a notification event.
 
Method Summary
static void dispatchEvent(NotificationDispatcher.EventAction action, org.ow2.jasmine.event.beans.JasmineEventNotification notification)
          Dispatch notification event to the predefined endpoint URI for the given action type.
static void dispatchEvent(NotificationDispatcher.EventAction action, org.ow2.jasmine.event.beans.JasmineEventNotification notification, java.lang.String fromAddress, java.lang.String toAddress)
          Dispatch event to the EventSwitch in the case the needed action is SEND_MAIL.
static void dispatchEvent(java.lang.String URI, org.ow2.jasmine.event.beans.JasmineEventNotification notification)
          Dispatch a given event to the EventSwitch.
static void dispatchEvent(java.lang.String endpoint, org.ow2.jasmine.event.beans.JasmineEventNotification notification, java.lang.String fromAddress, java.lang.String toAddress)
          Dispatch event to the EventSwitch in the case the needed action is SEND_MAIL to the predefined endpoint URI for the given action type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dispatchEvent

public static void dispatchEvent(NotificationDispatcher.EventAction action,
                                 org.ow2.jasmine.event.beans.JasmineEventNotification notification)
Dispatch notification event to the predefined endpoint URI for the given action type. If you want to send to a specific URI, use

Parameters:
action - the action to do.
notification - the event to dispatch.

dispatchEvent

public static void dispatchEvent(java.lang.String URI,
                                 org.ow2.jasmine.event.beans.JasmineEventNotification notification)
Dispatch a given event to the EventSwitch.

Parameters:
URI - the inbound resource locator.
notification - the event to dispatch.

dispatchEvent

public static void dispatchEvent(java.lang.String endpoint,
                                 org.ow2.jasmine.event.beans.JasmineEventNotification notification,
                                 java.lang.String fromAddress,
                                 java.lang.String toAddress)
Dispatch event to the EventSwitch in the case the needed action is SEND_MAIL to the predefined endpoint URI for the given action type. If you want to send to a specific URI, use

Parameters:
action - the action to do.
endpoint - the endpoint where event is dispatched.
notification - the event to dispatch.
fromAddress - the from address.
toAddress - the destination address.

dispatchEvent

public static void dispatchEvent(NotificationDispatcher.EventAction action,
                                 org.ow2.jasmine.event.beans.JasmineEventNotification notification,
                                 java.lang.String fromAddress,
                                 java.lang.String toAddress)
Dispatch event to the EventSwitch in the case the needed action is SEND_MAIL. SEND_MAIL needs more informations like the FROM_ADDRESS and TO_ADDRESS.

Parameters:
action - the action to do.
notification - the event to dispatch.
fromAddress - the from address.
toAddress - the destination address.


Copyright © 2010 OW2 Consortium. All Rights Reserved.