net.sf.asterisk.manager.response
Class MailboxStatusResponse

java.lang.Object
  extended by net.sf.asterisk.manager.response.ManagerResponse
      extended by net.sf.asterisk.manager.response.MailboxStatusResponse
All Implemented Interfaces:
java.io.Serializable

public class MailboxStatusResponse
extends ManagerResponse

A MailboxStatusResponse is sent in response to a MailboxStatusAction and indicates if a set of mailboxes contains waiting messages.

Version:
$Id: MailboxStatusResponse.java,v 1.3 2005/03/01 19:27:00 srt Exp $
Author:
srt
See Also:
MailboxStatusAction, Serialized Form

Constructor Summary
MailboxStatusResponse()
           
 
Method Summary
 java.lang.String getMailbox()
          Returns the names of the mailboxes, separated by ",".
 java.lang.Boolean getWaiting()
          Returns Boolean.TRUE if at least one of the given mailboxes contains new messages; Boolean.FALSE otherwise.
 void setMailbox(java.lang.String mailbox)
          Sets the names of the mailboxes.
 void setWaiting(java.lang.Boolean waiting)
          Set to Boolean.TRUE if at least one of the mailboxes contains new messages; Boolean.FALSE otherwise.
 
Methods inherited from class net.sf.asterisk.manager.response.ManagerResponse
getActionId, getAttribute, getAttributes, getDateReceived, getMessage, getResponse, getUniqueId, setActionId, setAttributes, setDateReceived, setMessage, setResponse, setUniqueId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailboxStatusResponse

public MailboxStatusResponse()
Method Detail

getMailbox

public java.lang.String getMailbox()
Returns the names of the mailboxes, separated by ",".

Returns:
the names of the mailbox.

setMailbox

public void setMailbox(java.lang.String mailbox)
Sets the names of the mailboxes.

Parameters:
mailbox - the names of the mailboxes.

getWaiting

public java.lang.Boolean getWaiting()
Returns Boolean.TRUE if at least one of the given mailboxes contains new messages; Boolean.FALSE otherwise.


setWaiting

public void setWaiting(java.lang.Boolean waiting)
Set to Boolean.TRUE if at least one of the mailboxes contains new messages; Boolean.FALSE otherwise.



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