net.sf.asterisk.manager.action
Class SIPShowPeerAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
      extended by net.sf.asterisk.manager.action.SIPShowPeerAction
All Implemented Interfaces:
java.io.Serializable, EventGeneratingAction, ManagerAction

public class SIPShowPeerAction
extends AbstractManagerAction
implements EventGeneratingAction

Retrieves a the details about a given SIP peer.
For a PeerEntryEvent is sent by Asterisk containing the details of the peer followed by a PeerlistCompleteEvent.
Available since Asterisk 1.2

Since:
0.2
Version:
$Id: SIPShowPeerAction.java,v 1.3 2005/08/27 10:18:05 srt Exp $
Author:
srt
See Also:
PeerEntryEvent, PeerlistCompleteEvent, Serialized Form

Constructor Summary
SIPShowPeerAction()
          Creates a new empty SIPShowPeerAction.
SIPShowPeerAction(java.lang.String peer)
          Creates a new SIPShowPeerAction that requests the details about the given SIP peer.
 
Method Summary
 java.lang.String getAction()
          Returns the name of the action.
 java.lang.Class getActionCompleteEventClass()
          Returns the event type that indicates that Asterisk is finished sending response events for this action.
 java.lang.String getPeer()
          Returns the name of the peer to retrieve.
This parameter is mandatory.
 void setPeer(java.lang.String peer)
          Sets the name of the peer to retrieve.
This parameter is mandatory.
 
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.asterisk.manager.action.ManagerAction
getActionId, setActionId
 

Constructor Detail

SIPShowPeerAction

public SIPShowPeerAction()
Creates a new empty SIPShowPeerAction.


SIPShowPeerAction

public SIPShowPeerAction(java.lang.String peer)
Creates a new SIPShowPeerAction that requests the details about the given SIP peer.

Parameters:
peer - the name of the SIP peer to retrieve details for.
Since:
0.2
Method Detail

getAction

public java.lang.String getAction()
Description copied from interface: ManagerAction
Returns the name of the action.

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

getPeer

public java.lang.String getPeer()
Returns the name of the peer to retrieve.
This parameter is mandatory.

Returns:
the name of the peer to retrieve.

setPeer

public void setPeer(java.lang.String peer)
Sets the name of the peer to retrieve.
This parameter is mandatory.

Parameters:
peer - the name of the peer to retrieve.

getActionCompleteEventClass

public java.lang.Class getActionCompleteEventClass()
Description copied from interface: EventGeneratingAction
Returns the event type that indicates that Asterisk is finished sending response events for this action.

Specified by:
getActionCompleteEventClass in interface EventGeneratingAction
Returns:
a Class that is an instance of ResponseEvent.
See Also:
ResponseEvent


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