|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocap.media.MediaAccessHandlerRegistrar
public abstract class MediaAccessHandlerRegistrar
This class allows to register a handler that can prevent the presentation of
A/V service components.
This handler must be plugged in the service selection before the service components
presentation.
Moreover, it allows the Monitor Application to handle some triggers. A trigger is an event that can lead to an evaluation of the presented media.
| Constructor Summary | |
|---|---|
protected |
MediaAccessHandlerRegistrar()
Constructor of MediaAccessHandlerRegistrar. |
| Method Summary | |
|---|---|
static MediaAccessHandlerRegistrar |
getInstance()
This method returns the sole instance of the class. |
abstract void |
registerMediaAccessHandler(MediaAccessHandler mah)
Registers the handler that can prevent the presentation of A/V service components. |
abstract void |
setExternalTriggers(MediaPresentationEvaluationTrigger[] triggers)
Defines the list of triggers that the Monitor Application wants to generate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MediaAccessHandlerRegistrar()
getInstance()
method to create an instance.
| Method Detail |
|---|
public static MediaAccessHandlerRegistrar getInstance()
MediaAccessHandlerRegistrar class. The
MediaAccessHandlerRegistrar instance
is a singleton.
MediaAccessHandlerRegistrar
instance.public abstract void registerMediaAccessHandler(MediaAccessHandler mah)
mah - The MediaAccessHandler to set. If null is set, the
MediaAccessHandler instance will be removed.
SecurityException - if the caller does not have
MonitorAppPermission("mediaAccess")
permission.MediaAccessHandlerpublic abstract void setExternalTriggers(MediaPresentationEvaluationTrigger[] triggers)
MediaPresentationEvaluationTrigger.
triggers - Array of MediaPresentationEvaluationTriggers generated by the Monitor Application.
SecurityException - if the caller does not have MonitorAppPermission("mediaAccess") permission.
IllegalArgumentException - if one of the input triggers is "MANDATORY".MediaPresentationEvaluationTrigger
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||