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
Properties
Name | Description | |
---|---|---|
AllHeaders | Collection that contains all of the headers for this message.(Inherited from Message.) | |
AllStamps | Returns all the stamps that are associated with the message.(Inherited from Message.) | |
AuthenticationInfo | Stack-specific authentication information.(Inherited from Message.) | |
Content | Message content parsed as a string.(Inherited from Message.) | |
RawContent | Raw message content.(Inherited from Message.) | |
ReasonPhrase | Text explanation of the status code. | |
Received | Indicates whether this message was received by the server (as opposed to having been created by the calling application).(Inherited from Message.) | |
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.) | |
StampPool | The StampPoolproperty specifies the name of the Enterprise Edition pool in which the last stamp for the application was set.(Inherited from Message.) | |
StatusClass | The StatusClassproperty contains the class of the numeric SIP status code. | |
StatusCode | The StatusCodeproperty contains the numeric SIP status code for the response. | |
TimeReceived | The TimeReceivedproperty indicates the date and time (represented as a DateTimeobject) the message was received by the server.(Inherited from Message.) |
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetHeaders | A read-only collection of headers of the specified type.(Inherited from Message.) | |
GetStatusClass | Numeric SIP status code class - static version. | |
GetType | (Inherited from Object.) | |
InitializeUnmarshaled | Initializes an object that is created by the application in the Unmarshaled state.(Inherited from Message.) | |
MemberwiseClone | (Inherited from Object.) | |
SetMarshaled | Updates state to Marshaled.(Overrides Message . . :: . . SetMarshaled () () () () .) | |
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
marshalContent | The marshalContent field is used to marshal content.(Inherited from Message.) |
Explicit interface implementations
Name | Description | |
---|---|---|
ICloneable . . :: . . Clone | Creates a copy of this object.(Inherited from Message.) |