4.1.0.610 20071213

ch.ecma.csta.binding
Class MediaDetachedEvent

java.lang.Object
  extended by ch.ecma.csta.CastorObject
      extended by ch.ecma.csta.binding.MediaDetachedEvent
All Implemented Interfaces:
java.io.Serializable

public class MediaDetachedEvent
extends ch.ecma.csta.CastorObject
implements java.io.Serializable

Not supported.

Indicates a detachment of media services from a connection. This event may be generated as a result of a previous DetachMediaService service request, or as a result of an automatic media service detachment.

There are two cases for the Media Detached event:

  1. Case A: A media access device (D3) was previously connected into the call using the AttachMediaService service. In this case the media access device is removed from the call by this service.See ECMA 269, section 19.2.2, Figure 19-3 "Media Detached Event (Case A)"
  2. Case B: The media service instance was directly bound to an existing connection (D1C1) in the call. In this case this detaching device remains in the call after the service request. See ECMA 269, section 19.2.2, Figure 19-4 "Media Detached Event (Case B)".

Functional Implementation:

  1. If a media access device was added to the call as a result of a successful Attach Media Service, then the mediaConnection and mediaDevice parameters refer to the media access device. If the media service instance was directly bound to an existing connection in the call, then the mediaConnection and mediaDevice parameters refer to the connection at the attaching device.
  2. The switching function may initiate a media service detachment whenever it is unable to maintain the binding of the connection to the media service. This may occur as a result of other activity on the call.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
MediaDetachedEvent()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Note: hashCode() has not been overriden
 CallCharacteristics getCallCharacteristics()
          Returns the value of field 'callCharacteristics'.
 CSTACommonArguments getExtensions()
          Returns the value of field 'extensions'.
 LocalConnectionState getLocalConnectionInfo()
          Returns the value of field 'localConnectionInfo'.
 MediaCallCharacteristics getMediaCallCharacteristics()
          Returns the value of field 'mediaCallCharacteristics'.
 ConnectionID getMediaConnection()
          Returns the value of field 'mediaConnection'.
 ConnectionInformation getMediaConnectionInfo()
          Returns the value of field 'mediaConnectionInfo'.
 SubjectDeviceID getMediaDevice()
          Returns the value of field 'mediaDevice'.
 java.lang.String getMediaServiceInstanceID()
          Returns the value of field 'mediaServiceInstanceID'.
 MediaServiceType getMediaServiceType()
          Returns the value of field 'mediaServiceType'.
 java.lang.Long getMediaServiceVersion()
          Returns the value of field 'mediaServiceVersion'.
 java.lang.String getMediaStreamID()
          Returns the value of field 'mediaStreamID'.
 java.lang.String getMonitorCrossRefID()
          Returns the value of field 'monitorCrossRefID'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setCallCharacteristics(CallCharacteristics callCharacteristics)
          Sets the value of field 'callCharacteristics'.
 void setExtensions(CSTACommonArguments extensions)
          Sets the value of field 'extensions'.
 void setLocalConnectionInfo(LocalConnectionState localConnectionInfo)
          Sets the value of field 'localConnectionInfo'.
 void setMediaCallCharacteristics(MediaCallCharacteristics mediaCallCharacteristics)
          Sets the value of field 'mediaCallCharacteristics'.
 void setMediaConnection(ConnectionID mediaConnection)
          Sets the value of field 'mediaConnection'.
 void setMediaConnectionInfo(ConnectionInformation mediaConnectionInfo)
          Sets the value of field 'mediaConnectionInfo'.
 void setMediaDevice(SubjectDeviceID mediaDevice)
          Sets the value of field 'mediaDevice'.
 void setMediaServiceInstanceID(java.lang.String mediaServiceInstanceID)
          Sets the value of field 'mediaServiceInstanceID'.
 void setMediaServiceType(MediaServiceType mediaServiceType)
          Sets the value of field 'mediaServiceType'.
 void setMediaServiceVersion(java.lang.Long mediaServiceVersion)
          Sets the value of field 'mediaServiceVersion'.
 void setMediaStreamID(java.lang.String mediaStreamID)
          Sets the value of field 'mediaStreamID'.
 void setMonitorCrossRefID(java.lang.String monitorCrossRefID)
          Sets the value of field 'monitorCrossRefID'.
static MediaDetachedEvent unmarshalMediaDetachedEvent(java.io.Reader reader)
          Method unmarshalMediaDetachedEvent
 void validate()
          Method validate
 
Methods inherited from class ch.ecma.csta.CastorObject
getOldSessionID, hashCode, setOldSessionID, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediaDetachedEvent

public MediaDetachedEvent()
Method Detail

equals

public boolean equals(java.lang.Object obj)
Note: hashCode() has not been overriden

Overrides:
equals in class ch.ecma.csta.CastorObject
Parameters:
obj -
Returns:
boolean

getCallCharacteristics

public CallCharacteristics getCallCharacteristics()
Returns the value of field 'callCharacteristics'.

Returns:
CallCharacteristics

getExtensions

public CSTACommonArguments getExtensions()
Returns the value of field 'extensions'.

Returns:
CSTACommonArguments

getLocalConnectionInfo

public LocalConnectionState getLocalConnectionInfo()
Returns the value of field 'localConnectionInfo'.

Returns:
LocalConnectionState

getMediaCallCharacteristics

public MediaCallCharacteristics getMediaCallCharacteristics()
Returns the value of field 'mediaCallCharacteristics'.

Returns:
MediaCallCharacteristics

getMediaConnection

public ConnectionID getMediaConnection()
Returns the value of field 'mediaConnection'. The field 'mediaConnection' has the following description: Specifies the connection that was unbound from the media service. Mandatory.

Returns:
ConnectionID

getMediaConnectionInfo

