net.sf.asterisk.manager.action
Class MailboxCountAction

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

public class MailboxCountAction
extends AbstractManagerAction

The MailboxCountAction queries the number of unread and read messages in a mailbox.
The MailboxCountAction returns a MailboxStatusResponse.

Version:
$Id: MailboxCountAction.java,v 1.4 2005/08/07 00:09:42 srt Exp $
Author:
srt
See Also:
MailboxCountResponse, Serialized Form

Constructor Summary
MailboxCountAction()
          Creates a new empty MailboxCountAction.
MailboxCountAction(java.lang.String mailbox)
          Creates a new MailboxCountAction that queries the number of unread and read messages in the given mailbox.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.String getMailbox()
          Returns the name of the mailbox to query.
 void setMailbox(java.lang.String mailbox)
          Sets the name of the mailbox to query.
This can either be only the number of the mailbox or a string of the form mailboxnumber@context.If no context is specified "default" is assumed.
This property 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
 

Constructor Detail

MailboxCountAction

public MailboxCountAction()
Creates a new empty MailboxCountAction.


MailboxCountAction

public MailboxCountAction(java.lang.String mailbox)
Creates a new MailboxCountAction that queries the number of unread and read messages in the given mailbox.

Parameters:
mailbox - the name of the mailbox to query.
This can either be only the number of the mailbox or a string of the form mailboxnumber@context.If no context is specified "default" is assumed.
Since:
0.2
Method Detail

getAction

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

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

getMailbox

public java.lang.String getMailbox()
Returns the name of the mailbox to query.


setMailbox

public void setMailbox(java.lang.String mailbox)
Sets the name of the mailbox to query.
This can either be only the number of the mailbox or a string of the form mailboxnumber@context.If no context is specified "default" is assumed.
This property is mandatory.



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