client-cpp  0.7.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)
 
virtual ~AbstractHttpChannel ()
 
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 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 46 of file AbstractHttpChannel.hpp.

Member Typedef Documentation

Definition at line 70 of file AbstractHttpChannel.hpp.

Constructor & Destructor Documentation

kaa::AbstractHttpChannel::AbstractHttpChannel ( IKaaChannelManager channelManager,
const KeyPair clientKeys 
)
virtual kaa::AbstractHttpChannel::~AbstractHttpChannel ( )
inlinevirtual

Definition at line 49 of file AbstractHttpChannel.hpp.

Member Function Documentation

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

Definition at line 72 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 59 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 63 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 67 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::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: