JSR-043: JTAPI-1.4

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

Inner classes inherited from class javax.telephony.media.provider.Base.Event
Base.Event.SyncInterruptedException
 
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
 
Fields inherited from interface javax.telephony.media.MediaConstants
e_OK, q_Duration, q_Standard, q_Stop
 
Constructor Summary
Base.BindEvent(java.lang.Object source)
           
Base.BindEvent(java.lang.Object source, Symbol eventID)
           
 
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.BindAndReleaseEvent
throwIfBindException
 
Methods inherited from class javax.telephony.media.provider.Base.MediaServiceEvent
getMediaService
 
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
 
Methods inherited from interface javax.telephony.media.async.Async.BindAndReleaseEvent
throwIfBindException
 
Methods inherited from interface javax.telephony.media.async.Async.Event
isDone, throwIfRuntimeException, waitForEventDone, waitForEventDone, waitForListenersDone
 
Methods inherited from interface javax.telephony.media.MediaEvent
getError, getEventID, getException, getPayload, getQualifier, getSubError, getWarning
 
Methods inherited from interface javax.telephony.media.MediaServiceEvent
getMediaService
 

Constructor Detail

Base.BindEvent

public Base.BindEvent(java.lang.Object source,
                      Symbol eventID)

Base.BindEvent

public Base.BindEvent(java.lang.Object source)
Method Detail

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 -  

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org