activemq::transport::tcp::SslTransport Class Reference

Transport for connecting to a Broker using an SSL Socket. More...

#include <src/main/activemq/transport/tcp/SslTransport.h>

Inheritance diagram for activemq::transport::tcp::SslTransport:
Inheritance graph
[legend]

Public Member Functions

 SslTransport (const Pointer< Transport > next, const decaf::net::URI &location)
 Creates a new instance of the SslTransport, the transport will not attempt to connect to a remote host until the connect method is called.
virtual ~SslTransport ()

Protected Member Functions

virtual decaf::net::SocketcreateSocket ()
 Create an unconnected Socket instance to be used by the transport to communicate with the broker.
Returns:
a newly created unconnected Socket instance.
Exceptions:
IOException if there is an error while creating the unconnected Socket.

virtual void configureSocket (decaf::net::Socket *socket)
 Using options from configuration URI, configure the socket options before the Socket instance is connected to the Server.Subclasses can override this option to set more configuration options, they should called the base class version to allow the default set of Socket options to also be configured.
Parameters:
socket The Socket instance to configure using options from the given Properties.
Exceptions:
NullPointerException if the Socket instance is null.
IllegalArgumentException if the socket instance is not handled by the class.
SocketException if there is an error while setting one of the Socket options.


Detailed Description

Transport for connecting to a Broker using an SSL Socket.

This transport simply wraps the TcpTransport and provides the TcpTransport an SSL based Socket pointer allowing the core TcpTransport logic to be reused.

Since:
3.2.0

Constructor & Destructor Documentation

activemq::transport::tcp::SslTransport::SslTransport ( const Pointer< Transport next,
const decaf::net::URI location 
)

Creates a new instance of the SslTransport, the transport will not attempt to connect to a remote host until the connect method is called.

Parameters:
next The next transport in the chain
location The URI of the host this transport is to connect to.
virtual activemq::transport::tcp::SslTransport::~SslTransport (  )  [virtual]

Member Function Documentation

virtual void activemq::transport::tcp::SslTransport::configureSocket ( decaf::net::Socket socket  )  [protected, virtual]

Using options from configuration URI, configure the socket options before the Socket instance is connected to the Server.Subclasses can override this option to set more configuration options, they should called the base class version to allow the default set of Socket options to also be configured.

Parameters:
socket The Socket instance to configure using options from the given Properties.
Exceptions:
NullPointerException if the Socket instance is null.
IllegalArgumentException if the socket instance is not handled by the class.
SocketException if there is an error while setting one of the Socket options.

Reimplemented from activemq::transport::tcp::TcpTransport.

virtual decaf::net::Socket* activemq::transport::tcp::SslTransport::createSocket (  )  [protected, virtual]

Create an unconnected Socket instance to be used by the transport to communicate with the broker.

Returns:
a newly created unconnected Socket instance.
Exceptions:
IOException if there is an error while creating the unconnected Socket.

Reimplemented from activemq::transport::tcp::TcpTransport.


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

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1