CSIPRequestElements Class Reference
#include
<mw/siprequestelements.h>
Link against: sipclient.lib
class CSIPRequestElements : public CBase |
Detailed Description
Class provides functions for creation and manipulation of originator's and recipient's addresses in a SIP request. It also provide functions for manipulation of SIP method for unknown SIP requests.
Constructor & Destructor Documentation
~CSIPRequestElements ( )
IMPORT_C | ~CSIPRequestElements | ( | ) | |
Member Function Documentation
CSeqHeader ( )
Gets CSeq-header. Available for only incoming requests.
Returns: a CSeq-header or a 0-pointer if not present. Ownership is not transferred.
ExternalizeL ( RWriteStream & )
FromHeader ( )
Gets the originator's From-header
Returns: From-header or a 0-pointer if not present. Ownership is not transferred.
InternalizeL ( RReadStream & )
MessageElements ( )
Gets message elements (contains all SIP user headers and content)
Returns: message elements
MessageElements ( )
Gets message elements (contains all SIP user headers and content) The response elements can be populated with SIP user headers and content using returned reference to the message elements.
Returns: message elements
Method ( )
Gets the SIP Method for a request
Returns: a SIP method name or a an empty string if the method is not defined
NewL ( CUri8 * )
Two-phased constructor. If the URI is SIP URI, no SIP URI headers are allowed.
- Pre-condition
- aRemoteURi != 0
Parameter | Description | aRemoteUri | Remote target URI that identifies a resource that the request is addressed to. The ownership is transferred. |
NewLC ( CUri8 * )
Two-phased constructor. If the URI is SIP URI, no SIP URI headers are allowed.
- Pre-condition
- aRemoteURi != 0
Parameter | Description | aRemoteUri | Remote target URI that identifies a resource that the request is addressed to. The ownership is transferred. |
RemoteUri ( )
IMPORT_C const CUri8 & | RemoteUri | ( | ) | const |
Gets the remote target URI
Returns: remote target URI
SetFromHeaderL ( CSIPFromHeader * )
Sets/resets the originator's From-header. From-header must not contain tag-parameter.
- Pre-condition
- aFrom != 0
- leave
- KErrArgument if aFrom == 0
Parameter | Description | aFrom | a From-header to be set, the ownership is transferred. |
SetMethodL ( RStringF )
IMPORT_C void | SetMethodL | ( | RStringF | aMethod | ) | |
Sets the SIP request method
- leave
- KErrArgument if method name given is syntactically incorrect
Parameter | Description | aMethod | a SIP method name. |
SetRemoteUriL ( CUri8 * )
IMPORT_C void | SetRemoteUriL | ( | CUri8 * | aRemoteUri | ) | |
Sets the remote URI. If the URI is a SIP URI, no SIP URI headers are allowed.
- Pre-condition
- aRemoteUri != 0
- leave
- KErrArgument if aRemoteUri==0
SetToHeaderL ( CSIPToHeader * )
Sets/resets the recipient's To-header To-header must not contain tag-parameter.
- Pre-condition
- aTo != 0
Parameter | Description | aTo | a To-header to be set, the ownership is transferred. |
ToHeader ( )
Gets the recipient's To-header
Returns: To-header or a 0-pointer if not present. Ownership is not transferred.