class CSenServicePattern : public CSenXmlServiceDescription |
Class derives the XML service description and further extends it by implementing consumer policy interface.
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.
Protected Member Functions | |
---|---|
CSenServicePattern(MSenServiceDescription::TDescriptionClassType) | |
IMPORT_C void | BaseConstructL() |
IMPORT_C void | BaseConstructL(const TDesC8 &) |
IMPORT_C void | BaseConstructL(const TDesC8 &, const TDesC8 &) |
Protected Attributes | |
---|---|
CSenConsumerPolicy * | iConsumerPolicy |
IMPORT_C | CSenServicePattern | ( | MSenServiceDescription::TDescriptionClassType | aType | ) | [protected] |
MSenServiceDescription::TDescriptionClassType aType | enumeration defininng the type of this class. |
IMPORT_C TBool | AcceptsConsumerPolicy | ( | MSenConsumerPolicy & | aPolicyPattern | ) | [virtual] |
MSenConsumerPolicy & aPolicyPattern |
IMPORT_C TInt | AddConsumerIdentityProviderIdL | ( | const TDesC8 & | aProviderId | ) | [virtual] |
const TDesC8 & aProviderId |
IMPORT_C void | BaseConstructL | ( | ) | [protected] |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aNamespaceURI | ) | [protected] |
const TDesC8 & aNamespaceURI | the localname for XML element representation of this class. |
IMPORT_C void | BaseConstructL | ( | const TDesC8 & | aEndPoint, |
const TDesC8 & | aContract | |||
) | [protected] |
IMPORT_C TInt | ConsumerIapId | ( | TUint32 & | aCurrentIapId | ) | [virtual] |
TUint32 & aCurrentIapId |
IMPORT_C const CSenIdentityProviderIdArray8 & | ConsumerIdentityProviderIds8L | ( | ) | [virtual] |
IMPORT_C HBufC8 * | ConsumerPolicyAsXmlL | ( | ) |
IMPORT_C TInt | ConsumerSnapId | ( | TUint32 & | aCurrentSnapId | ) |
Gets the Consumer SNAP ID.
TUint32 & aCurrentSnapId | A TUint32 reference to be filled in with the value of the SNAP ID. |
IMPORT_C TBool | Matches | ( | MSenServiceDescription & | aServicePattern | ) |
MSenServiceDescription & aServicePattern |
IMPORT_C CSenServicePattern * | NewL | ( | const TDesC8 & | aNamespaceURI | ) | [static] |
Standard 2 phase constructor
const TDesC8 & aNamespaceURI | namespace URI for the service pattern. |
IMPORT_C CSenServicePattern * | NewL | ( | const TDesC8 & | aEndPoint, |
const TDesC8 & | aContract | |||
) | [static] |
Standard 2 phase constructor.
IMPORT_C CSenServicePattern * | NewLC | ( | const TDesC8 & | aNamespaceURI | ) | [static] |
Standard 2 phase constructor
const TDesC8 & aNamespaceURI | namespace URI for the service pattern. |
IMPORT_C CSenServicePattern * | NewLC | ( | const TDesC8 & | aEndPoint, |
const TDesC8 & | aContract | |||
) | [static] |
Standard 2 phase constructor.
IMPORT_C TInt | RebuildFromConsumerPolicy | ( | MSenConsumerPolicy & | aTemplate | ) | [virtual] |
MSenConsumerPolicy & aTemplate |
IMPORT_C void | SetConsumerIapIdL | ( | TUint32 | aIapId | ) | [virtual] |
TUint32 aIapId |
IMPORT_C void | SetConsumerIdentityProviderIdsL | ( | CSenIdentityProviderIdArray8 & | aList | ) | [virtual] |
CSenIdentityProviderIdArray8 & aList |
IMPORT_C void | SetConsumerSnapIdL | ( | TUint32 | aSnapId | ) |
Sets the Consumer SNAP ID.
TUint32 aSnapId | A TUint32 Snap ID |
IMPORT_C void | StartElementL | ( | const TDesC8 & | aNsUri, |
const TDesC8 & | aLocalName, | |||
const TDesC8 & | aQName, | |||
const RAttributeArray & | aAttributes | |||
) |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.