javax.telephony.media.provider
Class Base.BindEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.telephony.media.provider.EventObject
|
+--javax.telephony.media.provider.Base.Event
|
+--javax.telephony.media.provider.Base.MediaServiceEvent
|
+--javax.telephony.media.provider.Base.BindAndReleaseEvent
|
+--javax.telephony.media.provider.Base.BindEvent
- All Implemented Interfaces:
- Async.BindAndReleaseEvent, Async.BindEvent, Async.Event, Async.MediaServiceEvent, Dispatcher.DispatchableEvent, MediaConstants, MediaEvent, MediaServiceConstants, MediaServiceEvent, java.io.Serializable
- Direct Known Subclasses:
- Base.BindToCallEvent
- Enclosing class:
- Base
- public static class Base.BindEvent
- extends Base.BindAndReleaseEvent
- implements Async.BindEvent
Completion Event for the bind methods.
- See Also:
- Serialized Form
Fields inherited from interface javax.telephony.media.MediaServiceConstants |
ev_BindAndConnect, ev_BindToCall, ev_BindToServiceName, ev_BindToTerminal, ev_BindToTerminalName, ev_Configure, ev_Connected, ev_DelegateToService, ev_Disconnected, ev_GetConfigSpec, ev_GetConfiguration, ev_GetParameters, ev_GetTerminal, ev_GetTerminalName, ev_GetUserValues, ev_GroupStop, ev_Release, ev_ReleaseDelegated, ev_ReleaseToDestroy, ev_ReleaseToService, ev_ReleaseToTag, ev_Retrieve, ev_Retrieved, ev_SetParameters, ev_SetUserDictionary, ev_SetUserValues, ev_TerminalIdle, ev_TriggerRTC |
Method Summary |
void |
dispatch(java.util.EventListener listener)
Invoke the appropriate callback method on the appropriate Listener. |
void |
done(java.lang.Exception exception,
MPI.MediaGroup mediaGroup)
|
void |
throwIfConfigException()
Detect and throw MediaConfigException and RuntimeException. |
Methods inherited from class javax.telephony.media.provider.Base.Event |
done, getError, getEventID, getException, getPayload, getQualifier, getSubError, getWarning, isDone, setError, setFields, setFields, setPayload, setQualifier, setSubError, throwIfRuntimeException, toString, waitForEventDone, waitForEventDone, waitForListenersDone |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Base.BindEvent
public Base.BindEvent(java.lang.Object source,
Symbol eventID)
Base.BindEvent
public Base.BindEvent(java.lang.Object source)
done
public void done(java.lang.Exception exception,
MPI.MediaGroup mediaGroup)
dispatch
public void dispatch(java.util.EventListener listener)
- Description copied from class:
Base.Event
- Invoke the appropriate callback method on the appropriate Listener.
Each sub-class must define an EventListener and callback method
by supplying this method.
Implements Dispatcher.DispatchableEvent
Typically, Async.SomeEvent dispatches to like this:
public void dispatch(EventListener listener) {
if (listener instanceof Async.SomeListener)
((Async.SomeListener)listener).onSomeDone(this);
}
Invoked by Base_MediaService
- Overrides:
dispatch
in class Base.Event
- Following copied from class:
javax.telephony.media.provider.Base.Event
- Parameters:
listener
- an EventListener, some kind of MediaListener.
throwIfConfigException
public void throwIfConfigException()
throws MediaConfigException
- Description copied from interface:
Async.BindAndReleaseEvent
- Detect and throw MediaConfigException and RuntimeException.
Used for MediaGroupEvent from async_configure().
Calls throwIfRuntimeException internally.
- Specified by:
throwIfConfigException
in interface Async.BindAndReleaseEvent
- Overrides:
throwIfConfigException
in class Base.BindAndReleaseEvent
- Following copied from interface:
javax.telephony.media.async.Async.BindAndReleaseEvent
- Throws:
MediaConfigException
-
Send comments to: JSR-43@ectf.org