client-cpp  0.0.1-SNAPSHOT
kaa::AbstractHttpChannel< Type > Class Template Referenceabstract

#include <AbstractHttpChannel.hpp>

+ Inheritance diagram for kaa::AbstractHttpChannel< Type >:
+ Collaboration diagram for kaa::AbstractHttpChannel< Type >:

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 (IServerInfoPtr server)
 
virtual ChannelType getChannelType () const
 
virtual void setConnectivityChecker (ConnectivityCheckerPtr checker)
 
- 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 boost::shared_ptr
< AbstractServerInfo< Type > > 
AbstractServerInfoPtr
 

Protected Member Functions

HttpDataProcessorgetHttpDataProcessor ()
 
virtual void processTypes (const std::map< TransportType, ChannelDirection > &types, boost::unique_lock< boost::mutex > &lock)
 

Detailed Description

template<ChannelType Type>
class kaa::AbstractHttpChannel< Type >

Definition at line 42 of file AbstractHttpChannel.hpp.

Member Typedef Documentation

template<ChannelType Type>
typedef boost::shared_ptr<AbstractServerInfo<Type> > kaa::AbstractHttpChannel< Type >::AbstractServerInfoPtr
protected

Definition at line 59 of file AbstractHttpChannel.hpp.

Constructor & Destructor Documentation

template<ChannelType Type>
kaa::AbstractHttpChannel< Type >::AbstractHttpChannel ( IKaaChannelManager channelManager,
const KeyPair clientKeys 
)

Definition at line 83 of file AbstractHttpChannel.hpp.

template<ChannelType Type>
virtual kaa::AbstractHttpChannel< Type >::~AbstractHttpChannel ( )
inlinevirtual

Definition at line 45 of file AbstractHttpChannel.hpp.

Member Function Documentation

template<ChannelType Type>
virtual ChannelType kaa::AbstractHttpChannel< Type >::getChannelType ( ) const
inlinevirtual

Retrieves the channel's type (i.e. HTTP, TCP, etc.).

Returns
the channel's type.
See also
ChannelType

Implements kaa::IDataChannel.

Definition at line 54 of file AbstractHttpChannel.hpp.

template<ChannelType Type>
HttpDataProcessor* kaa::AbstractHttpChannel< Type >::getHttpDataProcessor ( )
inlineprotected

Definition at line 61 of file AbstractHttpChannel.hpp.

template<ChannelType Type>
void kaa::AbstractHttpChannel< Type >::processTypes ( const std::map< TransportType, ChannelDirection > &  types,
boost::unique_lock< boost::mutex > &  lock 
)
protectedvirtual

Definition at line 88 of file AbstractHttpChannel.hpp.

template<ChannelType Type>
virtual void kaa::AbstractHttpChannel< Type >::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 56 of file AbstractHttpChannel.hpp.

template<ChannelType Type>
void kaa::AbstractHttpChannel< Type >::setDemultiplexer ( IKaaDataDemultiplexer demultiplexer)
virtual

Sets the request multiplexer for this channel.

Parameters
multiplexermultiplexer instance to be set.
See also
IKaaDataMultiplexer

Implements kaa::IDataChannel.

Definition at line 187 of file AbstractHttpChannel.hpp.

template<ChannelType Type>
void kaa::AbstractHttpChannel< Type >::setMultiplexer ( IKaaDataMultiplexer multiplexer)
virtual

Sets the response demultiplexer for this channel.

Parameters
demultiplexerdemultiplexer instance to be set.
See also
IKaaDataDemultiplexer

Implements kaa::IDataChannel.

Definition at line 178 of file AbstractHttpChannel.hpp.

template<ChannelType Type>
void kaa::AbstractHttpChannel< Type >::setServer ( IServerInfoPtr  server)
virtual

Sets the server's parameters for the current channel.

Parameters
serverserver's parameters.
See also
IServerInfo

Implements kaa::IDataChannel.

Definition at line 196 of file AbstractHttpChannel.hpp.

template<ChannelType Type>
void kaa::AbstractHttpChannel< Type >::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.

Definition at line 138 of file AbstractHttpChannel.hpp.

template<ChannelType Type>
void kaa::AbstractHttpChannel< Type >::syncAck ( TransportType  type)
virtual

Updates the channel's state of all supported services.

Implements kaa::IDataChannel.

Definition at line 172 of file AbstractHttpChannel.hpp.

template<ChannelType Type>
void kaa::AbstractHttpChannel< Type >::syncAll ( )
virtual

Updates the channel's state of all supported services.

Implements kaa::IDataChannel.

Definition at line 158 of file AbstractHttpChannel.hpp.


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