/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/MegacoListener.java

http://mobicents.googlecode.com/ · Java · 43 lines · 6 code · 4 blank · 33 comment · 0 complexity · 42a46e995a6793b1bd3efb9f6a2c08ad MD5 · raw file

  1. package javax.megaco;
  2. import java.util.EventListener;
  3. /**
  4. * This interface defines the methods that must be implemented by any MEGACO
  5. * user application to receive and process JAIN MEGACO Events emitted by an
  6. * object that implements the MegacoProvider interface. Separate methods for
  7. * handling JAIN MEGACO Command Event Objects and JAIN MEGACO Association Event
  8. * Objects are specified. An instance of a class that implements this interface
  9. * must register with an instance of a class that implements the MegacoProvider
  10. * interface to receive these Event Objects.
  11. *
  12. *
  13. *
  14. */
  15. public interface MegacoListener extends EventListener {
  16. /**
  17. * Processes a MEGACO Command event received from a MegacoProvider. Command
  18. * level event occurs when the MEGACO stack receives a command from the
  19. * peer. The stack after parsing the command parameters passes the command
  20. * to the application through this listener interface.
  21. *
  22. * @param cmdEvent
  23. * The JAIN MEGACO Command Event Object that is to be processed.
  24. */
  25. public void processMegacoEvent(CommandEvent cmdEvent);
  26. /**
  27. * Processes a MEGACO Association Event received from a MegacoProvider.
  28. * Association level event occurs whenever stack wants to send the response
  29. * of a request from the listener application or when the stack wants to
  30. * give indication of the change in the state of the association at the
  31. * stack.
  32. *
  33. *
  34. * @param assocEvent
  35. * The JAIN MEGACO Association Event Object that is to be
  36. * processed.
  37. */
  38. public void processMegacoEvent(AssociationEvent assocEvent);
  39. }