|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.manager.impl.ResponseEventsImpl
public class ResponseEventsImpl
Implementation of the ResponseEvents interface.
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 |
---|
public ResponseEventsImpl()
Method Detail |
---|
public ManagerResponse getResponse()
ResponseEvents
getResponse
in interface ResponseEvents
public java.util.Collection getEvents()
ResponseEvents
getEvents
in interface ResponseEvents
public boolean isComplete()
public void setRepsonse(ManagerResponse response)
response
- the ManagerResponse received.public void addEvent(ResponseEvent event)
event
- the ResponseEvent that has been received.public void setComplete(boolean complete)
complete
- true
if all events have been received,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |