org.asteriskjava.manager.action
Class UserEventAction
java.lang.Object
org.asteriskjava.manager.action.AbstractManagerAction
org.asteriskjava.manager.action.UserEventAction
- All Implemented Interfaces:
- java.io.Serializable, ManagerAction
public class UserEventAction
- extends AbstractManagerAction
The UserEventAction will send a custom user event to the Asterisk server.
This is equivalent to using the UserEvent
application in your
dial plan. Before you send this event, you must register your
event class with the registerUserEventClass method of the ManagerConnection.
- Author:
- Martin
- See Also:
UserEvent
,
ManagerConnection.registerUserEventClass(Class)
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UserEventAction
public UserEventAction()
UserEventAction
public UserEventAction(UserEvent userEvent)
- Create the userevent action with userEvent as the event it will send
- Parameters:
userEvent
- the subclass representing a custom event
getAction
public java.lang.String getAction()
- Get the name of this action
- Specified by:
getAction
in interface ManagerAction
- Specified by:
getAction
in class AbstractManagerAction
getUserEvent
public UserEvent getUserEvent()
- Returns:
- the userEvent
setUserEvent
public void setUserEvent(UserEvent userEvent)
- Parameters:
userEvent
- the userEvent to set- See Also:
UserEvent
Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.