net.sf.asterisk.manager.impl
Class ResponseEventsImpl

java.lang.Object
  extended by net.sf.asterisk.manager.impl.ResponseEventsImpl
All Implemented Interfaces:
ResponseEvents

public class ResponseEventsImpl
extends java.lang.Object
implements ResponseEvents

Implementation of the ResponseEvents interface.

Since:
0.2
Version:
$Id: ResponseEventsImpl.java,v 1.1 2005/07/16 21:48:16 srt Exp $
Author:
srt

Constructor Summary
ResponseEventsImpl()
          Creates a new instance.
 
Method Summary
 void addEvent(ResponseEvent event)
          Adds a ResponseEvent that has been received.
 java.util.Collection getEvents()
          Returns a Collection of ManagerEvents that have been received including the last one that indicates completion.
 ManagerResponse getResponse()
          Returns the ManagerResponse received.
 boolean isComplete()
           
 void setComplete(boolean complete)
          Indicats if all events have been received.
 void setRepsonse(ManagerResponse response)
          Sets the ManagerResponse received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseEventsImpl

public ResponseEventsImpl()
Creates a new instance.

Method Detail

getResponse

public ManagerResponse getResponse()
Description copied from interface: ResponseEvents
Returns the ManagerResponse received.

Specified by:
getResponse in interface ResponseEvents
Returns:
the ManagerResponse received.

getEvents

public java.util.Collection getEvents()
Description copied from interface: ResponseEvents
Returns a Collection of ManagerEvents that have been received including the last one that indicates completion.

Specified by:
getEvents in interface ResponseEvents
Returns:
a Collection of ManagerEvents received.

isComplete

public boolean isComplete()

setRepsonse

public void setRepsonse(ManagerResponse response)
Sets the ManagerResponse received.

Parameters:
response - the ManagerResponse received.

addEvent

public void addEvent(ResponseEvent event)
Adds a ResponseEvent that has been received.

Parameters:
event - the ResponseEvent that has been received.

setComplete

public void setComplete(boolean complete)
Indicats if all events have been received.

Parameters:
complete - true if all events have been received, false otherwise.


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