API published in: S60 3rd Ed
Link against: senservdesc.lib
Required Capabilities
NetworkServices ReadUserData WriteUserData
#include <senservicepattern.h>
Inherits CSenXmlServiceDescription, and MSenConsumerPolicy.
Service pattern is typically used by Basic Web Service consumers, which often know, which policy to use in the communication with certain Web Service Provider (WSP).
For example, a Basic Web Service consumer application might want strictly define certain Internet Access Point (IAP) to be used when initializing new service connection. Such an application can simply instantiate new ServicePattern and set pre-known IAP ID into it.
The main purpose of this class is to simplify the initialization of service connections for Basic Web Services.
It is important to note, that all the consumer policy information entered via ServicePattern extending the MSenConsumerPolicy is treated in "policy-per-client" terms. In other words, any consumer policy information will not be stored for latter use of other applications (even they might happen to use same WSP and contract!).
This is due the nature of Service Pattern: it acts as a consumer originated filter, after which a service will be resolved.
Any service which "meets" the Service Pattern "constraints", is considered as a "match", because such service accepts this (search) pattern.
Public Member Functions |
|
virtual IMPORT_C | ~CSenServicePattern () |
Destructor. |
|
IMPORT_C HBufC8 * | ConsumerPolicyAsXmlL () |
Convenience method for writing out the consumer policy as XML in UTF-8 form. |
|
IMPORT_C TBool | Matches (MSenServiceDescription &aServicePattern) |
Compares that both service description and possible policy inside of it matches with this instance. |
|
IMPORT_C void | StartElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName, const RAttributeArray &aAttributes) |
Callback function which implements the XML content handler interface. |
|
virtual IMPORT_C void | SetConsumerIapIdL (TUint32 aIapId) |
Setter for Internet Access Point (IAP) ID existing in CommDB. |
|
virtual IMPORT_C TInt | ConsumerIapId (TUint32 &aCurrentIapId) |
Getter for IAP ID. |
|
virtual IMPORT_C void | SetConsumerIdentityProviderIdsL (CSenIdentityProviderIdArray8 &aList) |
Setter for consumer identity provider IDs. |
|
virtual IMPORT_C TInt | AddConsumerIdentityProviderIdL (const TDesC8 &aProviderId) |
Adds a new Identity provider ID value at the end of the current list values. |
|
virtual IMPORT_C const CSenIdentityProviderIdArray8 & | ConsumerIdentityProviderIds8L () |
Getter for Identity provider IDs. |
|
virtual IMPORT_C TBool | AcceptsConsumerPolicy (MSenConsumerPolicy &aPolicyPattern) |
Checks if the policy of this service pattern accepts given policy. |
|
virtual IMPORT_C TInt | RebuildFromConsumerPolicy (MSenConsumerPolicy &aTemplate) |
Rebuilds the consumer policy of this service pattern from the given consumer policy. |
|
Static Public Member Functions |
|
static IMPORT_C CSenServicePattern * | NewL () |
Standard 2 phase constructors. |
|
static IMPORT_C CSenServicePattern * | NewLC () |
Standard 2 phase constructors. |
|
static IMPORT_C CSenServicePattern * | NewL (const TDesC8 &aNamespaceURI) |
Standard 2 phase constructor. |
|
static IMPORT_C CSenServicePattern * | NewLC (const TDesC8 &aNamespaceURI) |
Standard 2 phase constructor. |
|
static IMPORT_C CSenServicePattern * | NewL (const TDesC8 &aEndPoint, const TDesC8 &aContract) |
Standard 2 phase constructor. |
|
static IMPORT_C CSenServicePattern * | NewLC (const TDesC8 &aEndPoint, const TDesC8 &aContract) |
Standard 2 phase constructor. |
|
Protected Member Functions |
|
IMPORT_C | CSenServicePattern (MSenServiceDescription::TDescriptionClassType aType) |
C++ constructor. |
|
IMPORT_C void | BaseConstructL () |
Base constructor offered to sub class implementations. |
|
IMPORT_C void | BaseConstructL (const TDesC8 &aNamespaceURI) |
Base constructor offered to sub class implementations. |
|
IMPORT_C void | BaseConstructL (const TDesC8 &aEndPoint, const TDesC8 &aContract) |
Base constructor offered to sub class implementations. |
|
Protected Attributes |
|
CSenConsumerPolicy * | iConsumerPolicy |
|
Destructor. |
|
C++ constructor.
|
|
Checks if the policy of this service pattern accepts given policy.
Implements MSenConsumerPolicy. |
|
Adds a new Identity provider ID value at the end of the current list values.
Implements MSenConsumerPolicy. |
|
Base constructor offered to sub class implementations.
Reimplemented from CSenDomFragment. |
|
Base constructor offered to sub class implementations.
Reimplemented from CSenDomFragment. |
|
Base constructor offered to sub class implementations. |
|
Getter for IAP ID.
Implements MSenConsumerPolicy. |
|
Getter for Identity provider IDs.
Implements MSenConsumerPolicy. |
|
Convenience method for writing out the consumer policy as XML in UTF-8 form.
|
|
Compares that both service description and possible policy inside of it matches with this instance.
Reimplemented from CSenXmlServiceDescription. |
|
Standard 2 phase constructor.
Reimplemented from CSenXmlServiceDescription. |
|
Standard 2 phase constructor.
Reimplemented from CSenXmlServiceDescription. |
|
Standard 2 phase constructors. Reimplemented from CSenXmlServiceDescription. |
|
Standard 2 phase constructor.
Reimplemented from CSenXmlServiceDescription. |
|
Standard 2 phase constructor.
Reimplemented from CSenXmlServiceDescription. |
|
Standard 2 phase constructors. Reimplemented from CSenXmlServiceDescription. |
|
Rebuilds the consumer policy of this service pattern from the given consumer policy.
Implements MSenConsumerPolicy. |
|
Setter for Internet Access Point (IAP) ID existing in CommDB.
Implements MSenConsumerPolicy. |
|
Setter for consumer identity provider IDs. Overrides current values with the given values from the array. If an ID does not exist, it will be added.
Implements MSenConsumerPolicy. |
|
Callback function which implements the XML content handler interface. Parses the consumer policies independently.
Reimplemented from CSenXmlServiceDescription. |
|