Asterisk-Java

org.asteriskjava.manager.action
Class PingAction

java.lang.Object
  extended by org.asteriskjava.manager.action.AbstractManagerAction
      extended by org.asteriskjava.manager.action.PingAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class PingAction
extends AbstractManagerAction

The PingAction is used to keep the manager connection open and performs no operation.

Asterisk versions prior to 1.6 send a "Pong" response, since Asterisk 1.6 a "Success" response is sent with a "Ping" property set to "Pong".

Version:
$Id: PingAction.java 1315 2009-06-02 22:36:54Z srt $
Author:
srt
See Also:
Serialized Form

Constructor Summary
PingAction()
          Creates a new PingAction.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 
Methods inherited from class org.asteriskjava.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PingAction

public PingAction()
Creates a new PingAction.

Method Detail

getAction

public java.lang.String getAction()
Returns the name of this action, i.e. "Ping".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.