|
|
|
Location:
wsp\CWspTransportHandler.h
class CWspTransportHandler
Supported from 7.0
ECom WSP Transport Handler plug-in interface.
A WSP Transport Handler plug-in provides its client with WSP services. It allows the client to be independent of the particular WAP protocol stack implementation which the plug-in uses.
A plug-in can offer five distinct services, each associated with an abstract interface that the plug-in can implement:
MWspCOSessionInvoker, a Connection-Oriented Session service
MWspCOMethodInvoker, a Connection-Oriented Transaction service
MWspCOPushInvoker, a Connection-Oriented Push service
MWspCLMethodInvoker, a Connection-Less Session service
MWspCLPushInvoker, a Connection-Less Push service
Specific implementations may offer some or all of the five services.
All implementations must also provide default security policy settings via the
MSecurityPolicy interface. The defaults shall be used when no security policy
plug-in is supplied by the caller of CWspTransportHandler::NewL(). This might
occur if the plug-in could not be located on the device.
|
Defined in CWspTransportHandler:
CLMethodInvoker(), CLPushInvoker(), COPushInvoker(), COSessionInvoker(), COTransactionInvoker(), CWspTransportHandler(), ECLPushService, ECLSessionService, ECOMethodInvocationService, ECOPushService, ECOSessionService, NewL(), SInstantiationParams, ServerCert(), SupportedServices(), TWspService, TWspSupportedServices, iCapProv, iDtor_ID_Key, iProxyInfoProv, iSecurityPolicy, iSessHdrProv, iSessionCB, iStringPool, ~CWspTransportHandler()
Inherited from CBase:
operator new()
Inherited from MSecurityPolicy:
CancelValidateUntrustedServerCert(),
GetNamedPolicyProperty(),
GetTlsCipherSuites(),
GetWtlsCipherSuites(),
GetWtlsKeyExchangeSuites(),
Reserved1(),
Reserved2(),
ValidateUntrustedServerCert()
inline static CWspTransportHandler* NewL(RStringPool aStringPool, MSecurityPolicy* aSecurityPolicy, MWspCOSessionCallback& aSessionCB, MWspProxyInfoProvider& aProxyInfoProv, MWspCapabilityProvider& aCapProv, MWspSessionHeadersProvider& aSessHdrProv);
ECom factory function that instantiates a transport handler plug-in.
The plug-in's NewL() functions gets these parameters encapsulated in a SInstantiationParams object.
|
|
protected: inline CWspTransportHandler(RStringPool aStringPool, MSecurityPolicy* aSecurityPolicy, MWspCOSessionCallback& aSessionCB, MWspProxyInfoProvider& aProxyInfoProv, MWspCapabilityProvider& aCapProv, MWspSessionHeadersProvider& aSessHdrProv);
Constructor that initialises data members.
|
virtual TWspSupportedServices SupportedServices() const = 0;
Queries the services supported by this instantiation of the WSP transport handler plug-in.
|
virtual TInt ServerCert(TCertInfo& aCertInfo) const = 0;
Gets the Server Certificate for the current session.
|
|
virtual MWspCOSessionInvoker& COSessionInvoker()=0;
Gets the connection-oriented session invocation interface.
|
|
virtual MWspCOMethodInvoker& COTransactionInvoker()=0;
Gets the connection-oriented transaction invocation interface.
|
|
virtual MWspCOPushInvoker& COPushInvoker()=0;
Gets the connection-oriented push invocation interface.
|
|
virtual MWspCLMethodInvoker& CLMethodInvoker()=0;
Gets the connection-less method invocation interface.
|
|
virtual MWspCLPushInvoker& CLPushInvoker()=0;
Gets the connection-less push invocation interface.
|
|
protected: struct SInstantiationParams
A structure containing the instantiation parameters to NewL(), passed by ECom to the sub-class NewL().
Defined in CWspTransportHandler::SInstantiationParams:
iCapProv, iProxyInfoProv, iSecurityPolicy, iSessHdrProv, iSessionCB, iStringPool
iStringPoolRStringPool* iStringPool;
An open string pool reference.
iSecurityPolicyMSecurityPolicy* iSecurityPolicy;
The security policy plugin.
iSessionCBMWspCOSessionCallback* iSessionCB;
A client callback interface for CO session events.
iProxyInfoProvMWspProxyInfoProvider* iProxyInfoProv;
A client interface that provides WAP proxy details.
iCapProvMWspCapabilityProvider* iCapProv;
A client interface for capability negotatiation.
iSessHdrProvMWspSessionHeadersProvider* iSessHdrProv;
A client interface for exchange of session headers.
typedef TUint8 TWspSupportedServices;
A bit-field type that is set to contain a union of the services supported by the WSP transport handler.
TWspService
Defines flags for the five different service types that can be supported.
|
protected: RStringPool iStringPool;
Handle for a string pool used by the WSP transport handler. This is owned and managed elsewhere.
protected: MSecurityPolicy* iSecurityPolicy;
An optional security policy plug-in.
If a plug-in was not supplied, the
value is NULL.
protected: MWspProxyInfoProvider& iProxyInfoProv;
The client's provider of proxy information.
protected: MWspCapabilityProvider& iCapProv;
The client's provider of capabilities information.
protected: MWspSessionHeadersProvider& iSessHdrProv;
The client's provider of session headers.
private: TUid iDtor_ID_Key;
This is internal and not intended for use.