client-cpp  0.10.0
kaa::AbstractHttpChannel Class Referenceabstract

#include <AbstractHttpChannel.hpp>

+ Inheritance diagram for kaa::AbstractHttpChannel:
+ Collaboration diagram for kaa::AbstractHttpChannel:

Public Member Functions

 AbstractHttpChannel (IKaaChannelManager &channelManager, const KeyPair &clientKeys, IKaaClientContext &context)
 
virtual void sync (TransportType type)
 
virtual void syncAll ()
 
virtual void syncAck (TransportType type)
 
virtual void setMultiplexer (IKaaDataMultiplexer *multiplexer)
 
virtual void setDemultiplexer (IKaaDataDemultiplexer *demultiplexer)
 
virtual void setServer (ITransportConnectionInfoPtr server)
 
virtual ITransportConnectionInfoPtr getServer ()
 
virtual TransportProtocolId getTransportProtocolId () const
 
virtual void setFailoverStrategy (IFailoverStrategyPtr strategy)
 
virtual void setConnectivityChecker (ConnectivityCheckerPtr checker)
 
- Public Member Functions inherited from kaa::ImpermanentDataChannel
virtual ~ImpermanentDataChannel ()
 
virtual void resume ()
 
virtual void pause ()
 
virtual void shutdown ()
 
- Public Member Functions inherited from kaa::IDataChannel
virtual const std::string & getId () const =0
 
virtual ServerType getServerType () const =0
 
virtual const std::map
< TransportType,
ChannelDirection > & 
getSupportedTransportTypes () const =0
 
virtual ~IDataChannel ()
 

Protected Types

typedef std::shared_ptr
< IPTransportInfo
IPTransportInfoPtr
 

Protected Member Functions

HttpDataProcessorgetHttpDataProcessor ()
 
virtual void processTypes (const std::map< TransportType, ChannelDirection > &types)
 
virtual std::string getURLSuffix ()=0
 

Detailed Description

Definition at line 48 of file AbstractHttpChannel.hpp.

Member Typedef Documentation

Definition at line 76 of file AbstractHttpChannel.hpp.

Constructor & Destructor Documentation

kaa::AbstractHttpChannel::AbstractHttpChannel ( IKaaChannelManager channelManager,
const KeyPair clientKeys,
IKaaClientContext context 
)

Member Function Documentation

HttpDataProcessor* kaa::AbstractHttpChannel::getHttpDataProcessor ( )
inlineprotected

Definition at line 78 of file AbstractHttpChannel.hpp.

virtual ITransportConnectionInfoPtr kaa::AbstractHttpChannel::getServer ( )
inlinevirtual

Retrieves current used server.

Returns
Server info.
See Also
IServerInfo

Implements kaa::IDataChannel.

Definition at line 62 of file AbstractHttpChannel.hpp.

virtual TransportProtocolId kaa::AbstractHttpChannel::getTransportProtocolId ( ) const
inlinevirtual

Retrieves the TransportProtocolId.

Returns
the transport protocol id.
See Also
TransportProtocolId

Implements kaa::IDataChannel.

Definition at line 66 of file AbstractHttpChannel.hpp.

virtual std::string kaa::AbstractHttpChannel::getURLSuffix ( )
protectedpure virtual
virtual void kaa::AbstractHttpChannel::processTypes ( const std::map< TransportType, ChannelDirection > &  types)
protectedvirtual
virtual void kaa::AbstractHttpChannel::setConnectivityChecker ( ConnectivityCheckerPtr  checker)
inlinevirtual

Sets connectivity checker to the current channel.

Parameters
checkerplatform-dependent connectivity checker.
See Also
IConnectivityChecker

Implements kaa::IDataChannel.

Definition at line 71 of file AbstractHttpChannel.hpp.

virtual void kaa::AbstractHttpChannel::setDemultiplexer ( IKaaDataDemultiplexer demultiplexer)
virtual

Sets the request multiplexer for this channel.

Parameters
multiplexermultiplexer instance to be set.
See Also
IKaaDataMultiplexer

Implements kaa::IDataChannel.

virtual void kaa::AbstractHttpChannel::setFailoverStrategy ( IFailoverStrategyPtr  strategy)
inlinevirtual

Implements kaa::IDataChannel.

Definition at line 70 of file AbstractHttpChannel.hpp.

virtual void kaa::AbstractHttpChannel::setMultiplexer ( IKaaDataMultiplexer multiplexer)
virtual

Sets the response demultiplexer for this channel.

Parameters
demultiplexerdemultiplexer instance to be set.
See Also
IKaaDataDemultiplexer

Implements kaa::IDataChannel.

virtual void kaa::AbstractHttpChannel::setServer ( ITransportConnectionInfoPtr  connectionInfo)
virtual

Sets the connection data for the current channel.

Parameters
connectionInfoThe server's connection data.
See Also
ITransportConnectionInfo

Implements kaa::IDataChannel.

virtual void kaa::AbstractHttpChannel::sync ( TransportType  type)
virtual

Updates the channel's state of the specific service.

Parameters
typetransport type of the service.
See Also
TransportType

Implements kaa::IDataChannel.

virtual void kaa::AbstractHttpChannel::syncAck ( TransportType  type)
virtual

Updates the channel's state of all supported services.

Implements kaa::IDataChannel.

virtual void kaa::AbstractHttpChannel::syncAll ( )
virtual

Updates the channel's state of all supported services.

Implements kaa::IDataChannel.


The documentation for this class was generated from the following file: