com.orderlysoftware.orderlycalls.asterisk.manager.action
Class ManagerAction

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap
              extended by com.orderlysoftware.orderlycalls.base.Message
                  extended by com.orderlysoftware.orderlycalls.asterisk.manager.action.ManagerAction
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class ManagerAction
extends Message

This class represents an Action for the Asterisk Manager API.

Author:
Matt King M.A. Oxon.
See Also:
Serialized Form

Constructor Summary
ManagerAction(java.lang.String type)
          Constructor.
 
Method Summary
 ManagerResponse getResponse()
          Gets the response received, if any.
 void setResponse(ManagerResponse response)
          Associates a response with this action.
 
Methods inherited from class com.orderlysoftware.orderlycalls.base.Message
addPair, addPair, getFreeform, getValue, isComplete, setComplete, setFreeform, toString
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

ManagerAction

public ManagerAction(java.lang.String type)
Constructor.

Parameters:
type - The type of the action to send.
Method Detail

getResponse

public ManagerResponse getResponse()
Gets the response received, if any.

Returns:
the response if received, null if not yet sent or pending action by Asterisk.

setResponse

public void setResponse(ManagerResponse response)
Associates a response with this action.

Parameters:
response - the response received.