The Responseclass defines a SIP response sent from a server transaction to a client transaction.

To generate a response message for a request, call CreateResponse () () () () on the associated Request object. Populate the Responsemessage with the proper status class and reason phrase, and then pass it to SendResponse(Response) , using the ServerTransaction object for the initial request.

There are two methods for receiving a response:

First, the response is filtered by the MSPL message filter and dispatched to a specific method that is defined in your application. (For more information, see the Dispatch built-in MSPL function.) The method handling the response must have a signature that matches the RequestReceivedEventHandler delegate. Second, the originating request that incurred the response was sent from a specific ClientTransaction object instance that is running on your application. In this case, the response is obtained by registering an event handler for the ResponseReceived event. In both cases, the response is returned as the Response property, which contains a Responseobject. In the case where a ClientTransactionobject on the application incurred the response, the ClientTransaction property will contain a reference to the specific client transaction.

The Responsetype exposes the following members.

Constructors

  Name Description
Protected method Response Protected constructor to prevent public use.
Top

Properties

  Name Description
Public property AllHeaders Collection that contains all of the headers for this message.(Inherited from Message.)
Public property AllStamps Returns all the stamps that are associated with the message.(Inherited from Message.)
Public property AuthenticationInfo Stack-specific authentication information.(Inherited from Message.)
Public property Content Message content parsed as a string.(Inherited from Message.)
Public property RawContent Raw message content.(Inherited from Message.)
Public property ReasonPhrase Text explanation of the status code.
Public property Received Indicates whether this message was received by the server (as opposed to having been created by the calling application).(Inherited from Message.)
Public property Stamp The Stampproperty contains the string that is used to stamp a message. Setting Stampmarks the message with the supplied string, which can then be read either by the application or downstream instances of the application.(Inherited from Message.)
Public property StampPool The StampPoolproperty specifies the name of the Enterprise Edition pool in which the last stamp for the application was set.(Inherited from Message.)
Public property StatusClass The StatusClassproperty contains the class of the numeric SIP status code.
Public property StatusCode The StatusCodeproperty contains the numeric SIP status code for the response.
Public property TimeReceived The TimeReceivedproperty indicates the date and time (represented as a DateTimeobject) the message was received by the server.(Inherited from Message.)
Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetHeaders A read-only collection of headers of the specified type.(Inherited from Message.)
Public method Static member GetStatusClass Numeric SIP status code class - static version.
Public method GetType (Inherited from Object.)
Protected method InitializeUnmarshaled Initializes an object that is created by the application in the Unmarshaled state.(Inherited from Message.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method SetMarshaled Updates state to Marshaled.(Overrides Message . . :: . . SetMarshaled () () () () .)
Public method ToString (Inherited from Object.)
Top

Fields

  Name Description
Protected field marshalContent The marshalContent field is used to marshal content.(Inherited from Message.)
Top

Explicit interface implementations

  Name Description
Explicit interface implemetation Private method ICloneable . . :: . . Clone Creates a copy of this object.(Inherited from Message.)
Top

See also