public ConnectionInformation getMediaConnectionInfo()
Returns the value of field 'mediaConnectionInfo'. The field 'mediaConnectionInfo' has the following description: Specifies the connection information associated with the mediaConnection connection. If this parameter is not present, then the connection information is switching function specific.

Returns:
ConnectionInformation

getMediaDevice

public SubjectDeviceID getMediaDevice()
Returns the value of field 'mediaDevice'. The field 'mediaDevice' has the following description: Specifies the device identifier associated with the detached media service. Mandatory.

Returns:
SubjectDeviceID

getMediaServiceInstanceID

public java.lang.String getMediaServiceInstanceID()
Returns the value of field 'mediaServiceInstanceID'. The field 'mediaServiceInstanceID' has the following description: Specifies the media service instance associated with the detached media service. Optional.

Returns:
String

getMediaServiceType

public MediaServiceType getMediaServiceType()
Returns the value of field 'mediaServiceType'. The field 'mediaServiceType' has the following description: Specifies the media service type detached. Mandatory.

Returns:
MediaServiceType

getMediaServiceVersion

public java.lang.Long getMediaServiceVersion()
Returns the value of field 'mediaServiceVersion'. The field 'mediaServiceVersion' has the following description: Specifies the version of the media services. Optional.

Returns:
Long

getMediaStreamID

public java.lang.String getMediaStreamID()
Returns the value of field 'mediaStreamID'. The field 'mediaStreamID' has the following description: Specifies the Media stream ID associated with the media service that was detached. This parameter will be provided if the switching function supports providing the mediaStreamID as indicated by the capability exchange services.

Returns:
String

getMonitorCrossRefID

public java.lang.String getMonitorCrossRefID()
Returns the value of field 'monitorCrossRefID'.

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setCallCharacteristics

public void setCallCharacteristics(CallCharacteristics callCharacteristics)
Sets the value of field 'callCharacteristics'.

Parameters:
callCharacteristics - the value of field 'callCharacteristics'.

setExtensions

public void setExtensions(CSTACommonArguments extensions)
Sets the value of field 'extensions'.

Parameters:
extensions - the value of field 'extensions'.

setLocalConnectionInfo

public void setLocalConnectionInfo(LocalConnectionState localConnectionInfo)
Sets the value of field 'localConnectionInfo'.

Parameters:
localConnectionInfo - the value of field 'localConnectionInfo'.

setMediaCallCharacteristics

public void setMediaCallCharacteristics(MediaCallCharacteristics mediaCallCharacteristics)
Sets the value of field 'mediaCallCharacteristics'.

Parameters:
mediaCallCharacteristics - the value of field 'mediaCallCharacteristics'.

setMediaConnection

public void setMediaConnection(ConnectionID mediaConnection)
Sets the value of field 'mediaConnection'. The field 'mediaConnection' has the following description: Specifies the connection that was unbound from the media service. Mandatory.

Parameters:
mediaConnection - the value of field 'mediaConnection'.

setMediaConnectionInfo

public void setMediaConnectionInfo(ConnectionInformation mediaConnectionInfo)
Sets the value of field 'mediaConnectionInfo'. The field 'mediaConnectionInfo' has the following description: Specifies the connection information associated with the mediaConnection connection. If this parameter is not present, then the connection information is switching function specific.

Parameters:
mediaConnectionInfo - the value of field 'mediaConnectionInfo'.

setMediaDevice

public void setMediaDevice(SubjectDeviceID mediaDevice)
Sets the value of field 'mediaDevice'. The field 'mediaDevice' has the following description: Specifies the device identifier associated with the detached media service. Mandatory.

Parameters:
mediaDevice - the value of field 'mediaDevice'.

setMediaServiceInstanceID

public void setMediaServiceInstanceID(java.lang.String mediaServiceInstanceID)
Sets the value of field 'mediaServiceInstanceID'. The field 'mediaServiceInstanceID' has the following description: Specifies the media service instance associated with the detached media service. Optional.

Parameters:
mediaServiceInstanceID - the value of field 'mediaServiceInstanceID'.

setMediaServiceType

public void setMediaServiceType(MediaServiceType mediaServiceType)
Sets the value of field 'mediaServiceType'. The field 'mediaServiceType' has the following description: Specifies the media service type detached. Mandatory.

Parameters:
mediaServiceType - the value of field 'mediaServiceType'

setMediaServiceVersion

public void setMediaServiceVersion(java.lang.Long mediaServiceVersion)
Sets the value of field 'mediaServiceVersion'. The field 'mediaServiceVersion' has the following description: Specifies the version of the media services. Optional.

Parameters:
mediaServiceVersion - the value of field 'mediaServiceVersion'.

setMediaStreamID

public void setMediaStreamID(java.lang.String mediaStreamID)
Sets the value of field 'mediaStreamID'. The field 'mediaStreamID' has the following description: Specifies the Media stream ID associated with the media service that was detached. This parameter will be provided if the switching function supports providing the mediaStreamID as indicated by the capability exchange services.

Parameters:
mediaStreamID - the value of field 'mediaStreamID'.

setMonitorCrossRefID

public void setMonitorCrossRefID(java.lang.String monitorCrossRefID)
Sets the value of field 'monitorCrossRefID'.

Parameters:
monitorCrossRefID - the value of field 'monitorCrossRefID'.

unmarshalMediaDetachedEvent

public static MediaDetachedEvent unmarshalMediaDetachedEvent(java.io.Reader reader)
                                                      throws org.exolab.castor.xml.MarshalException,
                                                             org.exolab.castor.xml.ValidationException
Method unmarshalMediaDetachedEvent

Parameters:
reader -
Returns:
MediaDetachedEvent
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException

4.1.0.610 20071213

Copyright 2004 Avaya Inc All Rights Reserved.