4.1.0.610 20071213

ch.ecma.csta.binding
Class Suspend

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

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

Temporarily stops the playing or recording of the current message and leaves the position pointer at its current location.

The Suspend request has these parameters:

Suspend Request Parameters
connection Mandatory Specifies the device on which playing and recording is to be suspended. Only the device portion of the ConnectionID needs to be set.
message Not supported
extensions Not supported

To avoid potential timing problems, you should request monitoring of the events generated by this request prior to sending the Suspend request. If you do it after Suspend request is sent, your application may or may not receive the appropriate event (the event may occur before).

The events that may be caused by a Suspend request include:

CSTA Functional Requirements have been implemented as follows:

Refer to ECMA-269, Figure 6-21, "Voice Unit Operational Model" in section 6.2.1 for the operational model.

The monitoring event sequence for both call-type and event-type monitoring is a SuspendPlayEvent if suspended while playing, and a SuspendRecordEvent if suspended while recording.

Negative Acknowledgements:

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

Constructor Summary
Suspend()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Note: hashCode() has not been overriden
 ConnectionID getConnection()
          Returns the value of field 'connection'.
 CSTACommonArguments getExtensions()
          Returns the value of field 'extensions'.
 java.lang.String getMessage()
          Returns the value of field 'message'.
 java.lang.String getResource()
          Returns the value of field 'resource'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setConnection(ConnectionID connection)
          Sets the value of field 'connection'.
 void setExtensions(CSTACommonArguments extensions)
          Sets the value of field 'extensions'.
 void setMessage(java.lang.String message)
          Sets the value of field 'message'.
 void setResource(java.lang.String resource)
          Sets the value of field 'resource'.
static Suspend unmarshalSuspend(java.io.Reader reader)
          Method unmarshalSuspend
 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

Suspend

public Suspend()
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

getConnection

public ConnectionID getConnection()
Returns the value of field 'connection'. The field 'connection' has the following description: Specifies the device on which playing and recording is to be suspended. Only the device portion of the ConnectionID needs to be set. Mandatory.

Returns:
ConnectionID

getExtensions

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

Returns:
CSTACommonArguments

getMessage

public java.lang.String getMessage()
Returns the value of field 'message'. The field 'message' has the following description: Not supported. Specifies the message to be suspended. This parameter is mandatory if there are multiple active messages on the specified connection, otherwise the parameter is optional.

If this parameter is not provided, the service applies to the currently active message on the specified connection.

Returns:
String

getResource

public java.lang.String getResource()
Returns the value of field 'resource'.

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

setConnection

public void setConnection(ConnectionID connection)
Sets the value of field 'connection'. The field 'connection' has the following description: Specifies the device on which playing and recording is to be suspended. Only the device portion of the ConnectionID needs to be set. Mandatory.

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

setExtensions

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

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

setMessage

public void setMessage(java.lang.String message)
Sets the value of field 'message'. The field 'message' has the following description: Not supported. Specifies the message to be suspended. This parameter is mandatory if there are multiple active messages on the specified connection, otherwise the parameter is optional.

If this parameter is not provided, the service applies to the currently active message on the specified connection.

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

setResource

public void setResource(java.lang.String resource)
Sets the value of field 'resource'.

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

unmarshalSuspend

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

Parameters:
reader -
Returns:
Suspend
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.