javax.telephony.media.provider
Class NullMediaGroup
java.lang.Object
|
+--javax.telephony.media.provider.NullMediaGroup
- All Implemented Interfaces:
- MediaConstants, MediaServiceConstants, MPI.MediaGroup, MPI.Resource
- public class NullMediaGroup
- extends java.lang.Object
- implements MPI.MediaGroup, MediaServiceConstants
A MediaGroup implementation.
Just done-ify the events, and return null.
A working MediaGroup should find or create real objects
and create Exceptions if necessary.
This class can be used as a source code "template",
one is not expected to use it as a base class.
- Since:
- JTAPI-1.4
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullMediaGroup
public NullMediaGroup()
setOwner
public void setOwner(MPI.Owner owner)
- Description copied from interface:
MPI.Resource
- This framework informs the Resource when the owner changes.
So the Resource can create events with the correct Source.
- Specified by:
setOwner
in interface MPI.Resource
configure
public void configure(ConfigSpec cs)
throws java.lang.Exception
configure
public Base.MediaGroupEvent configure(Base.MediaGroupEvent event,
ConfigSpec cs)
- Specified by:
configure
in interface MPI.MediaGroup
getConfiguration
public Base.MediaGroupEvent getConfiguration(Base.MediaGroupEvent event)
- Specified by:
getConfiguration
in interface MPI.MediaGroup
getTerminalName
public Base.MediaGroupEvent getTerminalName(Base.MediaGroupEvent event)
- Specified by:
getTerminalName
in interface MPI.MediaGroup
getTerminal
public Base.MediaGroupEvent getTerminal(Base.MediaGroupEvent event)
- Specified by:
getTerminal
in interface MPI.MediaGroup
getUserValues
public Base.MediaGroupEvent getUserValues(Base.MediaGroupEvent event,
Symbol[] keys)
- Specified by:
getUserValues
in interface MPI.MediaGroup
getParameters
public Base.MediaGroupEvent getParameters(Base.MediaGroupEvent event,
Symbol[] keys)
- Specified by:
getParameters
in interface MPI.MediaGroup
setUserDictionary
public Base.MediaGroupEvent setUserDictionary(Base.MediaGroupEvent event,
java.util.Dictionary dict)
- Specified by:
setUserDictionary
in interface MPI.MediaGroup
setUserValues
public Base.MediaGroupEvent setUserValues(Base.MediaGroupEvent event,
java.util.Dictionary dict)
- Specified by:
setUserValues
in interface MPI.MediaGroup
setParameters
public Base.MediaGroupEvent setParameters(Base.MediaGroupEvent event,
java.util.Dictionary dict)
- Specified by:
setParameters
in interface MPI.MediaGroup
triggerRTC
public Base.MediaGroupEvent triggerRTC(Base.MediaGroupEvent event,
Symbol rtca)
- Specified by:
triggerRTC
in interface MPI.MediaGroup
stop
public Base.MediaGroupEvent stop(Base.MediaGroupEvent event)
- Specified by:
stop
in interface MPI.MediaGroup
getTargetForMethod
public java.lang.Object getTargetForMethod(java.lang.reflect.Method method)
- assume that this Group implements the media methods.
- Specified by:
getTargetForMethod
in interface MPI.MediaGroup
- Following copied from interface:
javax.telephony.media.provider.MPI.MediaGroup
- Returns:
- an Object [Resource] that implements the given Method.
Send comments to: JSR-43@ectf.org